CogFitEllipse RotationConstraint Property Cognex VisionPro
The value in radians that the x axis of the ellipse will be constrained to if Rotation is constrained.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public double RotationConstraint { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogFitEllipse Changed

Fires when the value of this property changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The supplied value is less than or equal to 0.

    Remarks

    If RotationConstraintEnabled is true, then the rotation of the ellipse being fit will be constrained to the value of this property. The constraint value is the rotation in radians from the X-axis of the selected space supplied to the Execute(String) command to the ellipse's major axis.

    See Also