GeometricPatternMatch

NI Vision for LabWindows/CVI Function

GeometricPatternMatch

Information describing a matched geometric pattern.

Elements

Name

Type

Description

position PointFloat The location of the origin of the template in the match.
rotation float The rotation of the match relative to the template image, in degrees.
scale float The size of the match relative to the size of the template image, expressed as a percentage.
score float The accuracy of the match. A score of 1,000 indicates a perfect match, and a score of 0 indicates no match.
corner[4] PointFloat An array of four points describing the rectangle surrounding the template image.
inverse int This element is TRUE if the match is an inverse of the template image. For example, the match is a white object on a black background but the template image is a black object on a white background. This element is FALSE if the match and the template image have the same contrast with the image background.
occlusion float The percentage of the match that is occluded.
templateMatchCurveScore float The accuracy of the match obtained by comparing the template curves to the curves in the match region. A score of 1,000 indicates a perfect match, and a score of 0 indicates no match.
matchTemplateCurveScore float The accuracy of the match obtained by comparing the curves in the match region to the template curves. A score of 1,000 indicates a perfect match, and a score of 0 indicates no match. This element is calculated only if the matchTemplateCurveScore element of the advancedMatchOptions parameter to imaqMatchGeometricPattern() is TRUE.
correlationScore float The accuracy of the match obtained by comparing the template image to the match region using a correlation metric that compares the two regions as a function of their pixel values. A score of 1,000 indicates a perfect match, and a score of 0 indicates no match. This element is calculated only if the correlationScore element of the advancedMatchOptions parameter to imaqMatchGeometricPattern() is TRUE.