CogBlobMorphologyConstants EnumerationCognex VisionPro
Morphology operations that can be performed on the segmented image.

Namespace: Cognex.VisionPro.Blob
Assembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 65.1.0.0
Syntax

public enum CogBlobMorphologyConstants
Members

  Member nameValueDescription
ErodeHorizontal0

Erodes blobs by replacing the target pixel with the minimum value of the 3 horizontal pixels centered on the target pixel.

ErodeVertical1

Erodes blobs by replacing the target pixel with the minimum value of the 3 vertical pixels centered on the target pixel.

ErodeSquare2

Erodes blobs by replacing the target pixel with the minimum value of the 9 square pixel area centered on the target pixel.

DilateHorizontal3

Dilates blobs by replacing the target pixel with the maximum value of the 3 horizontal pixels centered on the target pixel.

DilateVertical4

Dilates blobs by replacing the target pixel with the maximum value of the 3 vertical pixels centered on the target pixel.

DilateSquare5

Dilates blobs by replacing the target pixel with the maximum value of the 9 square pixel area centered on the target pixel.

CloseHorizontal6

Performs a horizontal closing operation which consists of a dilation followed by an erosion. Closing fills small holes and connects closely situated blobs. It maintains the relative size of both large and small blobs while smoothing the contours.

CloseVertical7

Performs a vertical closing operation which consists of a dilation followed by an erosion. Closing fills small holes and connects closely situated blobs. It maintains the relative size of both large and small blobs while smoothing the contours.

CloseSquare8

Performs a square closing operation which consists of a dilation followed by an erosion. Closing fills small holes and connects closely situated blobs. It maintains the relative size of both large and small blobs while smoothing the contours.

OpenHorizontal9

Performs a horizontal opening operation which consists of an erosion followed by a dilation. Opening eliminates small and/or thin blobs. It maintains the relative size of larger blobs while smoothing the contours and maintaining holes.

OpenVertical10

Performs a vertical opening operation which consists of an erosion followed by a dilation. Opening eliminates small and/or thin blobs. It maintains the relative size of larger blobs while smoothing the contours and maintaining holes.

OpenSquare11

Performs a square opening operation which consists of an erosion followed by a dilation. Opening eliminates small and/or thin blobs. It maintains the relative size of larger blobs while smoothing the contours and maintaining holes.

Remarks

Morphology operations that can be performed on the segmented image.
See Also