To remove noise from given image, try using “Morphological Gradient”, or “Noise Filtering with Morphological Reconstruction”.
- Morphological Gradient is the operation that is equal to the difference between dilation and erosion of an image.
- Noise Filtering with Morphological Reconstruction: Morphological reconstruction can be used to filter out specific patterns of noise by reconstructing the image from a marker image.
Output after using “Morphological Gradient” for removing noise is given below:
Output after using “Noise Filtering with Morphological Reconstruction” for noise removal is given below:
For better understanding of “Morphological Gradient” and “Noise Filtering with Morphological Reconstruction” refer to the following documentation using this command:
- web(fullfile(docroot,"help/images/morphological-dilation-and-erosion.html"))
Hope that helps!