gaoxiang12 / slambook2

edition 2 of the slambook
MIT License
5.39k stars 2k forks source link

fix bug for the use of CV_GRAY2BGR #260

Open Master-cai opened 1 year ago

Master-cai commented 1 year ago

CV_GRAY2BGR in ch8/direct_method.cpp and ch8/optical_flow.cpp is the usage of OpenCV3, but ch8 project uses OpenCV4. It will raise errors and i have changed all of it to COLOR_GRAY2BGR, the alternatives of CV_GRAY2BGR in OpenCV4. I have compiled and tested the project.