Chapter5 MachineVision
IMAQVision for LabWindows/CVI User Manual 5-12 ni.com
Thesefunctions require you to input the coordinates of the poi nts along the
search contour.Use imaqROIProfile() to obtain the coordinates along
the edge of each contour ina n ROI.If you have a straight line, use
imaqGetPointsOnLine()to obtain the poin tsa long the line instead of
usinga n ROI.
Thesef unctions determine the edge points based on their contrast and
slope. Youcan specify whether you want to find the edge points using
subpixelaccuracy.
Finding Edge Points Along Multiple Search ContoursUseimaqRake(),imaqSpoke(),andimaqConcentricRake()to find
edge points along multiple search contours. These functions behave like
imaqEdgeTool()behaves, but they find edges on multiple contours. Pass
in an ROIto define the search region for these functions.
The imaqRake()function works on a rectangular search region. The
search linesare drawn parallel to the orientation of the rectangle. Control
the number of search lines in the region byspecifying t he distance, in
pixels,between each line. Specify the search direction as left to right or
rightto left for a horizontally oriented rectangle. Specify thesearch
direction as top to bottom or bottom to top for a vertically oriented
rectangle.
The imaqSpoke()functio n workson an annular search region, scanning
the search lines that are drawnfrom the center of the region to the outer
boundary and that fallw ithin the search area. Control the number of lines
inthe 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.
The imaqConcentricRake()function works on an annular search
region.The concent ric rakeis an adaptation of t heR aketo an annular
region.IMAQ Visionperforms edge detection along search lines that occur
in the search regionand that are concentric to the outer circular boundary.
Control the number of concentric search lines that are used for the edge
detection byspecifying the radial distance between the concentric lines in
pixels.Specify the direction of the search as either clockwise or
counterclockwise.