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*?
↧