CogShapeExtract MaxNumShapes Property Cognex VisionPro 9.21
The maximum number of shapes that will be returned. Shapes that do not meet the closure, polarity, and perimeter constraints are filtered out first. If more than MaxNumShapes remain after filtering then the lowest-ranked shapes are also discarded.

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

public int MaxNumShapes { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogShapeExtract Changed

Fires when this property changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The supplied value is less than or equal to 0.

    Remarks

    The maximum number of shapes that will be returned. Shapes that do not meet the closure, polarity, and perimeter constraints are filtered out first. If more than specified number of shapes remain after filtering, the lowest-ranked shapes are also discarded.

    Default Value: 100

    See Also