1

Is there a way to define our own distance for FLANN tool in OpenCV. This question has been asked here but remains not answered for more than 6 years.

lounice
  • 39
  • 8
  • 1
    You mean not L1, L2, or Linfinity distance? – wcochran May 06 '22 at 14:33
  • 1
    There are a few different algorithms/metrics implemented, but probably you can't easily provide your own. See for example https://stackoverflow.com/questions/43830849/opencv-use-flann-with-orb-descriptors-to-match-features/43835993#43835993 for LSH which can be used for binary features' distances. – Micka May 06 '22 at 14:46
  • @wcochran Yes. None of these. For my distance I compute N chi squared distances between feature A and circular shifted feature B (shifted N times). The minimal distance is returned. – lounice May 06 '22 at 14:52
  • 1
    You can probably implement that yourself. OpenCV is open source. – Micka May 06 '22 at 18:14
  • @Micka. Yes if I had more time. – lounice May 06 '22 at 18:45

0 Answers0