ITK Pre-Processing Algorithm Wrappers in Python/GrayscaleMorphologicalOpeningFilter

From FarsightWiki
Jump to: navigation, search

Grayscale Morphological Opening Image Filter

This is implemented using the itkGrayscaleMorphologicalOpeningImageFilter class of ITK. The mophological opening is a performed by a sequence of two operations - erosion followed by dilation. The operation results in the removal of small (bright) objects from the background (dark).

Parameters:

  • Radius - this specifies the radius of the structuring element that is used for the erosion and dilation operations. The radius specifies the size of the objects that will be removed from the background, when the opening operation is applied. Larger the size of the structuring element, larger objects are removed. However, one of the disadvantages of this method is that the size of the object after reconstruction might be different from that of the original image. Figures 1, 2, and 3 show the effect of applied the morphological opening filter on seg_orig with radius of the structuring element being 1, 3, and 5, respectively.

Back to main page.

Fig. 1: Morphological opening of seg_orig with radius of the structuring element being 1.
Fig. 2: Morphological opening of seg_orig with radius of the structuring element being 3.
Fig. 3: Morphological opening of seg_orig with radius of the structuring element being 5.
Personal tools