CogShapeExtract RankMode Property Cognex VisionPro 9.8
Indicates the mode for ranking extracted shapes. The returned collection of shapes is sorted from highest rank to lowest. If more shapes than the maximum number requested are found then the lowest ranking shapes are discarded.

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

public CogShapeExtractRankModeConstants RankMode { get; set; }

Property Value

Type: CogShapeExtractRankModeConstants
Events

Event TypeReason
CogShapeExtract Changed

Fires when this property changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The supplied value is not a member of the CogShapeExtractRankModeConstants enumeration.

    Remarks

    Indicates the mode for ranking extracted shapes. The returned collection of shapes is sorted from highest rank to lowest. If more shapes than the maximum number requested are found then the lowest ranking shapes are discarded.

    Note: The shape rankings are computed from the raw image edge data, before they are converted into approximating shapes. For this reason, it is possible that the approximating shapes appear out of ranked order.

    Default Value: Perimeter

    See Also