Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

alalek is one of OpenCV Team says in one response for a bug the following:

"OpenCV is a C++ library now and actively uses C++ features, like exceptions and so on. Direct support for C compilers has been dropped some years ago, so you should not create C applications using OpenCV. "C-API" is not supported and should be removed totally (but we have a lack of resources to port this legacy C code to C++, so some of this code still exists right now). Also huge part of fresh OpenCV functionality is missing in "C-API". There is no plan to fix this in OpenCV directly. If you want to use OpenCV from C application code you need to find some implementation of C bindings which wraps OpenCV C++ functionality (al least these bindings should catch exceptions and return exit codes for user application)."

i think if you want to build c application using openCV dierectly you will lose the support from OpenCV Team , they will advice you to port to c++.

The c wrapper is my the advice for you , may be others have another advice for you.

alalek is one of OpenCV Team says in one response for a bug the following:following c API Bug:

"OpenCV is a C++ library now and actively uses C++ features, like exceptions and so on. Direct support for C compilers has been dropped some years ago, so you should not create C applications using OpenCV. "C-API" is not supported and should be removed totally (but we have a lack of resources to port this legacy C code to C++, so some of this code still exists right now). Also huge part of fresh OpenCV functionality is missing in "C-API". There is no plan to fix this in OpenCV directly. If you want to use OpenCV from C application code you need to find some implementation of C bindings which wraps OpenCV C++ functionality (al least these bindings should catch exceptions and return exit codes for user application)."

i think if you want to build c application using openCV dierectly you will lose the support from OpenCV Team , they will advice you to port to c++.

The c wrapper is my the advice for you , may be others have another advice for you.