CogBeadInspectTrainResult AddCalipersWithinRegionToList Method Cognex VisionPro 9.8
Identifies all trained calipers whose center lies within the given region. The index of each such caliper is used to set the corresponding boolean entry of listToUpdate to the given Boolean value. List entries for all other indices are unchanged.

Namespace: Cognex.VisionPro.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 75.1.0.0
Syntax

public void AddCalipersWithinRegionToList(
	ICogRegion region,
	ICogBoolList listToUpdate,
	bool value
)

Parameters

region
Type: Cognex.VisionPro ICogRegion
The ICogRegion that may contain trained caliper centers. Must not be null.
listToUpdate
Type: Cognex.VisionPro ICogBoolList
The ICogBoolList that will be updated with the given Boolean value at the index position of every caliper whose center falls within the region. Must not be null.
value
Type: System Boolean
Exceptions

ExceptionCondition
ArgumentNullExceptionregion is null.
ArgumentNullExceptionlistToUpdate is null.
CogInvalidMaskOrFillEdgeLengthException The number of boolean elements in listToUpdate does not match the number of trained calipers in this train result.
See Also