Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you normalized the output image to [0..1] range. (yep, that will look pretty dark)

so, map it back to [0..255] range, when converting it to CV_8U:

gry.convertTo(gry, CvType.CV_8U, 255);