Ask Your Question

Revision history [back]

I think."OPEN METHOD" can solove you problem. image description

     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();