Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you need a grayscale image for this.

could convert after loading, but telling imread to do it, is easier:

img = cv2.imread("Lenna.png",0); // load 8bit gray