Ask Your Question
-1

flann & circular parameters

asked 2013-06-08 03:09:24 -0600

updated 2013-06-08 05:47:22 -0600

How should I use flann by circular parameters(angle[0..360])?

Note :In other words,the difference between 10 degree & 0 degree is 10 and the difference between 350 degree & 0 degree is also 10.

image description

edit retag flag offensive close merge delete

Comments

I do not think that you could make your question more unclear than this ... more ellaboration?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-06-08 04:23:41 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2013-06-08 05:35:57 -0600

Guanta gravatar image

Guess you need to define your own distance function. This is not (easily) possible with OpenCV any more. With a modified and self-build flann-library it is possible though.

edit flag offensive delete link more
0

answered 2013-07-30 00:56:47 -0600

I solved the problem with a trick.For angles that are on the border append new feature to query list.

if (new_angle < thresh)
  addNewFeature(x,y,359);
if (new_angle > 360 - thresh)
  addNewFeature(x,y,0);
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-06-08 03:09:24 -0600

Seen: 191 times

Last updated: Jul 30 '13