I am using opencv2.1.0 and I want to use r-tree structures via opencv. My idea is to find near by line segments for a given line segment (all are in 2d) using r-tree. I really do not know how to use this r-tree functions and i have end point coordinate of each line segment. if anyone knows how to use r-tree in opencv2.1.0 for 2D line segments, please show me the way and give some examples. to make clear i am inserting a picture also.
dark line is the given line, dash line is other lines. so i want to filter out all dash lines which are closer to the dark line. and I have many occasions like this. so i want efficient way that's why i am looking for r-tree.
What i really want is, i do not know how to represent 2d line segments in r-tree. for example in my data; data in the form...
line number, begin.X, begin.Y, begin.Z, end.X, end.Y, end.Z
http://stackoverflow.com/questions/14378160/r-tree-in-opencv2-1-0
dark line is the given line, dash line is other lines. so i want to filter out all dash lines which are closer to the dark line. and I have many occasions like this. so i want efficient way that's why i am looking for r-tree.
What i really want is, i do not know how to represent 2d line segments in r-tree. for example in my data; data in the form...
line number, begin.X, begin.Y, begin.Z, end.X, end.Y, end.Z
http://stackoverflow.com/questions/14378160/r-tree-in-opencv2-1-0