Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

change the following line

       Imgproc.GaussianBlur(grayScaleGaussianBlur, grayScaleGaussianBlur, new Size(5, 5), 0);

to

       Imgproc.GaussianBlur(grayScaleGaussianBlur, grayScaleGaussianBlur, new Size(7, 7), 0);

also change the if condition

       if (maxval >= 253.0 && minval > 0.0 && minval < 20.0)

to

        if (maxval >= 253.0 && minval <= 0.0)