Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to use R-tree for line segments (using opencv)

$
0
0
I have huge number of 2D line segments having varying in length and oriented in different direction.
My idea is to find near by line segments for a given line segment using r-tree data structure. I found opencv library also contains R-tree but I really do not know how to use this r-tree functions.
If i say about my data; i have end point coordinates of each line segment and also I gave a unique number for each line.

Currently, I am using opencv2.1.0 and I want to use r-tree structures via opencv2.1.0.

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 want efficient way that's why i am looking for r-tree.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>