Ask Your Question

iOS Framework includes

asked 2012-10-14 05:13:41 -0500

dima.choen gravatar image

updated 2012-10-14 05:15:33 -0500

Adi gravatar image

Why doesn't the iOS framework (2.4.2) include the cv.h header file ?

As a result opencv2/legacy/compat.hpp needs to be manually included as it isn't included in opencv.hpp

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-10-23 21:28:47 -0500

AlexanderShishkov gravatar image

On iOS we support only C++ interface.

edit flag offensive delete link more


Is there a reason for this?
The C interface actually works fine when the headers are replaced. Is there any (core) functionality that should not work on iOS?

Adi gravatar imageAdi ( 2012-10-24 02:17:42 -0500 )edit

All C functions should work on iOS, but C interface is obsolete. We are trying to teach all OpenCV users to use new C++ interface. It is more powerful and more easy.

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-11-01 16:56:30 -0500 )edit

Teaching is good, but there's still a large amount of existing ("legacy") code out there. Making sure older APIs still work is essential for any gradual transition of a system.

Adi gravatar imageAdi ( 2012-11-02 13:43:48 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2012-10-14 05:13:41 -0500

Seen: 218 times

Last updated: Oct 23 '12