Installing 2.4.9 with one module of 3.0.0 [closed]
Company-wide use is of opencv 2.4.9 but I wanted to add "shape" module available in 3.0.0 in 2.4.9 and reinstall it.
I looked at the code of sources and declarations in shape module and didn't seem like there would be any complicated dependencies and it seems like the module is self contained.
Simply copying header and source files, obviously doesn't work.
How do I accomplish this. Simply copying shape module into module folder doesn't work. I need to add something in CMake somewhere !
Hmm I think this could give you more hickups than expected. The 3.0 branch has a complete redesign on includes, file structures, CMAKE configurations, programming interfaces, ... Probably combining both interfaces will be one heck of a job :) GOOD LUCK! :)
Hello, I am almost sure it is not going to work even if you manage to configure the neccesary CMake files since the interface of a basic class (cv::Ptr<>) changed a lot when going to 3.0.0. There is hope if you modify the code in the cv::createShape* functions and make it work with the old cv::Ptr,
In that case, I think I'll try to go ahead and upgrade from opencv 2.4.9 to 3.0.0 . But if cv::Ptr<> is changed, is 3.0.0 backward compatible ?
No it is not. 3.0.0 will only handle the new interface but that is mostly internal code remaking. The function calls will stay about equal.