sem_type: class[.spec];
This slot determines the semantic type, i.e., it specifies the
class of data passed as parameters, when using an object-oriented language.
Names of classes within the def-file are only symbolic. The mapping to the actual
class names is provided by the HALCON compiler hcomp.
HDevelop also uses the semantic types, e.g., in order to provide specific
inspection routines.
A list with the semantic types is given in appendix “HALCON Semantic Types”.
Some exemplary semantic types (classes) are shown below.
- Iconic data (object parameters):
- object (any iconic object: images, regions, XLDs)
- image (images)
- region (regions)
- xld (any XLDs: lines in eXtended Line Description)
- xld_cont, xld_poly, xld_para,
xld_mod_para, xld_ext_para
- Elementary data (control parameters):
- number (unspecific)
- integer, real, string
- channel (channel number)
- Handles (control parameters):
- window (HALCON graphics window)
- Arrays (control parameters):
- histogram.values (gray value histogram)
- distribution.values (distribution)
- Geometric data (control parameters):
- point.x, point.y (position; (column, row) except for 2D
transformations to get mathematically positive rotation)
- extent.x, extent.y (dimensioning)
- angle.deg, angle.rad (angle given in degrees or
radians, respectively)
- circle.center.y, circle.center.x, circle.radius (circle)
- line.begin.y, line.begin.x, line.end.y, line.end.x (line)
- rectangle.origin.y, rectangle.origin.x
(rectangle: upper left corner),
rectangle.corner.y, rectangle.corner.x
(lower right corner) or
rectangle.extent.x rectangle.extent.y
(expansion – as alternative to specifying the 2nd corner)
- rectangle2.center.y, rectangle2.center.x
(rectangle with arbitrary orientation: center),
rectangle2.angle.rad (orientation – in radians),
rectangle2.hwidth, rectangle2.hheigth (half the size)
- ellipse.center.y, ellipse.center.x (ellipse: center),
ellipse.angle.rad (orientation – in radians),
ellipse.radius1, ellipse.radius2 (radii)
- arc.center.y, arc.center.x (circle: center),
arc.angle.rad
(angle stretched by the circular arc – in radians),
arc.begin.y, arc.begin.x (starting point of circular
arc).
- hom_mat2d (2D homogeneous transformation matrix)
hom_mat3d (3D homogeneous transformation matrix)
pose (3D pose)
- Numerical region descriptions (control parameters):
- coordinates.y, coordinates.x (coordinates)
- contour.y, contour.x (points of a contour)
- chord.y, chord.x1, chord.x2 (runlength code)
- polygon.y, polygon.x (polygonal representation)
- chain.begin.y, chain.begin.x, chain.code (chain
code)
- Miscellaneous (control parameters):
-
filename (name of a file)
filename.read (name of an input file)
filename.write (name of an output file)
- attribute.name (name of a generic parameter)
attribute.value (value of a generic parameter)
Please note:
- Please use the above semantic types for characterizing
parameters whenever they are applicable.
- For control parameters characterizing a composed object like
a circle etc.: Please use the specific order of
parameters like indicated above.