Closed Arhno closed 8 years ago
Turns out the issue wasn't with findContours but with me not getting how to access a multi-channels matrix.
Translating Mat#at from C++ #8 helped me in that respect.
Thank you for the work you've done with this binding
When using the findContours function, the returned hierarchy is a row matrix with as many columns as contours.
Based on the documentation of OpenCV, the hierarchy should be n x 4 where n is the number of contours. I expected the type of the hierarchy to be Std::vector::Cv_Vec4i.
In the current situation, the hierarchy variable is useless.