ShapeDetectionOptions

NI Vision for LabWindows/CVI Function

ShapeDetectionOptions

Specifies the requirements for shapes that the function detects.

Elements

Name

Type

Description

mode unsigned int Specifies the method used when looking for the shape in the image. Combine values from the GeometricMatchingMode enumeration to specify the value of this element.
angleRanges RangeFloat* An array of angle ranges, in degrees, where each range specifies how much you expect the shape to be rotated in the image. To decrease the search time, limit the degrees of rotation in which you expect to find the shape in the image. Set this element to NULL to allow all angles. This function ignores this range if mode does not include IMAQ_GEOMETRIC_MATCH_ROTATION_INVARIANT.
numAngleRanges int The size of the orientationRanges array.
scaleRange RangeFloat A range that specifies the sizes of the shapes you expect to be in the image, expressed as a ratio percentage representing the size of the pattern in the image divided by size of the original pattern multiplied by 100. This function ignores this range if mode does not include IMAQ_GEOMETRIC_MATCH_SCALE_INVARIANT
minMatchScore double The minimum score a match can have for the function to consider the match valid. Acceptable values range from 0 to 1,000.