NSST is a discrete form of Shearlet transform, and it differs from other multi-scale transformations by avoiding up-down samplers. NSST consists of two main stages, multi-scale and multi-directional separations.
- The Laplacian Pyramid (NSLP) without subsampling produces low and high frequency images whose size is the same as the size of the source image.
- Versatility is achieved by using different "combinations of Shear Filters" in the so-called polar (pseude-polar) coordinate
The process steps performed to obtain the NSST coefficients of an image of NxN size at a fixed resolution scale are as follows:
- Laplacian pyramid is applied to the image. Low and High pass sub-images are obtained.
- The fourier transformations of the high pass sub-images are calculated and transformed into the Polar coordinate system.
- Bandpass filter is applied to Polar coordinate system transformations and Fourier transforms (FFT) of Shearlet coefficients are obtained.
- The Inverse Fourier Transform (IFT) is applied to obtain the Shearlet coefficients and the transformation is performed to the Cartesian coordinate system.
- Firstly, the input image must be converted to the Intensity channel. At this stage, only Y channel will be used for NSST. You can use ConvertBMPToIntensity() for this process. General formula :
- Intensity image given to NSST function. Low (AFK) and High (YFK) Frequency coefficients are obtained at its output. You can use NsstDec1e() for this process.
You can get the input Intensity image using TNSST (Inverse NSST). You can use NsstRec1() for this process.
mkdir build && cd build
copy ..\external_lib\fftw-3.3.5-dll64\libfftw3f-3.dll .
cmake -DCMAKE_BUILD_TYPE=Release ..
make
Or run with Clion
Note: A copy of external_lib/fftw-3.3.5-dll64/libfftw3f-3.dll must be in the executable directory
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
Note: If you want to see the Eigen array values during debug, you can copy the .gbinit file to /home/user-name/
Don't worry, no setup needed !
- Eigen 3.4.0
- FFTW 3.3.5