Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
67
Region of Interest (ROI)
ROI Perimeter
ROI perimeter generates a ROI which shape, position and size is defined by the found
contour pixels from the ’Perimeter’ tool. The ’Perimeter’ tool traces the contour of an object
and returns the pixels which are found along the contour and this is used as input. The
’Perimeter’ tool is found in the Measure category.
Note: The ROI perimeter tool can only be used after the ’Perimeter’ tool is executed in a
previous program step.
With the
Margin
parameter it is possible to expand or shrink the ROI with respect to the
original shape. A positive margin value will expand the ROI in each direction by the typed
value in pixels. A negative margin will shrink the ROI. If a positive margin value is used
make sure that the resulting ROI is not larger than the total FOV of the camera. If a nega-
tive margin value is used make sure that the typed value will not produce negative results
for the size of the ROI.
The parameter
Filling
controls if the area inside the ROI is colored red (internal) or if only
the contour of the ROI (external) is colored red.
Input Parameters
01 = Perimeter definition
step
Number of the step with the ’Perimeter’ tool which
provides the contour pixels to process the ROI.
02 = Margin
Positive or negative values to expand or shrink the size
of the ROI.
03 = Filling
0=internal
whole area of the ROI will color red.
1=external
only the contour of the ROI is color
red.
04 = Destination bank
Number of destination bank to display the ROI.
-1= no display of the ROI.
Returned Values
None
Error Messages
Err. = 152
Error in ROI from perimeter
Check
Margin
values and make sure that the result will
not produce negative results or lead outside of the
FOV.