OpenCV Error: Assertion failed (abs_max < threshold) in stereoCalibrate [closed]

asked 2015-08-04 13:50:56 -0600

Nano gravatar image

I am trying to run fisheye::stereoCalibrate but I run into an exception for

        CV_Assert(abs_max < threshold); // bad stereo pair

This is an error I get when trying to run multiple images, however if I remove a particular image from the list it does not throw the exception. But on trying to run fisheye::stereoCalibrate for just that image I don't get any exception.

Any suggestions as to why this might be happening?

I have computed the intrinsics for each camera individually with a reproduction error of the order 0.1 , so I don't think that is the issue.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Nano
close date 2015-08-05 11:06:54.742947



This is an assertion that explains there is a bad match between two subsequent images for stereo matching. Can you check if there is a change in camera position for the image that triggers the error?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-08-05 02:57:29 -0600 )edit

Yes it turns out there was a slight time difference between the time the image was captured by both cameras, during which i had moved the chessboard. Thanks!!

Nano gravatar imageNano ( 2015-08-05 11:06:11 -0600 )edit