Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error with cv2.stereoRectify

I'm getting the following error when trying to implement cv2.stereoRectify:

error: C:\slave\WinInstallerMegaPack\src\opencv\modules\imgproc\src\undistort.cpp:292: error: (-215) CV_IS_MAT(_distCoeffs) && (_distCoeffs->rows == 1 || _distCoeffs->cols == 1) && (_distCoeffs->rows_distCoeffs->cols == 4 || _distCoeffs->rows_distCoeffs->cols == 5 || _distCoeffs->rows*_distCoeffs->cols == 8)

My distCoeffs array looks like this:

[[-0.00716872 -0.02469766  0.00481753 -0.00261278]]

Is something wrong with it? In case it matters, I'm running OpenCV 2.44