Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

doubt about findContours - hiearchy

$
0
0
After reading the paper about the algorithm behind *findContours*, a doubt came up to me. During scans, when a new border point shows up, the parent border is decided according to a few criteria. If *NBD* (newest) and *LNBD* (latest newest) are of the same type, the parent of *NBD* is the parent of *LNBD*. Otherwise, the parent is *LNBD* itself. Looking at the docs, openCV stores this type of things in *hiearchy[i][3]*. But my doubt is, how and where is built the rest of *hierarchy* (e.g., previous, next) when i use *CV_CHAIN_APPROX_NONE* and *CV_RETR_TREE*?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



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