CogBlobSegmentationParams SetSegmentationMap Method Cognex VisionPro 9.8 SR1
Sets the segmentation Mode to Map and sets the Map & ScalingValue properties to the values supplied.

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

public void SetSegmentationMap(
	byte[] map,
	int scalingValue
)

Parameters

map
Type:  System Byte 
Map used to map the input image to a segmented image. 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
Type: System Int32
Pixel value that represents a blob weight of 1.0, all other pixel values are interpreted on a linear scale relative to this value.
Exceptions

ExceptionCondition
[System.ArgumentException]map is NULL, or the supplied value is not a 1-dimensional array with a size of eithe r256 or 65536.
[System.ArgumentException]scalingValue is less than or equal to 0 or greater than 255.
Remarks

Sets the segmentation Mode to Map and sets SetMap( Byte ) and ScalingValue to the values supplied.

This function suspends event delivery, then sets the public properties of CogBlobSegmentationParams with the supplied values. A single event that includes all of the affected functional area is typically generated.

See Also