Search

Search

int Search(
        const IMAGE             *image,
        const FIG_HEADER        *figure,
        const int               subPixcel,
        const double    standardX,
        const double    standardY,
        const int               threshold,
        const BYTE              *model,
        double          *positionX,
        double          *positionY,
        double          *angle,
        double          *correlation
)

Parameters
*image
Image data structure address
*figure
Figure data structure address
subPixcel
Sub-pixel
0: OFF
1: ON
standardX
Reference coordinate X
standardY
Reference coordinate Y
threshold
Rough search candidate level (0 to 100)
*model
Model data
*positionX
Search coordinate X (measurement result)
*positionY
Search coordinate Y (measurement result)
*angle
Search angle
*correlation
Correlation

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

Description
To perform a search, perform the "search image creation for Hough conversion search" and then the "Hough conversion search" to calculate the candidate points.
Next, perform the "normalization CR search" for each candidate point, and output the position having the highest correlation value as the search position.
The search range is specified by a FIGURE structure, which must represent a rectangle figure.

Notes