Presentation is loading. Please wait.

Presentation is loading. Please wait.

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Similar presentations


Presentation on theme: "55:148 Digital Image Processing Chapter 11 3D Vision, Geometry"— Presentation transcript:

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𝑑 , 𝑩= 𝑏𝑣 𝑑


Download ppt "55:148 Digital Image Processing Chapter 11 3D Vision, Geometry"

Similar presentations


Ads by Google