Distortion is an example of monochromatic aberrations. Distortion arises because different areas of the lens have different focal length and different magnifications. There are two types of distortion positive or pincushion distortion and negative or barrel distortion. Ideally, a thin lens will have no distortion. [1]
Figure 1. Left: Barrel distortion. Right:Pincushion distortion. If there is no distortion, the above images will be regularly spaced grids.
where x and y in the LHS are the pixel coordinates in the distorted image and the x and y in the RHS are for the ideal image. After finding the coordinate transform, we look for the grayvalue at the ideal image pixel locations using a bilinear interpolation.
For my distorted images, I used the ones below (Click for a larger view.)
Figure 3. Distorted images.
For my distorted images, I used the ones below (Click for a larger view.)
Figure 3. Distorted images.
The results are the following. (Click for a larger view.)
Figure 4. Corrected images.
Figure 4. Corrected images.
Then results show that the method is sufficient to correct distortion of small images.
For this activity, I'll give myself a 10 for satisfactory result. Note that the reconstructed image does not require anymore a second bilinear interpolation because no null pixels are found.
Reference
[1] E. Hecht (2002). Optics 4th edition. Addison Wesley , CA.
[1] E. Hecht (2002). Optics 4th edition. Addison Wesley , CA.
No comments:
Post a Comment