Chapter
4
Reference Manual
IVC-2D
112
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Matching
Add Shape Runtime
When creating reference objects in runtime, i.e. during the execution of the step program,
the Add Shape Runtime tool is used. The tool defines a reference shape that can later be
compared to other shapes with the 'Shape Locator' tool. The ‘Add Shape Runtime’ tool has
no interactive setup and it is intended to be used for on-line teaching. The interactive setup
of the 'Shape Locator' tool contains the same functionality as the ‘Add Shape Runtime’ tool
and has a user interface used to manually create reference shapes. For details on pa-
rameters and optimization of the algorithm, please refer to Add/Edit Shape Interactive
Setup on page 212.
Input Parameters
01 = Source bank
The image bank holding an image of the reference
shape.
02 = ROI definition step
An arbitrary shaped Teach ROI from a previous pro-
gram step.
03 = Data block
The number of the slot in the memory (RAM) where
information of the reference shape will be stored
temporarily.
04 = Edge strength
The edge strength is the image contrast needed for
defining shape edges. A higher value gives fewer edges
in the shape. Valid range 0-100
05 = Robustness vs. Speed
This setting controls the tradeoff between execution
time and robustness when running the Shape Locator
tool. A high value prioritizes a short execution time.
Valid range 0-4
06 = Accuracy vs. Speed
This setting controls the tradeoff between execution
time and the accuracy with which the shape is located
when running the Shape Locator tool. A high value
prioritizes a short execution time. Valid range 0-4
07 = Ref. point X coordi-
nate
The x coordinate of the reference point.
08 = Ref. point Y coordi-
nate
The y coordinate of the reference point.
09 = Destination bank
The image bank where a visualization of the edges of
the reference shape shall be made. If set to -1 no
visualization will be made.
ERROR CODES
7704 The ROI is partly or completely outside the image.
8800 Initialization of the shape locating algorithm failed.
8838 The ROI Perimeter must have the parameter
Filling
set to
0=Internal
. Otherwise,
the ROI will only contain the pixels on the circumference of the perimeter.