Hi there,
I have a binary image like this:

When I apply findContours function to the image I get one vector> which contains a set of points for each object detected. So, when I try to draw the first element of the vector> variable I get the next output image:

If I draw the same image using the parameter CV_FILLED, I get the next result:

My answer is: Can I get the whole pixels of each object, instead the pixels of the contours? So when I paint all the pixels of the vector I get the image #3. I want to process all the pixels of an object, not only the contours.
Thank you.
↧