CircleAngleModel

Registers circle angle model

int CircleAngleModel(
        const IMAGE             *image,
        const FIG_HEADER        *figure,
        const int               mode,
        int                     stepAngle,
        const int               edgePitch,
        const BYTE              *model
)

Parameters
*image
Image data structure address
*figure
Figure data structure address
mode
Mode
0: Search (default)
1: Defect
2: Edge
stepAngle
Skipping angle (1 to 100: default is 4)
edgePitch
Edge pitch (1 to 99: default is 10)
*model
Model data

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

Description
Gets the model data of the circle angle measurement.
When you call this library, you need to allocate the model data storage space in advance.
The required size of the model data storage space need to be calculated using the Circle angle model size retrieval (see "refCircleAngleModelSize Circle angle model size retrieval") in this library.
The figure passed by the FIGURE structure must be a "circumference".

Notes