
I’m planning to try contours on some image. Lets say I have three object after binarized. Does it mean I have three contours? If yes, how can I process every each of the contours?
Thank you.
Updated: I need to process blobs #1 first. FYI, the blobs are not exactly like a quadrilateral. If tried using cvSetImageROI but blob #2 and part of blob #3 might appear in the cropped image. I was thinking if contours can extract only blob #1 without having blob #2 and #3. Is it clear with the explanation? (using C API not C++ API).
Each
contouris array (std::vector) ofPoints. When you callfindContoursit returns array of contours in your binary image. Here’s simple example:Here’s official OpenCV manual.