libfovis
|
Matches features between a reference and a target image. More...
Public Member Functions | |
void | matchFeatures (PyramidLevel *ref_level, PyramidLevel *target_level, const std::vector< std::vector< int > > &candidates, FeatureMatch *matches, int *num_matches) |
Matches features between a reference and a target image.
void matchFeatures | ( | PyramidLevel * | ref_level, |
PyramidLevel * | target_level, | ||
const std::vector< std::vector< int > > & | candidates, | ||
FeatureMatch * | matches, | ||
int * | num_matches | ||
) |
Feature matching using sum of absolute differences (SAD).
ref_level | features in the reference image. |
target_level | features in the target image. |
candidates | identifies potential match candidates for each feature in the reference image. For every reference feature, there is a vector of target feature indices that is a potential match. |
matches | output array of matches. This should be pre-allocated and of size at least min(num features in ref_level , num features in target_level ) |
num_matches | output parameter, is set to the number of features matched. |