NAME
get_putative_matches - Extracts putatively matched keypoints for each image.
SYNOPSIS
#include "kpt/putative_match.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int get_putative_matches
(
const Keypoint_vector *target_kvp,
const Keypoint_vector *candidate_kvp,
const double strength_threshold,
const double redundance_threshold,
int *num_putative_matches,
Int_matrix **match_idx_impp
);
DESCRIPTION
This routine finds a nearest neighbor for each keypoint of target_kvp based on the
strength_threshold. If the redundance_threshold is not = 0, then the routine
removes the redundant keypoint matches.
RETURNS
an error code or a count of putative matches.
INPUT
const Keypoint_vector *target_kvp - target keypoints for which to find matches
const Keypoint_vector *candidate_kvp - candidate keypoints
const double strength_threshold - the distance ratio for the NN keypoint
descriptor match
const double redundance_threshold - the similarity threshold
int *num_putative_matches - the total count of the matches.
Int_matrix **match_idx_impp - a 2-column matrix to store the indices of the matches:
i.e. element[0][0] is target_kvp index, which matched
element[0][1] index from candidate_kvp vector;
can be set to NULL if not interested in the values.
RELATED
get_keypoint_match, remove_redundant_matches
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
get_putative_matches_2
,
get_putative_matches_3
,
extract_match_positions
,
extract_match_positions_1
,
extract_match_positions_2
,
get_constrained_keypoint_match
,
print_keypoint_parameters