Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
61
Image
Rotate Image
This tool rotates an image by specifying the angle and the center of rotation.
The image can be rotated around its center or around a specified point. The center of
rotation is in the latter case specified by the parameters
X center
and
Y center
.
The image can also be moved after rotation, but before being copied to the destination
bank. The parameters
X offset
and
Y offset
specifies the distance to move.
The rotated image is displayed in the
Destination image
bank. Note that only the part if the
image that
after the rotation
is located within the ROI will be displayed in the destination
bank.
The parameter Interpolation method controls how the pixel values are calculated in the
destination image. It is possible to choose between bilinear interpolation (gives higher
image quality) or nearest neighbor (gives faster execution time).
Input Parameters
01=Source bank
Image bank containing the image to rotate.
02=Destination bank
Image bank in which to display the rotated image.
03=ROI definition step
Step number where the ROI to use was created.
04=Angle
The counter-clockwire rotation angle, in degrees.
05=Rotation around
center
True
The rotation point is in the centre of the ROI and
the following two parameters are ignored.
False
The coordinates for the rotation point are set by
the following two parameters.
06=X center
The X coordinates for the rotation point. X = 0 is on the left
side of the FOV.
07=Y center
The Y coordinates for the rotation point. Y = 0 is at the top
of the FOV.
08=X offset
The distance in pixels along the x axis to move the rotated
image.
09=Y offset
The distance in pixels along the y axis to move the rotated
image.
10=Interpolation
method
The interpolation method to use when calculating the pixel
values in the destination image.
Returned Values
None