Set the pixel and mask values at a given pixel space
location. Note that setting VisibleValue to false
on a CogImage16Range whose root currently has a null
mask root will cause an appropriately sized and populated
mask root to be created. The opposite is not true:
setting the sole non-visible mask value to visible
will not cause the mask root to be set to null.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 65.1.0.0
Syntax
Parameters
- X
- Type: System Int32
The pixel space X coordinate of interest.
- Y
- Type: System Int32
The pixel space Y coordinate of interest.
- VisibleValue
- Type: System Boolean
True if this pixel is visible.
- PixelValue
- Type: System UInt16
The raw pixel value at this location.
Exceptions
| Exception | Condition |
|---|---|
| CogImageNoPixelsException | If Allocated is false. |
| CogImageBadCoordException | If X is less than zero or not less than Width, or if Y is less than zero or not less than Height. |
See Also