}
public void testChannels() {
- fail("Not yet implemented");
+ //fail("Not yet implemented");
+ utils.Log(grayRnd.dump());
}
public void testClone() {
JNIEXPORT jlong JNICALL Java_org_opencv_Mat_nEye\r
(JNIEnv *, jclass, jint, jint, jint);\r
\r
+/*\r
+ * Class: org_opencv_Mat\r
+ * Method: nDump\r
+ * Signature: (J)S\r
+ */\r
+JNIEXPORT jstring JNICALL Java_org_opencv_Mat_nDump\r
+ (JNIEnv *, jclass, jlong);\r
+\r
#ifdef __cplusplus\r
}\r
#endif\r
return (jlong) new cv::Mat(cv::Mat::eye( _rows, _cols, _type ));\r
}\r
\r
+JNIEXPORT jstring JNICALL Java_org_opencv_Mat_nDump\r
+ (JNIEnv *env, jclass cls, jlong self)\r
+{\r
+ cv::Mat* me = (cv::Mat*) self; //TODO: check for NULL\r
+ std::stringstream s;\r
+ s << *me;\r
+ return env->NewStringUTF(s.str().c_str());\r
+}\r
+\r
JNIEXPORT jlong JNICALL Java_org_opencv_Mat_nCreateMat__III\r
(JNIEnv* env, jclass cls, jint _rows, jint _cols, jint _type)\r
{\r
rows() + "*" + cols() + "*" + type() + \r
", isCont=" + isContinuous() + ", isSubmat=" + isSubmatrix() +\r
", nativeObj=0x" + Long.toHexString(nativeObj) + \r
- ", dataAddr=0x" + Long.toHexString(dataAddr()) + \r
+ ", dataAddr=0x" + Long.toHexString(dataAddr()) + \r
" ]";\r
}\r
\r
+ public String dump() {\r
+ return nDump(nativeObj);\r
+ }\r
+ \r
public boolean empty() {\r
if(nativeObj == 0) return true;\r
return nIsEmpty(nativeObj); \r
private static native long nCross(long self, long mat);\r
private static native long nInv(long self);\r
private static native long nEye(int rows, int cols, int type);\r
+ private static native String nDump(long self);\r
\r
}\r