| 14 | } |
| 15 | |
| 16 | cv::Mat* getNativeMat(JNIEnv *env, jobject _mat) |
| 17 | { |
| 18 | jclass class_Mat = env->FindClass("org/opencv/core/Mat"); |
| 19 | jmethodID method_getNativeObjAddr = env->GetMethodID(class_Mat, "getNativeObjAddr", "()J"); |
| 20 | assert(class_Mat != nullptr && method_getNativeObjAddr != nullptr); |
| 21 | jlong pointer = env->CallLongMethod(_mat, method_getNativeObjAddr); |
| 22 | |
| 23 | return reinterpret_cast<cv::Mat*>(pointer); |
| 24 | } |
| 25 | |
| 26 | // This is the Point that reside in android.graphic.Point, not org.opencv.core.Point |
| 27 | cv::Point2f getNativePoint(JNIEnv *env, jobject _point) |
no outgoing calls
no test coverage detected