如何使用Java中使用NDK的Android? [英] How to use Java with NDK Android?
问题描述
我假设使用OpenCV的code在这里: http://github.com/billmccord/OpenCV-Android#readme 是在Android上使用OpenCV的,与NDK的最佳方式。
I am assuming that using the OpenCV code here: http://github.com/billmccord/OpenCV-Android#readme is the best way to use OpenCV on Android, with the NDK.
我仍然坚持为我是如何从函数的C定义得到 对那些我宣布在OpenCV.java在我的Android项目
I am still stuck as to how I get from the C definitions of functions to the ones I declare in OpenCV.java in my Android project
cvFindContours( void* img, CvMemStorage* storage,
CvSeq** firstContour, int cntHeaderSize,
int mode,
int method, CvPoint offset ) --> findContours(int[]
data, int w, int h) )
pciated任何帮助/指针AP $ P $,甚至从哪里开始摸不着头脑。
我现在想用 cvHoughCircles,cvHoughCircles(CvArr *图像,
无效* circle_storage,诠释法,双DP,双min_dist,双参数1 = 100,双参数2 = 300,INT min_radius = 0,INT max_radius = 0};
Any help/pointers appreciated, even where to start to figure this out.
I currently want to use cvHoughCircles, cvHoughCircles(CvArr* image,
void* circle_storage, int method, double dp, double min_dist, double param1 = 100, double param2 = 300, int min_radius = 0, int max_radius = 0};
我怎样写这在Java中使用NDK为Android?
How do I write this in java with ndk for android?
推荐答案
请问您的应用程序所需要的C接口? OpenCV的实际认为,德precated /做搭配,新的API是C ++。这个接口和样品校准应用程序的端口所在的位置: HTTP://$c$c.google.com / P / Android的OpenCV的/
Does your app require the C interface? OpenCV actually considers it deprecated / done with, the new API is C++. A port of this interface and sample calibration app are here: http://code.google.com/p/android-opencv/
我花了,而在新的C ++获得出售,但我不得不承认,很高兴没有做cvReleaseMat()和来回的IplImage和CvMat中的所有的时间。 OpenCV的2.1 DOC:<一href="http://opencv.willowgarage.com/documentation/cpp/index.html">http://opencv.willowgarage.com/documentation/cpp/index.html
It took me a while to get sold on the new C++, but I had to admit it was nice to not have to do cvReleaseMat() and go back and forth between IplImage and CvMat all the time. Opencv 2.1 doc: http://opencv.willowgarage.com/documentation/cpp/index.html
这篇关于如何使用Java中使用NDK的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!