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.ImageProcessingAssembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 87.1.0.0
Syntax
Parameters
- value
- Type: System Byte
Events
| Event Type | Reason |
|---|---|
| CogIPOneImagePixelMap Changed | Fires when the value of this property changes. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| 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