

















Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


















Niclas B¨orlin, Ph.D. [email protected]
Department of Computing Science Ume˚a University Sweden
April 1, 2014
Ph.D. in Computing Science (2000). Numerical Linear Algebra. Non-linear least squares with non-linear equality constraint. X-ray photogrammetry — Radiostereometry (RSA). Post doc at Harvard Medical School, Boston, MA.
Fundamentals of Photogrammetry
Developed by Hallert (1960), Selvik (1974), K¨arrholm (1989), B¨orlin (2002, 2006), Valstar (2005). Procedure Dual X-ray setup Calibration cage Marker measurements Reconstruction of projection geometry Motion analysis
Software UmRSA Digital Measure running in Europe, North America, Australia, Asia. Used to produce 150+ scientific papers.
Fundamentals of Photogrammetry Introduction
Photogrammetry — measuring from photographs photos — “light” gramma — “that which is drawn or written” metron — “to measure” Definition in Manual of Photogrammetry, 1st ed., 1944, American Society for Photogrammetry: Photogrammetry is the science or art of obtaining reliable measurement by means of photographs
Introduction
Principles History Mathematical models Processing Applications
Principles
Non-contact measurements. (Passive sensor.) Collinearity. Triangulation.
Fundamentals of Photogrammetry Principles Collinearity
The collinearity principle is the assumption that the object points Q, the projection center C , and the projected points q are collinear, i.e. lie on a straight line.
q
Fundamentals of Photogrammetry Principles Triangulation
One image coordinate measurement (x, y ) is too little to determine the object point coordinates (X , Y , Z ). We need at least two measurements of the same point.
q 1?
q 1
q 2
History Plane table photogrammetry
First photograph — Ni´epce,
First use of terrestrial photographs for topographic maps — Laussedat, 1849 “Father of photogrammetry”. City map of Paris (1851). Film — Eastman, 1884. Architectural photogrammetry — Meydenbauer, 1893, coined the word “photogrammetry”. Measurements made on a map on a table. Photographs used to extract angles.
History Analog photogrammetry
Stereocomparator (Pulfrich, Fourcade, 1901). Required coplanar photographs. Measurements made by floating mark.
Aeroplane (Wright 1903). First aerial imagery from aeroplane in 1909. Aerial survey camera for overlapping vertical photos (Messter 1915).
Fundamentals of Photogrammetry History Analog photogrammetry
Opto-mechanical stere- oplotters (von Orel, Thompson, 1908, Zeiss 1921, Wild 1926). Allowed non-coplanar photographs.
Wild A8 Autograph (1950) Relative orientation determined by 6 points in overlapping images — von Gruber points (1924) Photogrammetry — the art of avoiding computations
Fundamentals of Photogrammetry History Analytical photogrammetry
Finsterwalder (1899) — equations for analytical photogrammetry, intersection of rays, relative and absolute orientation, least squares theory. von Gruber (1924) — projective equations and their differentials, Computer (Zuse 1941, Turing, Flowers, 1943, Aiken 1944). Schmid, Brown multi-station analytical photogrammetry, bundle block adjustment (1953), adjustment theory. The [Ballistic Research] laboratory had a virtual global monopoly on electronic computing power. This unique circumstance combined with Schmid set the stage for the rapid transistion from classical photogrammetry to the analytic approach (Brown).
Ackermann independent models (1966).
History Analytical photogrammetry
Analytical plotter (Helava 1957) - image-map coordinate transformation by electronic computation, servocontrol.
Zeiss Planicomp P Camera calibration (Brown 1966, 1971). Direct Linear Transform (DLT) (Abdel-Azis, Karara, 1971).
History Digital photogrammetry
Charge-Coupled Device (CCD) (Boyle, Smith 1969). Landsat (1972) Digital camera (Sesson (Eastman Kodak) 1975 — 0. Mpixels). Flash memory (Masuoka (Toshiba) 1980). Matching (F¨orstner 1986, Gruen 1985, Lowe 1999). Projective Geometry (Klein 1939) 5-point relative orientation (Nist´er 2004)
Fundamentals of Photogrammetry Mathematical models
Principles History Mathematical models Processing Applications
Fundamentals of Photogrammetry Mathematical models Preliminaries
a 11 a 12 a 13
a 21 a 22 a 23
a 31 a 32 a 33
b 11 b 12
b 21 b 22
b 31 b 32
c 11 c 12
c 21 c 22
c 31 c 32
a^21
b^12
a^22
b^22
a^23
b^32
Mathematical models Projective geometry
In projective geometry, points, lines, etc. are represented by homogenous coordinates. Any cartesian coordinates (x, y ) may be transformed to homogenous by adding a unit value as an extra coordinate: ( x y
x y 1
All homogenous vector multiplied by a non-zero scalar k belong to the same equivalence class and correspond to the same object. Thus,
x y 1
(^) and k
x y 1
kx ky k
(^) , k 6 = 0
all correspond to the same 2D point (x, y )T^.
Mathematical models Projective geometry
Any homogenous vector (x 1 , x 2 , x 3 )T^ , x 3 6 = 0 may be transformed to cartesian coordinates by dividing by the last element
x 1 x 2 x 3
x 1 /x 3 x 2 /x 3 x 3 /x 3
x 1 /x 3 x 2 /x 3 1
A homogenous vector (x 1 , x 2 , x 3 )T^ with x 3 = 0 is called an ideal point and is “infinitely far away” in the direction of (x 1 , x 2 ). The point (0, 0 , 0)T^ is undefined. The space <^3 \ (0, 0 , 0)T^ is called the projective plane P^2. A homogenous point in P^2 has 2 degrees of freedom.
Fundamentals of Photogrammetry Mathematical models Projective geometry
A homogenous vector x ∈ P^2 may be interpreted as a line through the origin in <^3. The intersection with the plane x 3 = 1 gives the corresponding cartesian coordinates.
x 3
x 1
x 2
x
ideal point
Fundamentals of Photogrammetry Mathematical models Transformations
Transformation of homogenous 2D points may be described by multiplication by a 3×3 matrix
u v 1
a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33
x y 1
or
q = Ap.
Mathematical models Transformations
A translation of points in <^2 may be described using homogenous coordinates as
q = T (x 0 , y 0 )p =
1 0 x 0 0 1 y 0 0 0 1
x y 1
x + x 0 y + y 0 1
Mathematical models Transformations
A rotation may be described using homogenous coordinates as
R(ϕ)p =
cos ϕ − sin ϕ 0 sin ϕ cos ϕ 0 0 0 1
x y 1
x cos ϕ − y sin ϕ x sin ϕ + y cos ϕ 1
Fundamentals of Photogrammetry Mathematical models Transformations
Scaling of points in <^2 along the coordinate axes may be described using homogenous coordinates as
q = S(k, l)p =
k 0 0 0 l 0 0 0 1
x y 1
kx ly 1
Fundamentals of Photogrammetry Mathematical models Transformations
Combinations of transformations are constructed by matrix multiplication: q = T (x 0 , y 0 )R(ϕ)T (−x 0 , −y 0 )p
Mathematical models Transformation classes
Similarity Affinity Projectivity
Mathematical models Planar rectification
If the coordinates for 4 points pi and their mappings qi = Hpi in the image are known, we may calculate the homography H. From each point pair pi = (xi , yi , 1)T^ , qi = (x i′ , y (^) i′ , 1)T^ we get the following equations:
x i′ y (^) i′ 1
u/w v /w 1
(^) , where
u v w
h 11 h 12 h 13 h 21 h 22 h 23 h 31 h 32 h 33
xi yi 1
or
x i′ = u/w =
h 11 xi + h 12 yi + h 13 h 31 xi + h 32 yi + h 33
y (^) i′ = v /w =
h 21 xi + h 22 yi + h 23 h 31 xi + h 32 yi + h 33
Fundamentals of Photogrammetry Mathematical models Planar rectification
Rearranging
x i′ (h 31 xi + h 32 yi + h 33 ) = h 11 xi + h 12 yi + h 13 , y (^) i′ (h 31 xi + h 32 yi + h 33 ) = h 21 xi + h 22 yi + h 23.
This equation is linear in hij. Given 4 points we get 8 equations, enough to uniquely determine H assuming the points are in “standard position”, i.e. no 3 points are collinear.
Fundamentals of Photogrammetry Mathematical models Planar rectification
Given H we may apply H−^1 to remove the effect of the homography.
Mathematical models The camera model
The most commonly used camera model is called the pinhole camera. In the pinhole camera model: All object points Q are projected via a central projection through the same point C , called the camera center. The object point Q, the camera center C , and the projected point q are collinear. A pinhole camera is straight line-preserving. Q
q
Mathematical models The camera model
If the camera center is at the origin and the image plane is the plane Z = c, the world coordinate (X , Y , Z )T^ is mapped to the point (cX /Z , cY /Z , c)T^ in space or (cX /Z , cY /Z ) in the image plane, i.e. (X , Y , Z )T^7 → (cX /Z , cY /Z )T
q x
y
qp
Fundamentals of Photogrammetry Mathematical models The camera model
If the camera center is at the origin and the image plane is the plane Z = c, the world coordinate (X , Y , Z )T^ is mapped to the point (cX /Z , cY /Z , c)T^ in space or (cX /Z , cY /Z ) in the image plane, i.e. (X , Y , Z )T^7 → (cX /Z , cY /Z )T
q
qp c
α^ cY^ /Z
Fundamentals of Photogrammetry Mathematical models The camera model
The corresponding expression in homogenous coordinates may be written as
cX cY Z
c 0 c 0 1 0
q P Q The matrix P is called the camera matrix and maps the world point Q onto the image point q. In more compact form P may be written as
P = diag(c, c, 1)
where diag(c, c, 1) is a diagonal matrix and I is the 3 × 3 identity matrix.
Mathematical models The camera model
In the general case, the transformation between the coordinate systems is usually described as
where C = (X 0 , Y 0 , Z 0 )T^ is the camera center in world coordinates and the rotation matrix R describes the rotation from world coordinates to camera coordinates.
Mathematical models The camera model
In homogenous coordinates, this transformation becomes
The full projection is given by
q = KR
The equation
q = PQ = KR
is sometimes referred to as the camera equation. The 3 × 4 matrix P is known as the camera matrix.
Fundamentals of Photogrammetry Mathematical models The camera model
If the transformation from the world to the camera is written as
how does the transformation from the camera to the world look like?
Fundamentals of Photogrammetry Mathematical models The camera model
What are the (Z) coordinates of points in front of the camera?
′
c
x
y (^) q qp
Mathematical models The camera model
Given K =
−c xq −c yp 1
the camera equation
x y 1
(^) = q = K R
becomes
x = xp − c
r 11 (X − X 0 ) + r 12 (Y − Y 0 ) + r 13 (Z − Z 0 ) r 31 (X − X 0 ) + r 32 (Y − Y 0 ) + r 33 (Z − Z 0 )
y = yp − c
r 21 (X − X 0 ) + r 22 (Y − Y 0 ) + r 23 (Z − Z 0 ) r 31 (X − X 0 ) + r 32 (Y − Y 0 ) + r 33 (Z − Z 0 )
Mathematical models The camera model
The camera equation q = K R
that describes the general projection for a pinhole camera has 9 degrees of freedom: 3 in K (the elements c, px , py ), 3 in R (rotation angles) and 3 for C. The elements of K describes properties internal to the camera while the parameters of R and C describe the relation between the camera and the world. The parameters are therefore called one of K R, C internal parameters external parameters internal orientation external orientation intrinsic parameters extrinsic parameters sensor model platform model
Fundamentals of Photogrammetry Mathematical models The camera model
If we have different scale in the x and y directions, i.e. the pixels are not square, we have to include that deformation into the equation. Let mx and my be the number of pixels per unit in the x and y direction of the image. Then the camera calibration matrix becomes
K =
mx my 1
c px c py 1
(^) =
mx c mx px my c my py 1
(^) =
αx x 0 αy y 0 1
(^) ,
where αx = fmx and αy = fmy is the camera constant in pixels in the x and y directions and (x 0 , y 0 )T^ = (mx px , my py )T^ is the principal point in pixels. A camera with unknown aspect ratio has 10 degrees of freedom.
Fundamentals of Photogrammetry Mathematical models The camera model
For an even more general camera model we can add a skew parameter s to describe any non-orthogonality between the image axis. Then the camera calibration matrix becomes
αx s x 0 αy y 0 1
The complete 3 × 4 camera matrix
P = KR
has 11 degrees of freedom, the same as a 3 × 4 homogenous matrix.
Mathematical models Rotations in <^3
The axes follow the rotated object, so the second rotation is about a once-rotated axis, the third about a twice-rotated axis. A sequential rotation of 20 degrees about each of the axis is...
Mathematical models Rotations in <^3
ω
ω
Z ′
... first a rotation about the x-axis...^ Y^ ′
Fundamentals of Photogrammetry Mathematical models Rotations in <^3
ϕ
ϕ (^) Z ′′
... followed by a rotation about^ Y^ ′′ the once-rotated y -axis...
Fundamentals of Photogrammetry Mathematical models Rotations in <^3
κ
κ
... followed by a final rotation about the twice-rotated z-axis...
Mathematical models Rotations in <^3
... resulting in a total rotation looking like this.
Mathematical models Rotations in <^3
The inverse rotation is about the same axes in reverse sequence with angles of opposite sign. This is sometimes called roll-pitch-yaw, where the κ angle is called the roll angle. Other rotations: azimuth-tilt-swing (z-x-z), axis-and-angle, etc. Every 3-parameter-description of a rotation has some rotation without a unique representation. x-y - z if the middle rotation is 90 degrees, z-x-z if the middle rotation is 0 degrees, axis-and-angle when the rotation is zero (axis undefined). However, the rotation is always well defined.
Fundamentals of Photogrammetry Mathematical models Rotations in <^3
A lens is designed to bend rays of light to construct a sharp image. A side effect is that the collinearity between incoming and outgoing rays is destroyed.
Fundamentals of Photogrammetry Mathematical models Rotations in <^3
Positive radial distortion (pin-cushion)
Negative radial distortion (barrel)
Processing
1 Camera calibration 2 Image acquisition 3 Measurements 4 Spatial resection 5 Forward intersection 6 (Bundle adjustment)
1 Camera calibration 2 Image acquisition 3 Measurements 4 Relative orientation 5 Forward intersection 6 (Bundle adjustment) 7 (Absolute orientation)
Processing Camera calibration
Special cameras may be calibrated by measuring deviation between input/output rays. Most of the time, camera calibration is performed by imaging a calibration object or scene. A 3D scene is preferable, but may be expensive. A 2D object is easier to manufacture and transport.
Fundamentals of Photogrammetry Processing Camera calibration
Ideally, the calibration situation should mimic the actual scene. With a 2D object, multiple images must be taken. Remember: use the same focal setting during calibration and image acquisition! If possible, include rolled images of the calibration object.
Fundamentals of Photogrammetry Processing Image acquisition
Camera networks Parallel (stereo) Convergent Aerial Other
Processing Image acquisition
Simplified measurements. Simplified automation. May be viewed in “3D”.
q 1
q 2
Processing Image acquisition
Stronger geometry. More than 2 measurements per object point. Should ideally surround the object.
q 1
q 2
q 3
Fundamentals of Photogrammetry Processing Image acquisition
Highly structurized. Typically around 60% overlap (along-track) and 30% sidelap (cross-track).
- -
Fundamentals of Photogrammetry Processing Measurements