MultiSearch
Measures multi-point search
int MultiSearch(
const IMAGE *image,
const FIG_HEADER *figure,
const int subPixcel,
const double standardX,
const double standardY,
const int thresRough,
const int thersDetail,
const BYTE *model,
const int maxOutputNum,
int *searchNum,
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
|
thresRough
|
Rough search candidate level (0 to 100)
|
thersDetail
|
Detail search candidate level (0 to 100)
|
*model
|
Model data
|
maxOutputNum
|
Maximum number of output point
|
*searchNum
|
Search points (measurement result)
|
positionX
|
Search coordinate X (measurement result)
|
positionY
|
Search coordinate Y (measurement result)
|
*angle
|
Search angle (measurement result)
|
*correlation
|
Correlation (measurement result)
|
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.
Output all of the multiple coordinate values that exceed the candidate level.
Notes