Bernhard Rieder - 401 Tranquil Avenue - Charlotte - NC 28209 - USA
Bernhard Rieder


HOME
News
PORTFOLIO
Stills
Animations
dreieck Projects

MISC
dreieck CG Studies
Press
Links

CONTACT
Office





Rieder-Enterprises Utd.



  LENS DISTORTION - GENERELL EXPLANATION

When images or sequences are captured with consumer level cameras at short focal lengths, distortion is introduced into the images by the system of lenses in the camera. Due to this distortion, images of straight-lines appear to be slightly curved. This distortion must be removed to ensure accuracy in later calibration and reconstruction phases. Typically, consumer grade cameras experience “barrel distortion” at short focal lengths, and small amounts of “pin-cushion distortion” at long focal lengths


Pottenbrunn


The amount of geometric distortion in each image/video sequence is estimated by having the user identify lines in the image that are supposed to be straight. The user may draw multiple lines in different images, or in different frames of a video sequence. After at least one line has been placed, ICARUS can calculate the distortion parameters required to straighten them. If the user has marked a number of lines in different frames of a video sequence, distortion parameters may be calculated independently for each frame. The parameters for in-between frames are then interpolated from these results. Alternatively, if the video sequence has been captured at approximately a constant focal length, a single set of “average” parameters may be estimated for the entire sequence.

There are several different types of distortion parameter that may be calculated (see the reference literature for further details):

1.The centre of lens distortion,
2.Low order radial distortion,
3.Higher order radial distortion,
4.Low order tangential distortion,
5.Higher order tangential distortion.

The only parameters which normal users of the system need worry about are the first three. Generally, the centre of the lens distortion can be kept at the centre of the image. Tangential distortion may sometimes be necessary for non-standard lenses.


As well an removing lens distortion from a sequence (as described below), the distortion module may be used to reapply the lens distortion. This can be achieved by loading in a previous distortion file and changing the “Action” option in movie or image export dialog. Distortion files can be loaded and saved using the options in the “Project” menu.


HOW TO USE THE DISTORTION MODULE


Now we know the basics and it´s time to use our knowledge in the ICARUS Distortion Module.
Open the software, and make a new project. Load your image, and than draw some lines on your image. You need to set 3 points in one line (minimum for the calculation).

Pottenbrunn

 
You can see clearly that the line of the building is not straight, compared to the yellow line that has just been drawn on the image. This is the information that ICARUS uses to determine the distortion parameters for the lens. In order to calculate this information, more points need to be added to the line. The line can be subdivided by pointing at a section of the line with the mouse, clicking the left button, and moving the new vertex to a new position. This can be repeated as many times as necessary in order to follow the curve of the building. At least three points are required on each line to determine the distortion parameters.

Select the “Distortion->Parameters” menu option. This will bring up a window showing the various distortion parameters. Initially, only “Low Order Radial” distortion will be selected, and the parameters are assumed to be uniform over the entire sequence. These options can be changed if required. Clicking the “Solve” button will solve for the parameters the user has asked for. If no lines have been drawn in the sequence, but the user knows the distortion parameters, these may also be entered in the type-in boxes in the dialog, and solution process skipped.

Pottenbrunn


Once the distortion parameters have been calculated, the image will be warped to show the amount of distortion necessary to straighten the lines. The image may now be un-distorted and saved to disk using the “Project->Export Image” menu option. Pleae consider, the same can and should be done with a video sequence.
 

Copyright © 2007 - All rights reserved. support & design by Bernhard Rieder