/toolbox/sift/vl_ubcmatch.m

https://github.com/felixyu/vlfeat · Objective C · 30 lines · 29 code · 1 blank · 0 comment · 1 complexity · 8cd94cd94a580190dafad642fc2b59cd MD5 · raw file

  1. % VL_UBCMATCH Match SIFT features
  2. % MATCHES = VL_UBCMATCH(DESCR1, DESCR2) matches the two sets of SIFT
  3. % descriptors DESCR1 and DESCR2.
  4. %
  5. % [MATCHES,SCORES] = VL_UBCMATCH(DESCR1, DESCR2) retuns the matches and
  6. % also the squared Euclidean distance between the matches.
  7. %
  8. % The function uses the algorithm suggested by D. Lowe [1] to reject
  9. % matches that are too ambiguous.
  10. %
  11. % VL_UBCMATCH(DESCR1, DESCR2, THRESH) uses the specified threshold
  12. % THRESH. A descriptor D1 is matched to a descriptor D2 only if the
  13. % distance d(D1,D2) multiplied by THRESH is not greater than the
  14. % distance of D1 to all other descriptors. The default value of
  15. % THRESH is 1.5.
  16. %
  17. % The storage class of the descriptors can be either DOUBLE, FLOAT,
  18. % INT8 or UINT8. Usually integer classes are faster.
  19. %
  20. % REFERENCES::
  21. % [1] D. G. Lowe, Distinctive image features from scale-invariant
  22. % keypoints. IJCV, vol. 2, no. 60, pp. 91-110, 2004.
  23. %
  24. % See also: VL_HELP(), VL_SIFT().
  25. % Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
  26. % All rights reserved.
  27. %
  28. % This file is part of the VLFeat library and is made available under
  29. % the terms of the BSD license (see the COPYING file).