Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to pass a ArrayList for a jni C ++ function?

$
0
0
I am doing a project in Java with Android jni C ++. I have a function in C ++ with the following parameters: **C ++ function:** void rectify (vector & corners, Mat & img) {...} In **JAVA**, call would be: Mat image = Highgui.imread("img.png"); List cornners = new ArrayList();; Point b = new Point (real_x2, real_y2); MatOfPoint ma = new MatOfPoint (b); cornners.add(ma); rectfy(image.getNativeObjAddr(), cornners) public native "??" rectfy(long mat, "??" matofpoint); With that, I wonder how will the function **C ++ jni**: JNIEXPORT ?? JNICALL Java_ImageProcessingActivity_rectfy (JNIEnv * jobject, ?? cornners, inputMatAddress jlong)

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>