Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
53
Image
Image Bank Operation
This tool is used for copying a region of an image to another image bank. In addition to
copying the pixels, you may also calculate new gray level values for each pixel, based on
the gray level values of the pixels in the image in the source bank and an image already in
the destination bank.
The parameters
Source bank
and
Destination bank
specify which banks to use for the
operation. The resulting image will be placed in the
Destination bank
.
Note that the image in the destination bank will be replaced by the merged image. There is
no undo function. Replaced data in the destination bank is lost.
Input Parameters
01=Source bank
The image bank containing the image to copy from.
02=ROI definition
step
The step number in your program, which holds the definition of
which region of interest in the image that the operation is per-
formed for.
03=Mathematical
operation
Specifies which mathematical operation to perform when copying
pixels from the ROI of the source image to the destination bank.
Min
(and)
The resulting image will contain the
darkest
of the
corresponding pair of pixels from the source and
the destination images.
For binary images the corresponding pixels in both
images must be white for the resulting pixel to be
white. This is equivalent to an AND operation.
Max
(or)
The resulting image will contain the
brightest
of the
corresponding pair of pixels from the source and
the destination images.
For binary images the resulting pixel is white if
either the source or destination pixel is white. This
is equivalent to an OR operation.
Diff
(xor)
The gray level of each resulting pixel is calculated
by:
absolute value of (gray level in source image -
gray level in destination image)
Two identical images results in a black image.
For binary images the resulting pixel is white if
either the source or destination images are white
but not both. This is equivalent to an XOR opera-
tion.
Inv
(not)
The gray level of each resulting pixel is calculated
from:
(243 - gray level in source)
Colored pixels (gray level > 243) are simply copied
by this operation.
For binary images the resulting pixel in the target
bank will be white if the source image is black and
vice versa. This is equivalent to a NOT operation.
Copy
Copies every pixel in the ROI of the source image
to the destination bank.
04=Destination
bank
The image bank in which the resulting image is placed. For most
of the operations the result is affected by any image that is
stored in this bank prior to executing this tool.