Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
63
Region of Interest (ROI)
ROI Rotated Rectangle
This tool generates a rectangular shaped ROI (Region Of Interest) that can be rotated. The
ROI is used for defining a rectangular limited working area in which to perform image
processing or other functions.
To set the position of the ROI the coordinates of the top left corner of the rectangle can be
used. It is also possible to define the position of the ROI relative to a previously generated
result. This is done by setting an offset of the top left corner of the ROI using the input
parameters
X
offset
and
Y offset
. The values of the offset must come from a previous step
result or from the table.
The size is set in pixels by the parameters
Width
and
Height
.
During the setup of the ROI it is also possible to set the size of the ROI and position in the
preview using the left mouse button. Double-clicking the image in the preview opens a
larger image to set the ROI with the mouse more precisely.
It is possible to rotate the ROI with respect to the center of the ROI or with chosen coordi-
nates of the rotation center. If the rotation center coordinates are equal to -1 the rotation
is done with respect to the center of the ROI. The coordinates of the rotation center could
also be outside of the ROI somewhere in the FOV. Note that it is necessary to execute the
ROI tool (keyboard key F5) to perform the rotation.
Input Parameters
01 = Source
bank
Copy the selected image bank to the preview bank
02 =X offset
Offset value of the upper left ROI corner in x direction. To set an
offset the value must come from the table or as a result from a
previously performed program step.
03 = Y offset
Like above but for Y direction.
04 = Rotation
around center
True
means that the rotation point is in the centre of the ROI
and the following two parameters are ignored.
False
means that the coordinates for the rotation point are set
by the following two parameters.
05 = Rotation
point X
Set the X coordinates for the rotation point. X = 0 is on the left
side of the FOV.
06 = Rotation
point Y
Like above but for Y direction. Y = 0 is on the top of the FOV.
07 = X coordinate
X coordinate for the top left corner of the ROI (before rotation).
08 = Y coordinate
Like above but for Y direction (before rotation).
09 = Width
Width of the ROI (in X direction) in pixels (before rotation).
10 = Height
Height of the ROI (in Y direction) in pixels (before rotation).
11 = Angle
Rotation angle with respect to the rotation point. Input values are
the rotation angle in degrees.
Positive values
mean counterclockwise rotation.
Negative values
mean clockwise rotation.
Value = 0
means no rotation.
12= Destination
bank
Number of destination bank (-1= no display of the ROI in the
preview window).
Returned Values
None