bool done; IplConvKernel* element = cvCreateStructuringElementEx( 3, 3,0, 0, CV_SHAPE_CROSS, NULL ); do { cvErode(gray,erode,element,1); cvDilate(erode,temp,element,1); cvAbsDiff(gray,temp,temp); cvOr(skel,temp,skel,NULL); cvCopy(erode, gray, NULL); done = (cvCountNonZero(gray) == 0); } while (!done);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)