SLAC-TN-10-016: Work Supported in Part by US Department of Energy Contract DE-AC02-76SF00515
SLAC-TN-10-016: Work Supported in Part by US Department of Energy Contract DE-AC02-76SF00515
SLAC-TN-10-016: Work Supported in Part by US Department of Energy Contract DE-AC02-76SF00515
Lassana Sheriff
Office of Science, Science Undergraduate Laboratory Internship Program
Participant: ______________________________
Signature
1
Work supported in part by US Department of Energy contract DE-AC02-76SF00515.
Table of Contents
Page
Abstract………………………………………………………………….................……3
Introduction……………………………………………………………….................…. 4
Methods…………………………………………………………...…………………… 5
Analysis………………………………………………………………..................….…..9
Conclusion……………………………………………………………………………... 10
Acknowledgments………………………………………………………………………10
References……………………………………………………………………………… 11
Figures…………………………………………………………………………………..12
2
ABSTRACT
Calibration of the Nikon D200 for Close Range Photogrammetry. LASSANA SHERIFF (City
College of New York, New York, New York, 10031) BRIAN FUSS (Stanford Linear Accelerator
Center, Menlo Park, CA 94025).
The overall objective of this project is to study the stability and reproducibility of the
calibration parameters of the Nikon D200 camera with a Nikkor 20 mm lens for close-range
photogrammetric surveys. The well known “central perspective projection” model is used to
determine the camera parameters for interior orientation. The Brown model extends it with the
introduction of radial distortion and other less critical variables. The calibration process requires
reflective coded targets are chosen. Two scenarios have been used to check the reproducibility of
the parameters. The first one is using a flat 2D wall with 141 coded targets and 12 custom targets
that were previously measured with a laser tracker. The second one is a 3D Unistrut structure
with a combination of coded targets and 3D reflective spheres. The study has shown that this set-
up is only stable during a short period of time. In conclusion, this camera is acceptable when
calibrated before each use. Future work should include actual field tests and possible mechanical
3
1. INTRODUCTION
The Alignment Engineering Group (AEG) and Metrology Department are responsible for
precisely measuring and aligning various objects and components on the site. This project
one technique to measure geometrical information on items such as electromagnets which are
used in physics experiments. A photogrammetry software package called Australis is being used
where I have to photograph and process images to measure 3D objects. This program generates
parameters that can then be used to significantly improve the accuracy of the system.
Photogrammetry stands for “photographic metrology [5].” The technique works in much the
same way as human stereo vision, where depth is perceived partially as a function of the angle of
two intersecting light rays running from the point of interest to your two eyes. With
photogrammetry the intersection of all light rays from several images yields the required XYZ
coordinates for a point via a mathematical reconstruction of 3-D shape from the multiple 2-D
images. Therefore the model requires a calibrated camera in order to accurately compare these
coordinates.
There are two types of photogrammetry; one of which is close-range that I have been inves-
tigating. The other one is aerial or space borne. Close-range photogrammetry is used to describe
the technique when the extent of the object to be measured is less that about 100 meters and
cameras are positioned close to it [3]. Photos of specially coded retro-reflective targets from dif-
ferent angles are made and then these photos are loaded [1] into Australis for processing. The
4
These are corrections that simulate the ideal “central perspective model” discussed in section 2.
Upon using the Australis program [2] to perform fully automatic measurements, certain
requirements need to be met. Every targeted object point must appear in two or more images that
provide good ray intersection geometry. There needs to be a sufficient number of coded targets
and the camera must be rotated or rolled approximately ninety degrees between images to
distribute where the target image falls on the CCD. Once these requirements are met and the
images are loaded into the project, the network of coded targets is automatically measured to
A stable relatively flat wall is being used in the Alignment Engineering Group’s Sector 10
Calibration Laboratory. A pattern of coded retro-reflective targets is used to study the effect of
the camera and target position and the effect of the addition of a scale bar to the model. A 3D
structure was added to the project to compare with the flat wall. The results of these two
2. METHODS
The camera used in this project is a commercially available Nikon D200 SLR with a regular
lens and built-in flash. The camera is a DX format of 23.7 mm x 15.7mm. It is about 10.2
megapixels (3872 x 2592); and the lens is a wide angle Nikkor of 20mm. The pictures are taken
5
Nikon D200 SLC Camera Settings
Option Setting
Aperture f = 11
ISO 100
Speed 1/250
Software Targets:
array of specially coded or uncoded targets placed on or an object of interest. Basic targets are
flat circular objects made of gray retro-reflective material. They come in different diameters
usually being at least 1/100th of the object size. They start losing their reflective property when
viewed from an angle greater than 60 degrees off-axis. Coded targets are automatically detected,
identified and measured by the software. For Australis, the coded targets are made of an
arrangement of dots. The central dot gives the position of the target and the pattern of dots is the
key to the target’s identification. The spacing of the dots can also be used for scale
determination. Retro-reflective targets can be mounted onto spheres and these may be
interchanged with other spheres that survey instruments such as laser trackers can measure.
Scale Bar:
actual coordinates of some targeted points are known beforehand, the distances between these
points is computed and used to scale the measurement. Another possibility is to use a fixture
6
such as a bar with targets on it and measure this along with the object. The distance between the
targets on the bar is known (it had been measured on a Coordinate Measuring Machine) and can
be used to scale the measurement. Such fixtures are commonly called scale bars [3].
Data for the focal length and the principal point of the camera: c, xp, and yp, radial
distortion, k1, k2, and k3 will be analyzed. These parameters are compared in both 2D and 3D
targets set-ups (figures 11 and 12). By analyzing these six key parameters with a statically
significant number of samples, an assessment of the camera's stability can be determined. Figure
1 illustrates an ideal basic photogrammetry model. This is known as the “central perspective
The first coordinate system is positioned arbitrarily and is generally characteristic of an object
being measured. It is noted: (X, Y, Z). The second coordinate system is linked to the camera
position: its origin is at the perspective camera center C, its z-axis coincides with the principal
This central perspective model is only an idealization of the real optical geometry of a
camera [4]. The major differences come from the stability of the interior parameters, the lens
distortion and the Charge Coupled Device (CCD) flatness and regularity. The camera interior
orientation is as follows c, xp, and yp; where c is the focal length of the camera. xp and yp are the
coordinates of the principal point and they are often called principal position offsets. These form
the camera interior parameters. The camera perspective center C has the coordinates (Xc, Yc,
Zc) in the object system. Let M be a point in the space and m its image. The coordinates of M in
the object space are (XM, YM, ZM). Its image m has the coordinate (xM, yM, -c) in the camera
system.
7
The transformation between the 2 systems can be written:
The perspective center the image point and the object point are required to lie along one straight
line. The above 3 equations can be combined into 2 to eliminate the scale factor:
A 2D coordinate system represents the projection plane of the camera which also is the
CCD. Its origin is at the center of the CCD. Components of r (dx and dy) are part of the Brown
dx = x dr + p1 (r 2 + 2 x 2 ) + 2 p 2 x y + b1 x + b2 y
dy = ydr + p 2 (r 2 + 2 y 2 ) + 2 p1 x y
where:
x = xM − x p y = yM − y p
r =x +y
2 2 2
dr = k1 r 2 + k 2 r 4 + k 3 r 6
8
3. ANALYSIS
To study the interior parameters of the camera two graph types were used, line graphs and
histograms. The line graphs have the date on the x-axis and the value of the parameter is on the
y-axis. The purpose of this graph is to check for any trends in the data. The histograms are used
to study the distribution of the parameters. As the number of observations grows, it is expected
that the histogram should look like those with a normal distribution [4].
Looking at the line graphs of the D200’s interior orientation (figures 2 through 7), as expected,
there seems to be no trend as the data is fairly scattered. For example for c, the focal length of the
camera, most of the data are within a narrow band, but some points were far off the average for
reasons that are likely due to camera transportation and handling. The data shows that photo sets
taken within a short period of time showed positive results as the values were close together. The
histograms for the principal point positions xp and yp (figures 9 and 10) are almost similar and
not normally distributed. The focal length data looks more like a normal distribution but it isn’t
The data for the 2D wall and 3D structure have been kept separate. The number of observations
for the 3D structure is minimal but they agree with the 2D data showing the same pattern.
Further studies will be needed to evaluate if changing the types of camera angles to the 3D
For the 2D study, 13 points were precisely measured with a laser tracker. The photogrammetric
coordinates were transformed to the laser tracker coordinate system within the Australis
program. The quality of the survey can be judged by the global RMS from each transformation.
The average global RMS is 0.143 mm and 0.030 mm standard deviation. Values less than 100
9
micrometers were expected. Some commercial systems can achieve accuracies as good as 50
micrometers [4].
4. CONCLUSION
Not all parameters show a normal distribution. This suggests that the camera can be used for
photogrammetric measurements only if calibrated before each use. Testing in the future should
include field tests and possible mechanical improvement to the camera such as securing the lens
to the camera body. Future tests should be also include more observations of the 3D structure
with more photos from many more angles to get true 360 degree coverage..
5. ACKNOWLEDGEMENTS
The Science Undergraduate Laboratory Internship SULI program wouldn't have been
possible without the funding of the Department of Energy DOE here at Stanford Linear
Accelerator Center SLAC. Special acknowledgment goes to my mentor BRIAN FUSS for his
diligent guidance and support. I would like to acknowledge CATHERINE LECOCQ for her
resilient work and direction in the entire project. And finally acknowledgement to BRENDAN
DIX for his participation in building the 3D structure; and to the rest of the members of
10
6. REFERENCES
[1] Brown, D.C.,. “Close-Range Camera Calibration”. PE&RS, Vol. 37(8), (1971): 855-866.
[5] Atkinson, K.B. “Close Range Phptogrammerty and Machine Vision”. (1996)
11
7. FIGURES
Focal Length
20.610
20.590
20.570
c (mm)
20.550
20.530
20.510
6/29/09 7/6/09 7/13/09 7/20/09 7/27/09 8/3/09 8/10/09
Dates
2D Wall 3D Structure
12
Principal Point Horizontal Position
0.000
-0.025
-0.050
-0.075
xp (mm)
-0.100
-0.125
-0.150
-0.175
-0.200
6/29/09 7/6/09 7/13/09 7/20/09 7/27/09 8/3/09 8/10/09
Dates
2D Wall 3D Structure
-0.025
-0.050
-0.075
yp (mm)
-0.100
-0.125
-0.150
-0.175
-0.200
6/29/09 7/6/09 7/13/09 7/20/09 7/27/09 8/3/09 8/10/09
Dates
2D Wall 3D Structure
13
First Radial Correction Coefficient
2.800E-04
2.780E-04
2.760E-04
2.740E-04
2.720E-04
k1
2.700E-04
2.680E-04
2.660E-04
2.640E-04
6/29/09 7/6/09 7/13/09 7/20/09 7/27/09 8/3/09 8/10/09
Dates
2D Wall 3D Structure
-4.100E-07
-4.300E-07
-4.500E-07
-4.700E-07
-4.900E-07
k2
-5.100E-07
-5.300E-07
-5.500E-07
-5.700E-07
-5.900E-07
6/29/09 7/6/09 7/13/09 7/20/09 7/27/09 8/3/09 8/10/09
Dates
2D Wall 3D Structure
14
Third Radial Correction Coefficient
5.800E-10
4.800E-10
3.800E-10
2.800E-10
k3
1.800E-10
8.000E-11
-2.000E-11
-1.200E-10
-2.200E-10
6/29/09 7/6/09 7/13/09 7/20/09 7/27/09 8/3/09 8/10/09
Dates
2D Wall 3D Structure
15
Figure 9. Nikon D200 horizontal principal point distribution
16
Figure 11. Wall test structure for camera calibration (2D Wall)
Figure 12. 3D Structure test for camera calibration (with scale bar)
17