fixed strings in n1_dims(): n1_dcols() -> n1_dims()
This commit is contained in:
parent
1ccfa62f4f
commit
12c42ac145
@ -540,15 +540,15 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1dims
|
|||||||
|
|
||||||
return _retval_;
|
return _retval_;
|
||||||
} catch(cv::Exception e) {
|
} catch(cv::Exception e) {
|
||||||
LOGD("Mat::n_1cols() catched cv::Exception: %s", e.what());
|
LOGD("Mat::n_1dims() catched cv::Exception: %s", e.what());
|
||||||
jclass je = env->FindClass("org/opencv/core/CvException");
|
jclass je = env->FindClass("org/opencv/core/CvException");
|
||||||
if(!je) je = env->FindClass("java/lang/Exception");
|
if(!je) je = env->FindClass("java/lang/Exception");
|
||||||
env->ThrowNew(je, e.what());
|
env->ThrowNew(je, e.what());
|
||||||
return 0;
|
return 0;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
LOGD("Mat::n_1cols() catched unknown exception (...)");
|
LOGD("Mat::n_1dims() catched unknown exception (...)");
|
||||||
jclass je = env->FindClass("java/lang/Exception");
|
jclass je = env->FindClass("java/lang/Exception");
|
||||||
env->ThrowNew(je, "Unknown exception in JNI code {Mat::n_1cols()}");
|
env->ThrowNew(je, "Unknown exception in JNI code {Mat::n_1dims()}");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user