Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you cannot do this operation in uchar space (e.g. divisions will lead to values < 1), you should convert to some float:

img.convertTo(img, CV_32F);

before splitting it.

you cannot do this operation in uchar space

(e.g. divisions will lead to values < 1), you should convert to some float:

img.convertTo(img, CV_32F);

before splitting it.