Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question

makokal's profile - activity

2019-12-12 07:56:15 -0500 received badge  Notable Question (source)
2017-10-25 06:04:36 -0500 received badge  Popular Question (source)
2017-04-28 06:20:39 -0500 received badge  Taxonomist
2013-10-22 10:43:31 -0500 received badge  Student (source)
2012-10-24 08:52:15 -0500 asked a question strange stereorectify error with rotation matrix


I am doing stereo rectification using calibration data for a stereo pair in standard form (intrinsics as 3x3 Mat, distortions as 5x1 Mat, Rotation as 3x3 Mat and Translation as 3x1 Mat). But I keep getting the following exception

OpenCV Error: Formats of input arguments do not match (All the matrices must have 
the same   data type) in cvRodrigues2, 
file /build/buildd/opencv-2.3.1/modules/calib3d/src/calibration.cpp,  line 507 
terminate called after throwing an instance of 'cv::Exception' what():  
/build/buildd/opencv-2.3.1/modules/calib3d/src/calibration.cpp:507: error: (-205) 
All the matrices must have the same data type in function cvRodrigues2

Here is the calibration data

I call stereorectify with the following

cv::stereoRectify(ints_left_, ints_right_, dtcs_left_, dtcs_right_, 
          cv::Size(640, 480), rotation_, translation_, 
          homography_left_, homography_right_, 
          rppm_left_, rppm_right_, qmat_);