Finding Edge Points Along Multiple Search Contours; Finding Points Using Pattern Matching - National Instruments IMAQTM User Manual

Vision for visual basic
Table of Contents

Advertisement

Chapter 5
Performing Machine Vision Tasks

Finding Points Using Pattern Matching

IMAQ Vision for Visual Basic User Manual

Finding Edge Points Along Multiple Search Contours

Use the
CWIMAQVision.Rake
CWIMAQVision.ConcentricRake
along multiple search contours. These methods behave like
CWIMAQVision.FindEdges2
These methods find only the first edge that meets the criteria along each
contour. Pass in a CWIMAQRegions object to define the search region for
these methods.
CWIMAQVision.Rake
lines are drawn parallel to the orientation of the rectangle. Control the
number of search lines in the region by specifying the distance, in pixels,
between each line. Specify the search direction as left to right or right to left
for a horizontally oriented rectangle. Specify the search direction as top to
bottom or bottom to top for a vertically oriented rectangle.
CWIMAQVision.Spoke
search lines that are drawn from the center of the region to the outer
boundary and that fall within the search area. Control the number of lines
in the region by specifying the angle, in degrees, between each line. Specify
the search direction as either going from the center outward or from the
outer boundary to the center.
CWIMAQVision.ConcentricRake
The concentric rake is an adaptation of the rake to an annular region. Edge
detection is performed along search lines that occur in the search region and
that are concentric to the outer circular boundary. Control the number of
concentric search lines that are used for the edge detection by specifying
the radial distance between the concentric lines in pixels. Specify the
direction of the search as either clockwise or counterclockwise.
The pattern matching algorithms in IMAQ Vision measure the similarity
between an idealized representation of a feature, called a template, and the
feature that may be present in an image. A feature is defined as a specific
pattern of pixels in an image. Pattern matching returns the location of the
center of the template and the template orientation. Follow these
generalized steps to find features in an image using pattern matching:
1.
Define a reference or fiducial pattern in the form of a template image.
2.
Use the reference pattern to train the pattern matching algorithm with
CWIMAQVision.LearnPattern2
,
CWIMAQVision.Spoke
methods to find edge points
, but they find edges on multiple contours.
works on a rectangular search region. The search
works on an annular search region, scanning the
works on an annular search region.
.
5-12
, and
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Imaq

Table of Contents