java tests: Mat.inv and Mat.cross implemented, almost all Mat tests finished except put, get and dispose

This commit is contained in:
Kirill Kornyakov
2011-07-12 08:16:01 +00:00
parent 2dd965b7f5
commit 9b464199d6
3 changed files with 38 additions and 30 deletions

View File

@@ -379,15 +379,18 @@ JNIEXPORT jdouble JNICALL Java_org_opencv_Mat_nDot
}
JNIEXPORT jlong JNICALL Java_org_opencv_Mat_nCross
(JNIEnv* env, jclass cls, jlong self, jlong it)
(JNIEnv* env, jclass cls, jlong self, jlong m)
{
return 0; //NYI
cv::Mat* me = (cv::Mat*) self; //TODO: check for NULL
cv::Mat* _m = (cv::Mat*) m; //TODO: check for NULL
return (jlong) new cv::Mat(me->cross( *_m ));
}
JNIEXPORT jlong JNICALL Java_org_opencv_Mat_nInv
(JNIEnv* env, jclass cls, jlong self)
{
return 0; //NYI
cv::Mat* me = (cv::Mat*) self; //TODO: check for NULL
return (jlong) new cv::Mat(me->inv());
}
JNIEXPORT jlong JNICALL Java_org_opencv_Mat_nCreateMat__