Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Binarizing using AdaptiveThreshold turens black image to white

I use this line of code for binarizing images:

Imgproc.adaptiveThreshold(grayMat,imageBW,255,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY,5,4);

I tested it using this image. and the result is this image