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
↧