CogImage16Range GetPixel Method Cognex VisionPro 9.7
Gets the mask (visible) and pixel value at the specified pixel space coordinates.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 73.0.0.0
Syntax

public void GetPixel(
	int X,
	int Y,
	out bool VisibleValue,
	out ushort PixelValue
)

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 was visible.
PixelValue
Type: System UInt16 
The raw pixel value at this location. This is undefined if VisibleValue is false.
Exceptions

ExceptionCondition
CogImageNoPixelsException If Allocated is false.
See Also