CogBlobSegmentationParams SetPostMap Method Cognex VisionPro 9.8
Pixel map that is to be applied to the image that resulted from subtracting the SubtractionImage from the InputImage. The value resulting from the subtraction is used as an index into PostMap and is replaced with the value at that index in PostMap.

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

public void SetPostMap(
	byte[] value
)

Parameters

value
Type:  System Byte 
The desired PostMap values.

Return Value

Type:
The default is a map which sets differences less than 20 equal to 0 and differences greater than or equal to 20 equal to 255 (the map assumes that the tool is configured to use the default ScalingValue of 255).
Events

Event TypeReason
[Cognex.VisionPro.ICogChangedEvent.Changed]

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
[System.ArgumentException] The supplied value is NULL, or the supplied value is not a 1-dimensional array with a size of either 256 or 65536.
Remarks

Pixel map that is to be applied to the image that resulted from subtracting the SubtractionImage from the InputImage. This property is only used if Mode is SubtractionImage. Each pixel in the subtracted image is used as an index into the supplied map. The input pixel value is replaced with the value from the map.
See Also