Fish eye correction and Barrel distortion correction

Image Processing is one of those fields which is affecting every field of technology such as Robotics, Phone application, space exploration etc. The self-driving cars being developed by google use image processing to get information about it environment. While capturing these images professional cameras like GoPro and Nikon DSLRs suffer bending of images around the edges. The Image bends in two ways- barrel and pincushion distortion. Barrel distortion is the one in which straight lines seem to bulge out of the plane of paper; the effect of this deviation is prominently seen on the edges of images from a camera having wide angle lens or short focal length. These distortions are directly proportional to the square of distance from the Image center. The main objective of algorithm is to remove the distortion from the image without destroying the image; once we have achieved correction in one image we should be able to apply the results so as to calibrate the camera accordingly.