Ask Your Question
0

Why is there an opencv2 folder inside OpenCV 3.x?

asked 2018-06-15 11:10:09 -0600

mannyglover gravatar image

Is this just for backwards compatibility, for people who have been developing for years with OpenCV 2 and then want to use OpenCV 3 without having to rewrite all their legacy code? Or is this related to a fundamental design decision the creators of OpenCV 3 opted for? For instance, when I look up imread examples for OpenCV 3, they have #include "opencv2/imgproc.hpp". Is this just the way you refer to certain files/functions in OpenCV 3, or is there an "OpenCV 3 way" out there that many people don't use, because they just prefer the old syntax/style of various operations?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-06-15 11:50:34 -0600

berak gravatar image

updated 2018-06-15 13:09:11 -0600

don't trouble yourself with it too much.

it's just there for historical reasons, to distinguish it from the pre-existing, now deprecated c-based 1.0 api, like you already thought before.

it won't get changed or "increased" in further 3.x. or 4.x versions, and there is no "hidden magic".

edit flag offensive delete link more

Comments

1

Cool. Thank you.

mannyglover gravatar imagemannyglover ( 2018-06-15 13:01:57 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-06-15 11:10:09 -0600

Seen: 154 times

Last updated: Jun 15 '18