Morphology
Description
Performs primary morphological transformations. Type : polymorphic.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). Image Src : class, type accepted U8.
Documentation illustration (illustration unavailable in the archive). 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.
Documentation illustration (illustration unavailable in the archive). Morphology Parameters : cluster,
Documentation illustration (illustration unavailable in the archive). 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
-
Documentation illustration (illustration unavailable in the archive). Square/Hexa (Square) : boolean, specifies whether to treat the pixel frame as square or hexagonal during the transformation.
Documentation illustration (illustration unavailable in the archive). Iteration : integer, is the number of times the VI performs a dilate or erode operation.
Documentation illustration (illustration unavailable in the archive).
Output parameters
Documentation illustration (illustration unavailable in the archive). Image Dst : class
Examples
All these examples 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 Computer Vision library to run it).
