The most accurate lensdoc curves are created by shooting a test target and carefully measuring it. All the lens specific curves supplied with lensdoc were created that way. The procedure to create these lens descriptions is not trivial, but can be done with no special equipment other than your camera, a little practice, and patience. It's basically a 3 step procedure.
| The basic basic test shot is of a ruler which spans the
diagonal of the frame. The ideal setup looks like the picture at
the right. The ruler extends from beyond the upper left corner to
beyond the lower right corner of the frame, and several vertical lines
are also present. The diagonal will be measured to produce the lens
description, and the verticals will provide a check that the resulting
correction is good. The scene should also include a slate showing
the current lens and focal length to avoid any possible confusion later
on.
The exact form of the ruler is unimportant, all we'll care about are the relative spacing of the marks. This printable file could be cut and pasted onto a suitable backing, or you could use an ordinary steel tape measure. The extra verticals can be made by hanging weighted ropes, or you could use any naturally occuring straight edge. A garage door makes a good backstop, and many garage doors have suitable vertical or horizontal features to act as reference lines. Your camera should be perpendicular to the center of the measurement
target, but absolute precision is not required.
|
![]() |
|
| For a zoom lens, shoot a variety of focal lengths from shortest to longest, at least 3 and perhaps as many as 7 different focal lengths for lenses with extreme zoom ranges. At each focal length you should be able to see 10 or so of the uniformly spaced marks. Again, the exact number doesn't matter. It's best to shoot all the frames from the same camera position starting with the widest angle. | ||
Lensdoc Measurement
Create lens description file
For each table of coordinates, create a file with overall
format similar to the one at the right.
|
name: Nikon Coolpix 950 @50
id: Nikon Coolpix 950 focal-length: 50 center: 800,600 skew: .9927 data: 0, 67.59, 44.75, ----- , ----- , First Exact 1, 142.12, 100.81, ----- , 37, Exact 2, 217.48, 157.00, -0, 37, Exact 3, 293.33, 214.19, 0, 37, Exact 4, 369.18, 272.52, 1, 38, Exact 5, 445.69, 331.19, -0, 37, Exact 6, 523.03, 390.03, -0, 37, Exact 7, 600.87, 448.86, -0, 37, Exact 8, 679.69, 507.70, -0, 37, Exact 9, 757.63, 566.90, 0, 37, Exact 10, 835.66, 626.57, 0, 37, Last Exact |
Testing the Result
You will need to restart photoshop to force lensdoc to rescan the presets folder. If you have made any gross format errors in your new files, lensdoc will complain when it is first started. (informatively we hope).
If your new lens description is successful, you should have a new lens description in the "specific lens" group, and you should be able to use lensdoc to correct any of your test photos by simply dialing in the correct focal length in expert mode.
If the input to lensdoc is an image with just a few straight lines, the output should be gently curving lines like these. |
Strange little kinks like this almost certainly indicate an error. |
![]() |
![]() |
![]() |
![]() |