Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Opencv 3.0 Assertion failed in undistort.cpp

$
0
0
Hi! After roslaunch monocular_pose_estimator demo.launch [git](https://github.com/uzh-rpg/rpg_monocular_pose_estimator) OpenCV Error: Assertion failed (CV_IS_MAT(_cameraMatrix) && _cameraMatrix->rows == 3 && _cameraMatrix->cols == 3) in cvUndistortPoints, file /home/tuuzdu/tmp/opencv-3.0.0/modules/imgproc/src/undistort.cpp, line 288 terminate called after throwing an instance of 'cv::Exception' what(): /home/tuuzdu/tmp/opencv-3.0.0/modules/imgproc/src/undistort.cpp:288: error: (-215) CV_IS_MAT(_cameraMatrix) && _cameraMatrix->rows == 3 && _cameraMatrix->cols == 3 in function cvUndistortPoints `_cameraMatrix` calls like `trackable_object_.camera_matrix_K_ = cv::Mat(3, 3, CV_64F);` I rewrite undistort.cpp with `CV_Assert( CV_IS_MAT(_cameraMatrix) );` and with `CV_Assert( _cameraMatrix->rows == 3 && _cameraMatrix->cols == 3 );` I got "Assertion failed" only with `CV_IS_MAT(_cameraMatrix)` What is mean `CV_IS_MAT`?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>