1 | initial version |
Hi Luek,
By using Mat() as the third argument on erode you are using de default 3x3 structuring element, which might be too small for your case. You should experiment with larger sizes/different shapes of structuring element until you achieve satisfying results..
You can try something like this:
int size = 6; //Play with this size until you get the results you want
erode ( quad, quad, cv::getStructuringElement ( MORPH_RECT, size ), cv::Point ( -1, -1 ), 2, 1 , 1);