Created
August 14, 2015 05:33
-
-
Save berak/f5c0662b7538fee67f87 to your computer and use it in GitHub Desktop.
initUndistortRectifyMap java wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // void initUndistortRectifyMap(Mat K, Mat D, Mat R, Mat P, Size size, int m1type, Mat& map1, Mat& map2) | |
| // | |
| JNIEXPORT void JNICALL Java_org_opencv_calib3d_Calib3d_initUndistortRectifyMap_10 (JNIEnv*, jclass, jlong, jlong, jlong, jlong, jdouble, jdouble, jint, jlong, jlong); | |
| JNIEXPORT void JNICALL Java_org_opencv_calib3d_Calib3d_initUndistortRectifyMap_10 | |
| (JNIEnv* env, jclass , jlong K_nativeObj, jlong D_nativeObj, jlong R_nativeObj, jlong P_nativeObj, jdouble size_width, jdouble size_height, jint m1type, jlong map1_nativeObj, jlong map2_nativeObj) | |
| { | |
| static const char method_name[] = "calib3d::initUndistortRectifyMap_10()"; | |
| try { | |
| LOGD("%s", method_name); | |
| Mat& K = *((Mat*)K_nativeObj); | |
| Mat& D = *((Mat*)D_nativeObj); | |
| Mat& R = *((Mat*)R_nativeObj); | |
| Mat& P = *((Mat*)P_nativeObj); | |
| Size size((int)size_width, (int)size_height); | |
| Mat& map1 = *((Mat*)map1_nativeObj); | |
| Mat& map2 = *((Mat*)map2_nativeObj); | |
| cv::fisheye::initUndistortRectifyMap( K, D, R, P, size, (int)m1type, map1, map2 ); | |
| return; | |
| } catch(const std::exception &e) { | |
| throwJavaException(env, &e, method_name); | |
| } catch (...) { | |
| throwJavaException(env, 0, method_name); | |
| } | |
| return; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment