08.12.2012 Views

Imatest Documentation

Imatest Documentation

Imatest Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Imatest</strong> <strong>Documentation</strong><br />

The upper plot shows the distortion-caused change in radius<br />

∆r (normalized to the center-to-corner distance, i.e., the<br />

half-diagonal) as a function of the distorted (input) radius<br />

r(distorted) = rd.<br />

∆r = r(corrected) - r(distorted) = ru - rd<br />

where r(corrected) = ru is the corrected ( undistorted) radius.<br />

∆r is a function of the scaling (i.e., magnification) of the<br />

corrected image.<br />

The bold solid lines —— in the upper plot show ∆r for no<br />

scaling, i.e., for the straight correction formulas: ru = rd + k1<br />

rd<br />

Image showing complex ("wave") distortion: barrel near<br />

center; pincushion near corners.<br />

3 (3rd order; blue); ru = rd + h1 rd 3 + h2 rd 5 (5th order;<br />

green); or the arctan/tan equations (red). With these<br />

equations ∆r tends to increase as a function of r(distorted),<br />

i.e., it tends to be largest near the image corners.<br />

The dashed lines - - - - show ∆r when ru (the corrected image) is scaled for no shift (∆r = 0) at the image corners (rd = 1). The<br />

scaling factor is shown in the Legend box, which also shows the error function (described in the Algorithm; different for the 5th<br />

order calculation) and the number of iterations.<br />

The upper plot is difficult to relate to the perceived distortion type (pincushion or barrel); the only difference between the solid and<br />

dashed lines is the scaling factor (image magnification). The lower plot, which contains Curvature and Distortion measurements<br />

(explained in the green box below) is directly related to the distortion type .<br />

Equations for distortion and curvature<br />

The standard distortion equations— ru = rd + k1 rd 3 (3rd order), ru = rd + h1 rd 3 + h2 rd 5 (5th order), or the<br />

arctan/tan equations— do not give a clear picture of whether distortion takes the barrel or pincushion form.<br />

And to complicate matters, some images like the one above have barrel distortion at some radii and pincushion at<br />

others.<br />

The key to determining the type of distortion is to recall that radius ru is the position of a point, its derivative<br />

dru /drd is the slope, and its second derivative d 2 ru /drd 2 is the curvature— local curvature, which is a<br />

358 of 451

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!