I'm trying to compile my code with opencv 3.0.0 (that worked with previous opencv versions)
cvtColor(img, img, CV_RGB2BGR);
and get compilation error
‘CV_RGB2BGR’ was not declared in this scope
The option also does not exist in the documentation
How can I get the same functionality (RGB2BGR) with the new version?
Use constant cv::COLOR_RGB2BGR instead of CV_RGB2BGR.
It works for other convertions too, just change CV_ to cv::COLOR_ .
Just checked it it works for me.
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