Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you need a grayscale image as input, not a color one.

Mat img=imread("G:/Capture.png", IMREAD_GRAYSCALE);