SearchModelSize

Gets the size of a search model

int SearchModelSize(
        const IMAGE             *image,
        const FIG_HEADER        *figure,
        const int               searchMode,
        const int               startAngle,
        const int               endAngle,
        const int               searchSpeed,
        const int               searchStepRough,
        const int               modelStepRateRough,
        const int               modelStepDetail,
        const int               stepAngleRough,
        const int               stepAngleDetail
)

Parameters
*image
Image data structure address
*figure
Figure data structure address
searchMode
Search mode
0: Rotation off (CR)
1, 2: Rotation on (CR)
3: Rotation on (Precise)
startAngle
Rotation start angle (-180 to 180: default is 0)
endAngle
Rotation end angle (-180 to 180: default is 0)
searchSpeed
Search speed (-1, 1 to 10: default is 3)
searchStepRough
Rough search, Search skipping (1 to 20: default is 4)
modelStepRateRough
Rough search, Model skipping scale (1 to 10: default is 2)
modelStepDetail
Detail search, Model skipping (1 to 200: default is 8)
stepAngleRough
Rough search Skipping angle (1 to 90: default is 5)
stepAngleDetail
Detail search Skipping angle (1 to 90: default is 1)

Return Value
Model size (in bytes)
ERROR(-1): Unsuccessful completion

Description
Gets the size of the model storage space which is required when you create a model in the specified model registration area.
For the details of each parameter, see "refSearchModel Search model registration".

Notes