Im using openCV C++
Im need to convert a single channel image to 3 channels image. So i can use this: cvCvtColor(result,gray,CV_BGR2GRAY);
I cannot do that because the result img is a single channel image. Any ideas?
You should use CV_GRAY2BGR
instead of CV_BGR2GRAY
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With