CogBlobSegmentationModeConstants EnumerationCognex VisionPro 9.5
Enumeration of blob segmentation modes which indicate how the input image will be segmented into blob and background pixels.

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

public enum CogBlobSegmentationModeConstants
Members

  Member nameValueDescription
None0 No image segmentation is performed. Use this mode if the input image is already segmented. Pixels with a value equal to ScalingValue receive a blob weight of one. All other pixel values are interpreted on a linear scale relative to ScalingValue.
Map1 Segment the input image using a pixel map. Each pixel in the input image is replaced by the value within the pixel map at the index equal to the input image pixel value. ScalingValue is used to assign blob weights based on the mapped pixel values.
HardFixedThreshold2 Segment the input image using a single threshold value specified in image grey scale units. This hard threshold determines if an image pixel is entirely part of a blob or constitutes a background pixel.
HardRelativeThreshold3 Segment the input image using a single threshold value that is determined at run-time based on a specified percentage ( HardRelativeThreshold) of the distance between the low tail pixel value and the high tail pixel value of the input image's histogram.
HardDynamicThreshold4 Segments the input image using a hard threshold value that is determined at run-time based on an analysis of the input image's histogram.
SoftFixedThreshold5 Segment the input image using a pair of threshold values specified in image grey scale units. Pixels values outside of the thresholds are either entirely part of a blob or the background. Values between the thresholds are part blob and part background.
SoftRelativeThreshold6 Segment the input image using a pair of soft threshold values that are determined at run-time based on specified percentage of the distances between the low tail pixel value and the high tail pixel value of the input image's histogram.
SubtractionImage7 Segment the input image by performing a pixel map (PostMap) on the image that results from subtracting each pixel in SubtractionImage from the corresponding pixel in the input image (after PreMap applied) with the result clamped to zero.
See Also