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
2 | No.2 Revision |
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)