Sunday, August 3, 2008

Activity 12: Correcting Geometric Distortions

In this activity, we aim to correct geomertic distortions produced by the camera. A sample distorted image is given and is shown below. We need to make the straight lines look straight.
Procedure:
1. Using the given image, we count the number of pixels down and across one box where the grid is most undistorted. Or we can capture another image of a regular grid. Just make sure that the image plane is parallel to the grid plane.
2. We generate the ideal grid vertex coordinates and compute coefficients c1 to c8.

3. Pixel per pixel in the ideal image, use equations 8 and 9 to determine the location of a point in the distorted image.






4. If the computed distorted location is integer-valued, copy the grayscale value from the distorted image onto the blank pixel. If the location is not integer-valued, compute the interpolated grayscale value using equation 10. In pixel locations where there are no transferred pixels, interpolate the graylevel values from the neighboring filled pixels.




source: M. Soriano, A12 - Correcting Geometric Distortions.pdf

____________________________________________________________________

The resulting enhanced image is shown below. There were still some pixels that were not replaced to the proper location but the distortions were corrected. I give myself 9 points for this activity since the enhanced image was not perfectly done. My collaborators for this activity were Mark Leo Bejemino and Jeric Tugaff.


0 comments: