Labeling

Measures labeling

int Labeling(
        const IMAGE     *image,
        const BYTE      *model,
        const int       invert,
        BYTE            *HSVLut,
        const int       upperLevel,
        const int       lowerLevel,
        const int       upperArea,
        const int       lowerArea,
        const int       maxLabelNum,
        const int       sortMode,
        const int       cutOut,
        const int       holePlug,
        const int       *labelNum,
        int             *area,
        double  *gravityX,
        double  *gravityY
)

Parameters
*image
Image data structure address
*model
Model data
invert
Reverse
0: OFF
1: ON
*HSVLut
HSV lookup table
upperLevel
Binary upper limit
lowerLevel
Binary lower limit
upperArea
Upper limit of the area
lowerArea
Lower limit of the area
maxLabelNum
Maximum number of labels
sortMode
Sort order
0: Area ascending
1: Area descending
2: X coordinate ascending
3: X coordinate descending
4: Y coordinate ascending
5: Y coordinate descending
cutOut
Screen cutout
holePlug
Filling up holes
*labelNum
Number of labels
*area
Area value (measurement result)
*gravityX
Gravity position (measurement result)
*gravityY
Gravity position (measurement result)

Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion

Description
Performs the labeling measurement.
You need to allocate the equivalent number of spaces as specified in the maximum number of labels for the measurement result.

Notes