LineMaxOperatorBase FittingMode Property Cognex VisionPro 9.22 SR1
Get

Gets 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.

Set

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.Vision.LineMax.Implementation
Assembly: Cognex.Vision.LineMax.Net (in Cognex.Vision.LineMax.Net.dll) Version: 9.22.2.0
Syntax

public abstract LineMaxFittingModeConstants FittingMode { get; set; }

Return Value

Type: LineMaxFittingModeConstants

The point pair sampling method.

Exceptions

ExceptionCondition
ArgumentExceptionThe supplied value is not a member of LineMaxFittingModeConstants
Remarks

Changed Fires when this property changes. The following state flag may be affected:

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