CogPixelMap SetReferencePointAbsolute Method Cognex VisionPro 9.5
Sets the absolute values for an existing reference point.

Namespace: Cognex.VisionPro.PixelMap
Assembly: Cognex.VisionPro.PixelMap (in Cognex.VisionPro.PixelMap.dll) Version: 69.0.0.0
Syntax

public void SetReferencePointAbsolute(
	int index,
	int inputVal,
	int outputVal
)

Parameters

index
Type: System Int32
The index of the reference point.
inputVal
Type: System Int32
The absolute input value for the reference point. It must be in the range of [0,maxInGrey] inclusive.
outputVal
Type: System Int32
The absolute output value for the reference point. It must be in the range of [0,maxOutGrey] inclusive.
Events

Event TypeReason
Cognex.VisionPro ICogChangedEvent Fires when the input value or the output value of the reference point. changes.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException If the index is negative or >= the number of reference points.
ArgumentOutOfRangeException If inputVal is outside the range of [0,maxInGrey] inclusive.
ArgumentOutOfRangeException If outputVal is outside the range of [0,maxOutGrey] inclusive.
See Also