I would like to decompose the image to low and high-frequency components using The Nonsubsampled Contourlet Transform could anyone send me an accurate code for the Nonsubsampled Contourlet Transform
Image segmentation is the answer to your query. For detail on how it works , please read: https://www.analyticsvidhya.com/blog/2019/04/introduction-image-segmentation-techniques-python/