Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you have to read the fine print in the docs, too !

Currently, the Otsu's and Triangle methods are implemented only for 8-bit images.

then, even if you change the method flag, you cannot use your img Mat for the output, since the return type is uchar, and the type of a Mat_<float> cannot be changed.

you have to read the fine print in the docs, too !

Currently, the Otsu's and Triangle methods are implemented only for 8-bit images.

then, even if you change the method flag, you cannot use your img Mat for the output, since the return type is uchar, and the type of a Mat_<float> cannot be changed.