title: Reverse Fish-Eye Distortion
body: <p>I am working with a fish-eye camera and need the reverse the distortion before any further calculation,
  In this question this is happening <a href="https://stackoverflow.com/questions/2477774/correcting-fisheye-distortion-programmatically?lq=1">Correcting fisheye distortion</a></p>
  
  <pre><code>src = cv.LoadImage(src)
  dst = cv.CreateImage(cv.GetSize(src), src.depth, src.nChannels)
  mapx = cv.CreateImage(cv.GetSize(src), cv.IPL_DEPTH_32F, 1)
  mapy = cv.CreateImage(cv.GetSize(src), cv.IPL_DEPTH_32F, 1)
  cv.InitUndistortMap(intrinsics, dist_coeffs, mapx, mapy)
  cv.Remap(src, dst, mapx, mapy, cv.CV_INTER_LINEAR + cv.CV_WARP_FILL_OUTLIERS,  cv.ScalarAll(0))
  </code></pre>
  
  <p>The problem with this is that this way the remap functions goes through all the points and creates a new picture out of. this is time consuming to do it every frame.
  They way that I am looking for is to have a point to point translation on the fish-eye picture to normal picture coordinates.</p>
  
  <p>The approach we are taking is to do all the calculations on the input frame and just translate the result coordinates to the world coordinates so we don't want to go through all the points of a picture and create a new one out of it. (Time is really important for us)</p>
  
  <p>In the matrices mapx and mapy there are some point to point translations but a lot of points are without complete translation.
  I tried to interpolate this matrices but the result was not what I was looking for.</p>
  
  <p>Any help in would be much appreciated, even other approaches which are more time efficient than cv.Remap.</p>
  
  <p>Thanks </p>