OpenCV3.0 c and c++

asked 2015-02-23 11:09:52 -0500

Wilk gravatar image

updated 2015-02-23 15:35:36 -0500

Hi,i ts my first post here though I am using this library from some time.

I'm interested why OpenCV library moved from C to C++ and if there is any possibility, that C will be also native for this library, not only supported as a legacy. I also would like to know, why many computer-vision libraries (like OpenCV, I mean PCL or ROS) are written in c++ and not in c?

edit retag flag offensive close merge delete

Comments

My guess would be: for the same reasons that people program in C++ over C in most desktop application. I know that for embedded systems, C is more practical, but... I am not the one responsible for the decision. though ;)

Doombot gravatar imageDoombot ( 2015-02-26 09:52:58 -0500 )edit

Thank you for response. I was just curious which language should I use in future- despite I can read c and c++ code I still feel that I need to spend a bit more time to master one of these languages. On the other hand I read some opinions on c and c++(Linus Torvalds one, yes I know....) and well I don't like classes and would like to use some more goto instructions (beside the flame war around). What I'm trying to say is that there must be a reason why OpenCV has been rewritten in c++ (maybe the difficulties in including Opencv c version in c++ project which was the majority?). If I knew what problems the opencv had I would omit them befor starting writing any program than learn about them at the end.

Wilk gravatar imageWilk ( 2015-03-04 07:24:20 -0500 )edit