Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

if you use imread without any flags, it will default to IMREAD_COLOR, which will force your image into 3 channels (even if it was grayscale originally !).

in your case, IMREAD_GRAYSCALE should be used

if you use imread without any flags, it will default to IMREAD_COLOR, which will force your image into 3 channels (even if it was grayscale originally !).

in your case, IMREAD_GRAYSCALE should be usedused.

(and yes, equalizeHist only works on a single channel img)