ethz-asl / rovio

Other
1.12k stars 504 forks source link

Update for opencv4 macros #252

Open pvangoor opened 2 years ago

pvangoor commented 2 years ago

I wasn't able to build on ubuntu 20.04 with opencv4 because of the macro "CV_GRAY2RGB", which was replaced by "cv::COLOR_GRAY2RGB". This pull request fixes the problem, and should remain compatible with opencv3 or lower. Please let me know if there is anything else you need me to do to be able to merge!

ethzasl-jenkins commented 2 years ago

Can one of the admins verify this patch?

mariusud commented 2 years ago

Worked for me

zhoupian2010 commented 1 year ago

It's better to merge only the first commit ?