-
[11] 2D Homography Estimation (1)Multiple View Geometry 2021. 4. 10. 15:10
본 포스트는 학습한 것을 정리할 목적으로 작성되었습니다.
해당 포스트의 내용 및 그림, 수식 등은 'Multiple View Geometry in Computer Vision' 책을 참고하였습니다.
(1) 2D homograpy estimation
P2 에 존재하는 point xi들의 집합과 같은 공간에서 그에 대응되는 다른 point x′i들의 집합이 주어지면 두 이미지 간의 projective transform(homography)를 추정할 수 있다.
(2) Geometric and algebric distance
Homography를 추정할 때 x′i와 Hxi 두 점군 집합들 간의 차이는 geometric 혹은 algebric distance로 정의된다.
Algebric distance : ||x′×Hx||2
Geometric distance : ||x′−Hx||2
(3) The direct linear transfomation (DLT) algorithm
DLT 알고리즘은 가장 simple한 homography estimation algorithm이다. 이 algorithm은 다음을 만족하는 H를 찾는다.
x′i×Hxi=0
x′i=[x′iy′iw′i]T, H=[h1Th2Th3T]라고 할 때, 위 식은 다음과 같이 계산된다.
x′i×Hxi=[y′ih3Txi−w′ih2Txiw′ih1Txi−x′ih3Txix′ih2Txi−y′ih2Txi]
위 식에서 hjTxi=xTihj 이므로 다음과 같이 정리할 수 있다.
[0T−w′ixTiy′ixTiw′ixTi0T−x′ixTi−y′ixTix′ixTi0T][h1h2h3]=Aih=0
위 식에서 h는 9-vector 이며 이 vector의 element들은 homography H들의 element들 이다.
h=[h1h2h3] H=[h1h2h3h4h5h6h7h8h9]
또한 위 식의 rank는 2 이므로(up to scale) 마지막 row는 다른 row들에 대해 linearly dependent하고 따라서 위 두 row에 의한 식으로만 문제를 풀게 된다.
[0T−w′ixTiy′ixTiw′ixTi0T−x′ixTi][h1h2h3]=Aih=0
왼쪽의 행렬 식은 2 x 9 matrix이고 오른쪽의 벡터는 9-vector 이므로 dof 는 8이고 따라서 최소 4개의 point pair가 요구된다.
'Multiple View Geometry' 카테고리의 다른 글
[13] 2D Homography Estimation (3) (0) 2021.04.11 [12] 2D Homography Estimation (2) (0) 2021.04.10 [10] Quadrics and dual quadrics (0) 2021.04.08 [9] 3D Projective Geometry (2) (0) 2021.04.08 [8] 3D Projective Geometry (1) (0) 2021.04.08