Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I figure out how to fix it, but I still don't understand why it happens in the first place:

Here is a fix: imshow(img/255.0, cmap='gray') which shows it in grayscale.