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

Getting full objects on a binary image (C++)

$
0
0
Hi there, I have a binary image like this: ![image description](http://answers.opencv.org/upfiles/14729833094670418.png) 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: ![image description](http://answers.opencv.org/upfiles/14729836487195232.png) If I draw the same image using the parameter CV_FILLED, I get the next result: ![image description](http://answers.opencv.org/upfiles/14729837496088088.png) 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.

Viewing all articles
Browse latest Browse all 19555

Latest Images

Trending Articles



Latest Images

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