0

Is there any inbuild functionality that I can use to de-warp an image from fisheye to normal image?

mans
  • 14,494
  • 34
  • 144
  • 277

2 Answers2

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.

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.

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