CogShapeExtract PerimeterLimitMax Property Cognex VisionPro 9.22
The maximum allowed perimeter length of extracted shapes when PerimeterLimitsEnabled is true. The maximum perimeter length is specified in units of the selected space of the input image.

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

public double PerimeterLimitMax { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogShapeExtract Changed

Fires when this property changes.

The following state flag may be affected:

    CogShapeExtract Changed

    Fires when both this property and PerimeterLimitMin change.

    The following state flags may be affected:

      Exceptions

      ExceptionCondition
      ArgumentException

      The supplied value is less than or equal to zero.

      Remarks

      The maximum allowed perimeter length of extracted shapes when PerimeterLimitsEnabled is true. The maximum perimeter length is specified in units of the selected space of the input image.

      PerimeterLimitMin must be less than or equal to PerimeterLimitMax. If one property changes such this relationship is not maintained, the other property is set equal to this one.

      Note: The limit checking is performed after connect tolerance checking is performed but before the raw edges are converted into a shape. The perimeter limit is checked against the perimeter of a polyline with a vertex at each edge point. Under some conditions, the final approximated shape will have a perimeter outside of the specified limits.

      Default Value: 10,000.0

      See Also