Issues with fisheye camera undistortion

asked 2015-10-21 05:42:23 -0600

Hi,

I'm trying to use the fisheye functions to produce an undistorted image from a fisheye (ftheta lens) camera. When I do: fisheye::calibrate fisheye::estimateNewCameraMatrixForUndistortRectify fisheye::initUndistortRectifyMap cv::remap cv::imwrite All I get is a black image. It seems that the maps I get in initUndistortRectifyMap are wrong - even when I don't actually run fisheye::calibrate and I set all the distortion coefficients to zero. When I use a rectilinear model, i.e., when I do cv::calibrateCamera cv::initUndistortRectifyMap cv::remap cv::imwrite I get a correct image. Of course the correction is not ideal - as you can expect when applying this to a fisheye camera.

Are there some known issues in function initUndistortRectifyMap? I'm using version 2.4.10. Are there some changes/fixes in version 3.0? Thanks,

Thom

edit retag flag offensive close merge delete

Comments

i am using version 2.4.10 - wrong answer. Start by grabbing the latest 2.4 or master branch. This will ensure that you have all latest fixes and that it has not been solved before.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-21 08:07:08 -0600 )edit

I updated to version 3.0, and still have the same behavior.

ThomChap gravatar imageThomChap ( 2015-10-21 11:14:21 -0600 )edit