CogLineMax FittingMode Property Cognex VisionPro 9.22 SR1
Gets or sets the method to use when generating candidate lines. If you select Exhaustive mode, a candidate line will be generated for every possible pair of edge points. If you select RANSAC mode, a candidate line will be generated from a smaller number of randomly chosen point pairs.

Namespace: Cognex.VisionPro.LineMax
Assembly: Cognex.VisionPro.LineMax (in Cognex.VisionPro.LineMax.dll) Version: 87.1.0.0
Syntax

public CogLineMaxFittingModeConstants FittingMode { get; set; }

Property Value

Type: CogLineMaxFittingModeConstants
The point pair sampling method.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException The supplied value is not a member of CogLineMaxFittingModeConstants
Remarks

Exhaustive mode ensures that every possible line will be considered, but is typically too slow for most applications. Typically you will use RANSAC mode, and make the tradeoff between speed and thoroughness using the Assurance value.
See Also