0

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

mans
  • 17,104
  • 45
  • 172
  • 321

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
  • 39,159
  • 9
  • 91
  • 89
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
  • 173,980
  • 10
  • 155
  • 350
  • 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