Installing 2.4.9 with one module of 3.0.0 [closed]

asked 2014-10-08 08:24:45 -0600

navderm gravatar image

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 !

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-17 06:32:08.131052

Comments

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! :)

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-08 09:04:20 -0600 )edit
1

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,

juanmanpr gravatar imagejuanmanpr ( 2014-10-08 14:57:58 -0600 )edit
1

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 ?

navderm gravatar imagenavderm ( 2014-10-13 21:01:17 -0600 )edit

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.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-14 01:52:05 -0600 )edit