Operator Reference
get_descriptor_model_results (Operator)
get_descriptor_model_results
— Query alphanumerical results that were accumulated during descriptor-based
matching.
Signature
get_descriptor_model_results( : : ModelID, ObjectID, ResultNames : Results)
Description
The operator get_descriptor_model_results
allows to access
alphanumeric results of the descriptor based matching process. The results
are stored in a descriptor based model specified by ModelID
.
ObjectID
specifies for which object the results should be
returned. The objects are 0-based indexed and in the same order as they
are detected by find_uncalib_descriptor_model
or
find_calib_descriptor_model
, respectively. Results can be queried
for all objects at once by specifying 'all' in ObjectID
,
if they are single valued (e.g., ResultNames
='num_points'
or ResultNames
='inlier_ratio' ).
The results returned in Results
can be selected by setting
ResultNames
to:
- 'num_points' :
-
number of object points that correspond to model points.
- 'inlier_ratio' :
-
ratio of successfully matched object points relative to all descriptor model points.
- 'homography' :
-
a 3x3 projective transformation matrix which transforms model points into object points. Note that the result of the mapping depends on the selected model origin (see
set_descriptor_model_origin
). - 'pose' :
-
returns the estimated object pose. Note that this result can only be queried after
find_calib_descriptor_model
was called. - 'point_classification' :
returns concatenated triads representing the classification results for the interest points extracted from the search image during the last call of
find_uncalib_descriptor_model
orfind_calib_descriptor_model
. Each triad consists of a search point index on the first, a model point index on the second, and a classification score on the third position. The search and model point indices correspond to the point coordinates returned byget_descriptor_model_points
with the parameterSubset
set to 'all' and the parameterSet
set to 'search' and 'model' , respectively. If a number is passed inObjectID
only the classification results for the points matched to this object are returned. If 'all' is passed inObjectID
the classification results for all points, including the points not matched to any object, are returned. The triads are sorted in descending order with respect to their score. Points having a score less than the value of the descriptor parameter 'min_score_descr' (seefind_calib_descriptor_model
orfind_uncalib_descriptor_model
) are rejected and are not listed in the resulting classification results.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ModelID
(input_control) descriptor_model →
(handle)
Handle of a descriptor model.
ObjectID
(input_control) integer →
(integer / string)
Handle of the object for which the results are queried.
Default: 'all'
Suggested values: 'all' , 0, 1, 2, 3
ResultNames
(input_control) attribute.name →
(string)
Name of the results to be queried.
Default: 'num_points'
List of values: 'homography' , 'inlier_ratio' , 'num_points' , 'point_classification' , 'pose'
Results
(output_control) attribute.value(-array) →
(string / integer / real)
Returned results.
Possible Predecessors
find_uncalib_descriptor_model
,
find_calib_descriptor_model
See also
get_descriptor_model_origin
,
get_descriptor_model_params
,
get_descriptor_model_points
Module
Matching