Is there any inbuild functionality that I can use to de-warp an image from fisheye to normal image?
Asked
Active
Viewed 3,196 times
2 Answers
1
in addition to what MSalters said, you'd first go and calibrate your camera, to get the cam-matrix and the distortion coefficients.
then you'd run undistort() to rectify the fishEye image.
again, you need the camera-mat and the distCoeffs to do it, so if that image was taken with a different camera, and you're lacking that information, - you're out of luck.
![](../../users/profiles/2056772.webp)
berak
- 35,979
- 8
- 85
- 85
0
I think you're looking for undistort()
. "The function transforms an image to compensate radial and tangential lens distortion." IIRC, a fisheye camera has rather extreme radial distortion.
![](../../users/profiles/15416.webp)
MSalters
- 159,923
- 8
- 140
- 320
-
Thanks. Since fisheye images have extreme radial distortion, I am not sure I can use the above mentioned function to de warp them. – mans Jan 31 '14 at 16:53