CogShapeExtract PropertiesCognex VisionPro 9.5

The CogShapeExtract type exposes the following members.

Properties

  NameDescription
Public propertyApproximationTolerance
Specifies an upper bound on the deviation of the raw edge data from the approximating shape. Specified in selected space units of the input image. Higher tolerances result in larger approximations, but tend to produce simpler shape representations.
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
Public propertyClosure
Indicates whether open and/or closed shapes should be extracted from the input image.
Public propertyConnectTolerance
If the distance between two endpoints of raw edge chains is less than this tolerance then the chains will be connected into a single chain. In the case that the two endpoints come from the same open chain, the chain is converted into a closed chain.
Public propertyContrastThreshold
The minimum absolute contrast difference used when extracting raw edge data from the input image. Edges with a contrast difference that is less than or equal to this threshold are ignored.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyMaxNumShapes
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.
Public propertyPerimeterLimitMax
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.
Public propertyPerimeterLimitMin
The minimum allowed perimeter length of extracted shapes when PerimeterLimitsEnabled is true. The minimum perimeter length is specified in units of the selected space of the input image.
Public propertyPerimeterLimitsEnabled
If true then only shapes with perimeter length within the limits specified by PerimeterLimitMin and PerimeterLimitMax will be extracted.
Public propertyPolarity
Specifies the desired polarity for extracting closed shapes. The polarity setting has no effect on the extraction of open shapes.
Public propertyProximityShape
Shape used for ranking extracted shapes when RankMode is cogShapeExtractRankModeProximity. Shapes are ranked based on their distance from this shape. Shapes closer to this proximity shape are ranked higher.
Public propertyRankMode
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.
Public propertyVocabulary
Indicates which primitive shapes that may be extracted. The shape vocabulary is an integer that is obtained by ORing together the vocabulary constants of the desired primitive shapes.
Top
See Also