Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

imshow() does some tricks under the hood, i.e float images are assumed to be in [0..1] range, and thus multiplied by 255 internally.

cv::imshow("Training image", trainingMat / 255);

will probably look ok in your case.