HoughSearch

Hough conversion search

int HoughSearch(
        const IMAGE             *image,
        const FIG_HEADER        *figure,
        const int               subPixcel,
        const int               startAngle,
        const int               endAngle,
        const double    standardX,
        const double    standardY,
        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
startAngle
Rotation start angle (-180 to 180: default is 0)
endAngle
Rotation end angle (-180 to 180: default is 0)
standardX
Reference coordinate X
standardY
Reference coordinate Y
*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