| Table of Contents / Matching / Descriptor-Based | Operators |
get_descriptor_model_points — Query the interest points of the descriptor model or the last processed search image.
With the operator get_descriptor_model_points interest points of the descriptor model or the last processed search image can be queried. It requires a ModelID returned by create_uncalib_descriptor_model, create_calib_descriptor_model, or read_descriptor_model.
The interest points stored in the model can always be queried by setting Set to 'model' and Subset to 'all'. If a find_uncalib_descriptor_model or find_calib_descriptor_model preceeds, with get_descriptor_model_points the interest points of the last search image can be queried as well by setting Set to 'search' and Subset to 'all'. Additionally, the matched (corresponding) points for each object instance found can be queried by setting Set to 'model' or 'search' (for the correspondences on the model or search image side, respectively) and Subset to the result number of the instance. The image coordinates of the queried points are returned in Row and Column.
A descriptor model 'ModelID' cannot be shared between two or more user's threads. Different descriptor models can be used independently and safely in different threads.
The handle to the descriptor model.
Set of interest points.
Default value: 'model'
List of values: 'model', 'search'
Subset of interest points.
Default value: 'all'
Suggested values: 'all', 0, 1, 2
Row coordinates of interest points.
Column coordinates of interest points.
create_uncalib_descriptor_model (Template,'harris',[],[],[],[],42, \
ModelID)
* Model points can be queried from a model, even if just created
get_descriptor_model_points (ModelID,'model','all',ModelRow,ModelColumn)
find_uncalib_descriptor_model (Image,ModelID,[],[],[],[],0.2,1, \
'num_points',HomMat2D,Score)
* Search points can be queried only after a
* find_[un]calib_descriptor_model was executed
get_descriptor_model_points (ModelID,'search','all',SearchRow,SearchColumn)
* Additionally, correspondences for the results can be queried
NumObjects := |HomMat2D|/9
for I := 0 to NumObjects-1 by 1
* Query corresponding points in the model
get_descriptor_model_points (ModelID,'model',I, \
CorrModelRow,CorrModelColumn)
* Query corresponding points in the search image
get_descriptor_model_points (ModelID,'search',I, \
CorrSearchRow,CorrSearchColumn)
* Those points are typically for visualizational purposes
gen_cross_contour_xld (CrossModel,CorrModelRow,CorrModelColumn, \
6,0.78)
gen_cross_contour_xld (CrossSearch,CorrSearchRow,CorrSearchColumn, \
6,0.78)
* ....
endfor
create_uncalib_descriptor_model, create_calib_descriptor_model, find_uncalib_descriptor_model, find_calib_descriptor_model, read_descriptor_model
create_uncalib_descriptor_model, create_calib_descriptor_model
Matching
| Table of Contents / Matching / Descriptor-Based | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |