iat_match_features

[MAPPING, NUMMATCHES, INDEXA, INDEXB] = iat_match_features(DESCA, DESCB, RATIO)

iat_match_features implements descriptor matching between two sets of descriptors (features). The inverse cosine (arc-cosine) of the angle between two descriptors is used for their matching evaluation. Note that the function resolves double matches.

Input arguments

DESCA NxM array with N descriptors of length M that correspond to the first image
DESCB KxM array with K descriptors of length M that correspond to the second image
RATIO The maximum acceptable ratio between nearest and second-nearest angle for potential match (default: 1)

 

Output arguments

MAPPING A Nx1 vector that defines the mapping between DESCA and DESCB. The indices of MAPPING correspond to the indices of DESCA, while the entries of MAPPING correspond to the indices of DESCB. Zero entries correspond to unmatched descriptors.
NUMMATCHES Number of confirmed matches
INDEXA A vector with the indices of matched descriptors of DESCA, (INDEXA = MAPPING~=0)
INDEXB A vector with the indices of matched descriptors of DESCB (w.r.t. INDEXA)

 

Note: There is a MEX file for this function iat_match_features_mex

Back to Index