1 | initial version |
If I understood it correctly, the task you are looking for is performed by the findCountours function.
The findContours method outputs a vector<vector<cv::Point> >
. If you apply findCountours in your Mat you will have as many vector<cv::Point>
as blobs in your binary image, and each of these vectors contains all the cv::Points that make the blob.