Download presentation
Presentation is loading. Please wait.
Published byPaulina Lucas Modified over 6 years ago
1
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Topics: Basics of projective geometry Points and hyperplanes in projective space Homography Estimating homography from point correspondence The single perspective camera An overview of single camera calibration Calibration of one camera from the known scene Scene reconstruction from multiple views Triangulation Projective reconstruction Matching constraints Bundle adjustment Two cameras, stereopsis The geometry of two cameras. The fundamental matrix Relative motion of the camera; the essential matrix Estimation of a fundamental matrix from image point correspondences Camera Image rectification Applications of the epipolar geometry in vision Three and more cameras Stereo correspondence algorithms
2
Image epipolar rectification
Illustrative description Both image planes being coplanar Baseline along the horizontal axis (x-axis) of the image plane Two epipoles at infinity along the horizontal direction Horizontal epipolar lines Before After
3
Image epipolar rectification
Illustrative description Both image planes being coplanar Baseline along the horizontal axis (x-axis) of the image plane Two epipoles at infinity along the horizontal direction Horizontal epipolar lines Method: Apply suitable homographic transformation on each image Before After
4
Image rectification (before)
5
Image rectification (after)
6
Image rectification Analytic description Suppose that we know camera matrices đ and đ âČ for the two cameras The objective is to rotate each image planes around their optical centers until their focal planes becomes coplanar Thereby, containing the baseline More specifically, the new x-axis is parallel to the baseline Both images have y-axis â„ x-axis Thus, new camera matrices
7
Image rectification Analytic description Suppose that we know camera matrices đ and đ âČ for the two cameras The objective is to rotate each image planes around their optical centers until their focal planes becomes coplanar Thereby, containing the baseline More specifically, the new x-axis is parallel to the baseline Both images have y-axis â„ x-axis Thus, new camera matrices đ â =đŸ đ
| âđ
đ and đ ââČ =đŸ đ
| âđ
đ 2 where, đ
= đ« 1 T đ« 2 T đ« 3 T
8
Image rectification Analytic description Suppose that we know camera matrices đ and đ âČ for the two cameras The objective is to rotate each image planes around their optical centers until their focal planes becomes coplanar Thereby, containing the baseline More specifically, the new x-axis is parallel to the baseline Both images have y-axis â„ x-axis Thus, new camera matrices đ â =đŸ đ
| âđ
đ and đ ââČ =đŸ đ
| âđ
đ 2 where, đ
= đ« 1 T đ« 2 T đ« 3 T The new x-axis is parallel to the baseline â đ« 1 = đ 1 â đ 2 đ 1 â đ 2
9
Image rectification Analytic description Suppose that we know camera matrices đ and đ âČ for the two cameras The objective is to rotate each image planes around their optical centers until their focal planes becomes coplanar Thereby, containing the baseline More specifically, the new x-axis is parallel to the baseline Both images have y-axis â„ x-axis Thus, new camera matrices đ â =đŸ đ
| âđ
đ and đ ââČ =đŸ đ
| âđ
đ 2 where, đ
= đ« 1 T đ« 2 T đ« 3 T The new x-axis is parallel to the baseline â đ« 1 = đ 1 â đ 2 đ 1 â đ 2 The new y-axis is orthogonal to the new x-axis â đ« 2 =đȘĂ đ« 1 , for some đȘâ đ« 1 and đȘ =1
10
Image rectification Analytic description Suppose that we know camera matrices đ and đ âČ for the two cameras The objective is to rotate each image planes around their optical centers until their focal planes becomes coplanar Thereby, containing the baseline More specifically, the new x-axis is parallel to the baseline Both images have y-axis â„ x-axis Thus, new camera matrices đ â =đŸ đ
| âđ
đ and đ ââČ =đŸ đ
| âđ
đ 2 where, đ
= đ« 1 T đ« 2 T đ« 3 T The new x-axis is parallel to the baseline â đ« 1 = đ 1 â đ 2 đ 1 â đ 2 The new y-axis is orthogonal to the new x-axis â đ« 2 =đȘĂ đ« 1 , for some đȘâ đ« 1 and đȘ =1 The new z-axis is orthogonal to the new xy-plane â đ« 3 = đ« 1 Ă đ« 2
11
A proof that Image rectification â
a suitable homographic transformation
12
A proof that Image rectification â
a suitable homographic transformation
Let đ= đ | â đ đ and đ â = đ â | â đ â đ 2 For any 3D scene point đ, projected image points using camera matrices are: đź =??, đź â =??
13
A proof that Image rectification â
a suitable homographic transformation
Let đ= đ | â đ đ and đ â = đ â | â đ â đ 2 For any 3D scene point đ, projected image points using camera matrices are: đź =đđ, đź â = đ â đ Using the relation in homogeneous coordinate system, How can we express đ interms of đ and đź ?
14
A proof that Image rectification â
a suitable homographic transformation
Let đ= đ | â đ đ and đ â = đ â | â đ â đ 2 For any 3D scene point đ, projected image points using camera matrices are: đź =đđ, đź â = đ â đ Using the relation in homogeneous coordinate system, đ= đ 1 + đ 0 đ â1 đź đ= đ 1 + đ 1 đ ââ1 đź â , đ 0 , đ 0 ââ
15
A proof that Image rectification â
a suitable homographic transformation
Let đ= đ | â đ đ and đ â = đ â | â đ â đ 2 For any 3D scene point đ, projected image points using camera matrices are: đź =đđ, đź â = đ â đ Using the relation in homogeneous coordinate system, đ= đ 1 + đ 0 đ â1 đź đ= đ 1 + đ 1 đ ââ1 đź â , đ 0 , đ 0 ââ i.e., đ 1 đ ââ1 đź â = đ 0 đ â1 đź â đź â =đ đ â đ â1 đź
16
A proof that Image rectification â
a suitable homographic transformation
Let đ= đ | â đ đ and đ â = đ â | â đ â đ 2 For any 3D scene point đ, projected image points using camera matrices are: đź =đđ, đź â = đ â đ Using the relation in homogeneous coordinate system, đ= đ 1 + đ 0 đ â1 đź đ= đ 1 + đ 1 đ ââ1 đź â , đ 0 , đ 0 ââ i.e., đ 1 đ ââ1 đź â = đ 0 đ â1 đź â đź â =đ đ â đ â1 đź đ: scale factor đ â đ â1 : 3-by-3 matrix â perspective transformation â homography equivalent HENCE PROVED
17
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ
18
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Using Kronecker product identity: đŽđ”đ= đ T âšđŽ đ, we get đź đ âČT đč đź đ = đź đ T âš đź đ âČđ đ=0
19
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Using Kronecker product identity: đŽđ”đ= đ T âšđŽ đ, we get đź đ âČT đč đź đ = đź đ T âš đź đ âČđ đ=0 Put together all correspondences đź đ,1 T âš đź đ,1 âČđ âź đź đ,đ T âš đź đ,đ âČđ đ=đđ=0
20
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Using Kronecker product identity: đŽđ”đ= đ T âšđŽ đ, we get đź đ âČT đč đź đ = đź đ T âš đź đ âČđ đ=0 Put together all correspondences đź đ,1 T âš đź đ,1 âČđ âź đź đ,đ T âš đź đ,đ âČđ đ=đđ=0 Compute đ đ đ and apply singular value decomposition; choose đ along the eigenvector corresponding to the smallest eigenvalue
21
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Using Kronecker product identity: đŽđ”đ= đ T âšđŽ đ, we get đź đ âČT đč đź đ = đź đ T âš đź đ âČđ đ=0 Put together all correspondences đź đ,1 T âš đź đ,1 âČđ âź đź đ,đ T âš đź đ,đ âČđ đ=đđ=0 Compute đ đ đ and apply singular value decomposition; choose đ along the eigenvector corresponding to the smallest eigenvalue For đč to be a valid fundamental matrix, its rank must be 2; but it may not satisfy in reality (why?); thus needs correction
22
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Using Kronecker product identity: đŽđ”đ= đ T âšđŽ đ, we get đź đ âČT đč đź đ = đź đ T âš đź đ âČđ đ=0 Put together all correspondences đź đ,1 T âš đź đ,1 âČđ âź đź đ,đ T âš đź đ,đ âČđ đ=đđ=0 Compute đ đ đ and apply singular value decomposition; choose đ along the eigenvector corresponding to the smallest eigenvalue For đč to be a valid fundamental matrix, its rank must be 2; but it may not satisfy in reality (why?); thus needs correction SVD decomposition: đč=đđ· đ T ; set the smallest eigenvalue of đ· to zero giving a new diagonal matrix đ· ; use the new matrix đč =đ đ· đ T
23
Algorithmic description
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Using Kronecker product identity: đŽđ”đ= đ T âšđŽ đ, we get đź đ âČT đč đź đ = đź đ T âš đź đ âČđ đ=0 Put together all correspondences đź đ,1 T âš đź đ,1 âČđ âź đź đ,đ T âš đź đ,đ âČđ đ=đđ=0 Compute đ đ đ and apply singular value decomposition; choose đ along the eigenvector corresponding to the smallest eigenvalue For đč to be a valid fundamental matrix, its rank must be 2; but it may not satisfy in reality (why?); thus needs correction SVD decomposition: đč=đđ· đ T ; set the smallest eigenvalue of đ· to zero giving a new diagonal matrix đ· ; use the new matrix đč =đ đ· đ T Note that ML estimation method incorporate the validity condition of F into the optimization process
24
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Output: Fundamental matrix đč Task 2: Decompose the fundamental đč to matrix camera matrices
25
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Output: Fundamental matrix đč Task 2: Decompose the fundamental đč to matrix camera matrices đ= đŒ | đ đ âČ = đ đ âČ đč | đ âČ
26
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Output: Fundamental matrix đč Task 2: Decompose the fundamental đč to matrix camera matrices đ= đŒ | đ đ âČ = đ đ âČ đč | đ âČ Input of the algorithm : A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Output of the algorithm: camera matrices đ and đ âČ
27
Image rectification Algorithmic description As we have seen from analytic discussion Given the knowledge of đ and đ âČ , image rectification process is precisely defined So, the first task is to determine camera matrices đ and đ âČ Algorithm Compute camera matrices đ and đ âČ Task 1: Solve đč using đâ„8 corresponding point pairs in two images and algebraic error minimization Input: A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Output: Fundamental matrix đč Task 2: Decompose the fundamental đč to matrix camera matrices đ= đŒ | đ đ âČ = đ đ âČ đč | đ âČ Input of the algorithm : A linear system: đź đ âČT đč đź đ =0, đ=1,2,âŠ, đ Output of the algorithm: camera matrices đ and đ âČ Now what?
28
Image rectification Algorithmic description Algorithm Compute image rectification
29
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ
30
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ
31
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ Determine two optical centers đ and đ âČ using đ and đ âČ and their decompositions
32
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ Determine two optical centers đ and đ âČ using đ and đ âČ and their decompositions Determine new rotation matrix đ
â common to đ â and đ âČâ
33
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ Determine two optical centers đ and đ âČ using đ and đ âČ and their decompositions Determine new rotation matrix đ
â common to đ â and đ âČâ Determine new intrinsic parameters đŽ â by averaging đŽ and đŽ âČ and then annulling skew component
34
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ Determine two optical centers đ and đ âČ using đ and đ âČ and their decompositions Determine new rotation matrix đ
â common to đ â and đ âČâ Determine new intrinsic parameters đŽ â by averaging đŽ and đŽ âČ and then annulling skew component Compute new projection matrices:
35
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ Determine two optical centers đ and đ âČ using đ and đ âČ and their decompositions Determine new rotation matrix đ
â common to đ â and đ âČâ Determine new intrinsic parameters đŽ â by averaging đŽ and đŽ âČ and then annulling skew component Compute new projection matrices: đ â = đŽ â â đ
â | â đ
â đ and đ âČâ = đŽ â â đ
â | â đ
â đ âČ
36
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ Determine two optical centers đ and đ âČ using đ and đ âČ and their decompositions Determine new rotation matrix đ
â common to đ â and đ âČâ Determine new intrinsic parameters đŽ â by averaging đŽ and đŽ âČ and then annulling skew component Compute new projection matrices: đ â = đŽ â â đ
â | â đ
â đ and đ âČâ = đŽ â â đ
â | â đ
â đ âČ Compute homography transformations
37
Image rectification Algorithmic description Algorithm Compute image rectification Input: đ and đ âČ Output: đ â and đ âČâ and two homography transformations: đ» and đ» âČ Decompose each camera matrices: đ=đŽâ đ
;đ and đ âČ = đŽ âČ â đ
âČ ; đ âČ Determine two optical centers đ and đ âČ using đ and đ âČ and their decompositions Determine new rotation matrix đ
â common to đ â and đ âČâ Determine new intrinsic parameters đŽ â by averaging đŽ and đŽ âČ and then annulling skew component Compute new projection matrices: đ â = đŽ â â đ
â | â đ
â đ and đ âČâ = đŽ â â đ
â | â đ
â đ âČ Compute homography transformations đ»= đ â đ â and đ» âČ = đ âČâ đ âČâ1
38
Image rectification (before)
39
Image rectification (after)
40
Image rectification: application
3D reconstruction becomes easier b a c
41
Panoramic view
42
Panoramic view: challenges
43
Elementary stereo geometry in the rectified image configuration
The depth đ§ of a 3D scene point đ can be calculated using the disparity measure đ= đą âČ âđą đą đ =â â+đ„ đ§ , đą âČ đ = ââđ„ đ§
44
Elementary stereo geometry in the rectified image configuration
The depth đ§ of a 3D scene point đ can be calculated using the disparity measure đ= đą âČ âđą đą đ =â â+đ„ đ§ , đą âČ đ = ââđ„ đ§ â đ§= 2âđ đą âČ âđą = đđ đą âČ âđą = đđ đ
45
Elementary stereo geometry in the rectified image configuration
The depth đ§ of a 3D scene point đ can be calculated using the disparity measure đ= đą âČ âđą đą đ =â â+đ„ đ§ , đą âČ đ = ââđ„ đ§ â đ§= 2âđ đą âČ âđą = đđ đą âČ âđą = đđ đ đ„= âđ đą+ đą âČ 2đ , đŠ= đđŁ đ
46
Elementary stereo geometry in the rectified image configuration
The depth đ§ of a 3D scene point đ can be calculated using the disparity measure đ= đą âČ âđą đą đ =â â+đ„ đ§ , đą âČ đ = ââđ„ đ§ â đ§= 2âđ đą âČ âđą = đđ đą âČ âđą = đđ đ đ„= âđ đą+ đą âČ 2đ , đŠ= đđŁ đ
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.