cv.stereoRectify issue #33

Closed
harguess opened this Issue Jan 24, 2013 · 3 comments

Projects

None yet

3 participants

@harguess
harguess commented Jan 24, 2013 edited

Everything compiled fine and all the examples work except for the calibration_demo example. When I run that demo I get the following error:

Error using cv.stereoRectify
Unexpected Standard exception from MEX file.
What() is:......\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)

If I run a similar demo in C++ that uses stereoRectify, I don't see any errors, so that leads me to believe the problem is not in OpenCV. Any help would be appreciated!

Also, great work on this project!

@kyamagu
Owner
kyamagu commented Jan 24, 2013

The error is that the mex file was using C-style argument order while the sample was using C++-style arguments. I aligned the mex file to the C++ style in the latest commit. Thanks.

@kyamagu kyamagu closed this Jan 24, 2013
@amroamroamro
Collaborator

@kyamagu this is was originally reported in #15, but wasn't fixed correctly in 8afd141 :)

@kyamagu
Owner
kyamagu commented Jan 24, 2013

Yeah, it should be fine now.

On Jan 24, 2013, at 3:26 PM, Amro notifications@github.com wrote:

@kyamagu this is was originally reported in #15, but wasn't fixed correctly in 8afd141 :)


Reply to this email directly or view it on GitHub.

@amroamroamro amroamroamro added the bug label Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment