- HALCON images are variable in their size (format). Therefore, no
constants should be used for image formats (except
MAX_FORMAT for the maximum format).
The actual format of an image can be extracted from the structure
Himage (cf. figure 4.1).
- Notice that more than one pixel type may occur, when
performing gray value operations. An operator should be able to work
on all of them, see also the discussion in
section “HAllFilter”.
If an operator can only process a reduced set of types, this can
be specified in the def-file with type_list (cf. this page). An operator should reject all images
that it can not process by returning
H_ERR_WIT – wrong image type.
- In many cases an operator might receive more than one iconic object as
input, i.e. the supply procedure must contain a loop over all
iconic objects (e.g., using HAllReg and HAllSegm
described in section “Loop Macros” or HAllObj
in section “HAllObj”). This is true for regions as well as images
or XLDs.
Furthermore, images may contain more than one channel.
So a second loop
over all channels (components) within an image is needed
(see HAllComp, section “HAllComp”).
- All procedures should only work within the image's
area of definition, especially when performing
feature extraction, filter
or segmentation tasks.