Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
81
Edge
Find Row
This tool scans an image along a horizontal line to find a row that contains pixels with gray
level values that are in a specified range. Only the part of the image that is inside a ROI is
scanned.
The returned value is the y-coordinate of the found row. In the preview window, the found
row is marked with a yellow line.
The tool will “find” a row (and stop scanning the image) when the row contains a certain
amount of pixels with gray levels within the range. This amount is specified by the parame-
ter
Level
, and can be used for making the tool less sensitive for noise in the image.
Analysis
Direction
ROI
Pixels with gray level
between
Gray low
and
Gray high
Level
Row returned
by the tool
0
5 10 15 20 25 30
Amount of matching
pixels along the line
Line along which
the pixels are counted
The parameter
Type of transition
is used for choosing whether the tool should stop scan-
ning when the amount of matching pixels in the line rises above the amount set in
Level
(pixels > level), or when it sinks below the amount set in
Level
(pixels < level).
The lower and upper limits of the range of gray levels are set by the parameters
Gray low
and
Gray high
.. These parameters can be set in an interactive setup window, which is
opened by clicking the button that is displayed when double-clicking the Value field of the
parameters. In the interactive setup window, all pixels inside the ROI with gray values within
the range are colored blue.
The image is scanned either from the top of the ROI to the bottom, or from the bottom to
the top depending on the setting of the parameter
Analysis direction
.
This tool requires a non-rotated rectangular ROI. The parameter
ROI definition step
points
out the program step in which the ROI is created. Note that only ROIs created with the 'ROI
Rectangle' tool are allowed. Do not use a ROI created by another ROI tool.
For some applications it is useful to combine this tool with the 'Find Column' tool to detect
the column as well. In some cases the column and the row could be used to establish the
x- and y-coordinates of the found pixel.