Welcome to our Support Center



Performs primary morphological transformations. Type : polymorphic.


Input parameters


Image Src : class, type accepted U8.
Structuring Data : array,
2D array that contains the structuring element to apply to the image. The size of the structuring element (the size of this array) determines the processing size. A structuring element of 3 × 3 is used if this input is not connected.

Morphology Parameters : cluster,

Operation : enum, specifies the type of morphological transformation procedure to use.

      • AutoM : auto median
      • Close : dilation followed by an erosion
      • Dilate : dilation (the opposite of an erosion)
      • Erode : erosion that eliminates isolated background pixels
      • Gradient : extraction of internal and external contours of a particle
      • Gradient out : extraction of exterior contours of a particle
      • Gradient in : extraction of interior contours of a particle
      • Hit miss : elimination of all pixels that do not have the same pattern as found in the structuring element
      • Open : erosion followed by a dilation
      • PClose : a succession of seven closings and openings
      • POpen : a succession of seven openings and closings
      • Thick : activation of all pixels matching the pattern in the structuring element
      • Thin : activation of all pixels matching the pattern in the structuring element

Square/Hexa (Square) : boolean, specifies whether to treat the pixel frame as square or hexagonal during the transformation.
Iteration : integer,
is the number of times the VI performs a dilate or erode operation.

Output parameters


Image Dst : class


All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).

Table of Contents