Added new module for Java API

Esse commit está contido em:
Andrey Kamaev
2011-06-23 15:51:51 +00:00
commit b5d73111eb
17 arquivos alterados com 2118 adições e 1 exclusões
+19
Ver Arquivo
@@ -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);
}