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