1 | initial version |
I think."OPEN METHOD" can solove you problem.
Mat src = imread("blob.jpg");
Mat dst;
Mat element = getStructuringElement(MORPH_ELLIPSE,Size(7,7));
morphologyEx(src,dst,CV_MOP_OPEN,element);
imshow("src",src);
imshow("dst",dst);
waitKey();