EdgePositionModel

Registers edge position model

int EdgePositionModel(
        const IMAGE             *image,
        const FIG_HEADER        *figure,
        const int               direction,
        BYTE                    *model
)

Parameters
*image
Image data structure address
*figure
Figure data structure address
direction
Edge measurement direction
0: Clockwise
1: Counterclockwise
*model
Model data

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

Description
Gets the model data of the edge position measurement.
When you call this library, you need to allocate the model data storage space in advance.
The required size for the model data storage space can be calculated with the "refEdgePositionModelSize Gets the size of an edge position model" in this library.
The figure passed by the FIGURE structure must be "wide straight line", "wide circumference", or "wide arc".
Edge measurement direction is enabled only when the figure is "wide circumference" or "wide arc".

Notes