Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
79
Edge
4.4
Edge
Find Row Edge
This tool scans a defined row and outputs the first found pixel with a gray value that is
within the defined gray value thresholds. The return value is the column number of the first
found pixel. This column number is the x-coordinate of the found pixel and the y-coordinate
is the row number set with the input parameter
Row
.
This tool requires a non-rotated rectangle ROI from a previous step. Note that only ROIs
that are generated by the 'ROI rectangle' tool can be used. Do not use ROIs created by any
other ROI tool.
Only the pixels along the row inside the ROI will be considered.
The
Row
parameter can be set in the preview image by using the left mouse button and
drop the line from the top border of the FOV to the desired position.
It is possible to select scan direction along the row by the parameter
Analysis direction.
If
you select analysis direction from left to right (
Left –> Right
) the found column corre-
sponds to the first found pixel from the left side of the ROI.
The gray value thresholds are set by the parameters
Gray low
and
Gray high
. To set the
thresholds with a slider, double-click the input field for the gray value threshold and click
the appearing button. This opens a larger image. Use the left mouse button to move the
slider.
All pixels inside the ROI with gray values within the two thresholds are colored blue.
Input Parameters
01 = Source bank
Image bank containing the image to be processed.
02 = Row
Row number for the row to be scanned. 0 = top of FOV
03 = Analysis direction
Scan direction.
Left –> Right
beginning from the left side of the
ROI.
Right –> Left
beginning from the right side of the
ROI.
04 = Gray low
Low gray value threshold.
05 = Gray high
High gray value threshold.
06 = ROI definition step
Step number where the ROI to use was created.
Note that only ROIs generated by the 'ROI rectangle' tool
can be used.
Returned Values
01= Column
Returns the number of the column where the found pixel is
located. This could be used as the X-coordinate of the
found pixel.
Error Messages
Err. = 107
Error: points out of bank
Check if the specified ROI is generated by a 'ROI rectangle'
tool.
Err. = 108
Error in Find row edge
Check if selected row is inside the ROI.