CogFindLine NumCalipers Property Cognex VisionPro 9.10
Number of calipers used to find the Line. NumCalipers - NumToIgnore must be greater than or equal to the minimum number of points required to find the shape. For example, minimum points for a line = 2, circle = 3, & ellipse = 5.

Namespace: Cognex.VisionPro.Caliper
Assembly: Cognex.VisionPro.Caliper (in Cognex.VisionPro.Caliper.dll) Version: 79.0.0.0
Syntax

public int NumCalipers { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogFindLine Changed

Fires when the value of this property changes.

The following state flag may be affected:

CogFindLine Changed

Fires when both this property and NumToIgnore change.

The following state flags may be affected:

Exceptions

ExceptionCondition
ArgumentException

A value of less than 2 was supplied.

Remarks

Number of calipers used to find the line. The number of calipers minus the number of points to ignore must be greater than or equal to the minimum number of points required to fit a line (2).

Default Value: 6

If the value of this property is changed such that the number of calipers minus the number of points to ignore is less than 2, NumToIgnore will be changed so that the difference is 2 and the change event will indicate that both properties have changed.

See Also