Opencv 3.0 Assertion failed [closed]
After roslaunch monocular_pose_estimator demo.launch
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
What is mean CV_IS_MAT
?
Did you solve this issue? I am getting the exact same error, when I use : cv2.undistortPoints(src_norm_mat, dst_norm_mat, cameraMatrix, distCoeffs, Mat, newCameraMatrix)
cameraMatrix is 3x3. But I have save as a numpy array.