OpenCv Android and 'IplImage*' type

asked 2015-05-20 04:48:10 -0500

anb0483 gravatar image

I'm trying to use a simple call, which is working at Visual Studio and C++ and OpenCv!

IplImage* in = cvLoadImage("C:\Bilder\Bild1.png");

But with OpenCV-2.4.10-android-sdk and Eclipse it isnt, I'm getting this error:

IplImage cannot be resolved to a type

edit retag flag offensive close merge delete

Comments

IplImage is C part, maybe you have not linked some .h files? I would suggest you to use the C++ version, C is deprecated

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-05-20 04:57:10 -0500 )edit
2

please use: cv::Mat img = cv::imread(filename);

you are simply not allowed to use those deprecated c-api calls with android

berak gravatar imageberak ( 2015-05-20 05:10:06 -0500 )edit