HALCON has two basic types of parameters: iconic data and control
data. Images, regions, and XLDs (eXtented Line Description) belong to the
iconic data.
- Images
- consist mainly of channels, i.e., matrices containing
pixel values. All channels of an image have the same size. For detailed
information about pixels and channels, please read the chapter
Image of the HALCON Operator
Reference.
For each image, the so-called region of interest (ROI) specifies which
part of the image is processed. The ROI can be defined very flexibly (from a
simple rectangle to a set of unconnected pixels). For details about ROI
handling see the Solution Guide I.
- Regions
- are a set of pixels. The pixels of a
region do not need to be connected. Even an arbitrary collection of pixels can
be handled as a single region. With the operator connection a region
can be split into its connected regions, i.e., components consisting of
connected pixels.
- XLDs
- comprise all contour and polygon based data.
Subpixel-accurate operators like edges_sub_pix return the contours as
XLD data. A contour is a sequence of 2D control points, which are connected by
lines. Typically, the distance between control points is about one pixel. XLD
objects contain, besides the control points, so-called local and global
attributes. Typical examples for these are, e.g., the edge amplitude of a
control point or the regression parameters of a contour segment. Besides the
extraction of XLD objects, HALCON supports further processing. Examples for
this are the selection of contours based on given feature ranges for the
segmentation of a contour into lines, arcs, polygons or parallels.
The control data includes handles and basic data types like integer, real, string.
- Handles
- are references to complex data structures, e.g., a
connection to an image acquisition interface or a model for the shape-based
matching. For efficiency and data security reasons, not the entire structure
but only the handle is passed between the operators. Handles are magic values
that must not be changed and can differ from execution to execution and version
to version. They are automatically cleared once all references are
overwritten. Examples where handles are used are graphics windows, files,
sockets, image acquisition interfaces, OCR, OCV, measuring, and matching.