This example shows how to take the shearlet transform of an image and reconstruct the image using only coefficients corresponding to zero shearing.
Load and display an image of a circle.
Create a shearlet system that can be used with the image. Obtain the shearlet filters defined by the system, as well as their geometric interpretations.
Obtain the shearlet transform of the image.
Find the indices of the shearlet filters that correspond to zero shearing. Keep in mind that the lowpass filter also corresponds to zero shearing.
ind = 1×10
3 6 10 15 20 25 31 38 46 55
Plot one of the shearlets in the frequency plane. Because the shearlet corresponds to zero shearing, confirm the frequency response is concentrated along either the horizontal or vertical axis.
Create an array that only contains the shearlet coefficients that correspond to the zero shearing filters.
Reconstruct the image using the new coefficients array. Because the only nonzero shearlet coefficients are those that correspond to zero shearing, the horizontal and vertical portions of the circle are emphasized in the reconstruction.