CogIPOneImagePixelMap SetMap Method Cognex VisionPro 9.8 SR1
Set the pixel map array. When an image is mapped, each pixel in the input image is used as an index into the array and replaced by the returned value.

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

public void SetMap(
	byte[] value
)

Parameters

value
Type:  System Byte 
Events

Event TypeReason
CogIPOneImagePixelMap Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The supplied map is NULL.

Remarks

Each pixel value is converted to its corresponding value in the pixel map. The default pixel map is an identity map an (input pixel value of 0 maps to an output value of 0, 1 to 1, and so on).

The value returned by GetMap  is a copy of the pixel map. If you make changes to the returned array, and you want them reflected in the pixel map, you must pass the altered array to SetMap .

See Also