1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-26 22:03:04 +04:00

Added new module for Java API

This commit is contained in:
Andrey Kamaev
2011-06-23 15:51:51 +00:00
parent f0624c08dc
commit b5d73111eb
17 changed files with 2118 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
package org.opencv;
import android.graphics.Bitmap;
public class utils {
public static Mat BitmapToMat(Bitmap b) {
return new Mat( nBitmapToMat(b) );
}
public static boolean MatToBitmap(Mat m, Bitmap b) {
return nMatToBitmap(m.nativeObj, b);
}
// native stuff
static { System.loadLibrary("opencv_java"); }
private static native long nBitmapToMat(Bitmap b);
private static native boolean nMatToBitmap(long m, Bitmap b);
}