[MVG] Lecture 3-1: Circular points and Absolute conic
๐ก
- Affine rectification๊ณผ metric rectification task์ ๋ํด์ ์ค๋ช ํ๋ค.
- Affine rectification task๋ฅผ ์ํด line at infinity์ ์ ์์ ์ด๊ฒ์ ์ด์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ฐฐ์ด๋ค.
- Metric rectification task๋ฅผ ์ํด circular points์ ์ ์์ dual absolute conic๊ณผ ์ด๊ฒ์ ์ด์ฉํ ๋ฐฉ๋ฒ์ ๋ฐฐ์ด๋ค.
Affine Rectification and Metric rectification
Affine rectification
- ์๊ทผ ํฌ์์ผ๋ก ์ธํด, ํํํ ์ง์ ์ด ํํํ์ง ์๊ฒ ๋๋ค.
- ๋ฐ๋ผ์ ideal point๋ค๊ณผ vanishing line ๋ํ finite ๋ฒ์๋ก ๋ค์ด์จ๋ค.
- ์ด๋ฌํ ์ด๋ฏธ์ง๋ฅผ ํํํ ์ ๋ค์ ํํํ๋๋ก ์ด๋ฌํ ํฌ์ ์๊ณก(projective distortion)์ ์ ๊ฑฐํ๋ ๊ณผ์ ์ Affine rectification ์ด๋ผ๊ณ ํ๋ค.
line at infinity ์ด์ฉ Metric rectification
- ์ Affine rectification์ ์ํํด๋ ํํํ ์ง์ ์ ๊ฒฝ์ฐ ํํํ๋๋ก ๋ง๋ค์ด์ฃผ์์ง๋ง, ๊ฐ๋๊ฐ 90๋ ์๋ ๋ ์ง์ ์ฌ์ด์ ๊ด๊ณ๋ ์ฌ์ ํ ๋ณต๊ตฌํ์ง ๋ชปํ๋ค.
- ์ด๋ฅผ ๊ฐ๋๊น์ง ๋ณต์ํ์ฌ, ์ค์ ์ธ๊ณ์ ๊ฒ๊ณผ scale ๋ง ๋ค๋ฅธ ์ด๋ฏธ์ง๋ฅผ ๋ง๋ค์ด๋ด๋ ์์ ์ metric rectification์ด๋ผ๊ณ ํ๋ค.
- ๋จ, ์ฌ๊ธฐ์ scale์ ๋ณต์ํ์ง ๋ชปํ๋ค.
- Circular points์ Absolute dual conic์ ์ด์ฉ
The Line at Infinity
Line at infinity์ ์ฑ์ง์ ์์๋ณด์.
- $\mathbf{l}_\infty$ = [0 0 1]$^\top$
- $\mathbf{l}_\infty$ ๋ projective transformation ์ค affinity ๋ณํ์ ๋ํด์ invariantํ๋ค.
- โป point์ ๋ํ projective transformation $\mathbf{H}$๋ฅผ dual ๊ด๊ณ์ธ line์ ์ ์ฉํ ๊ฒฝ์ฐ์ $\mathbf{H}^{-\top}$ ์ผ๋ก ์ ์ฉํด์ผ ํ๋ค.
- ์ด $\mathbf{l}_\infty$๋ฅผ ์ฐพ๋ ๊ฒ์ด *affine property๋ค์ ์ฐพ๋๋ฐ์ ๋์์ ์ค๋ค๋ ๊ฒ์ ์ดํ์ ๋ด๋ณผ ๊ฒ
- โป affine property: parallelism(ํํ์ฑ), ์ง์ ์ฑ~, ratio of lengths(๊ธธ์ด์ ๋น)~
**Recap) Hierarchical Projective Transformation**
[slide]
- ์ affinity ์ธ์ ๋ค๋ฅธ projective transformation์ ๋ด๋ณด๋ฉด, ideal point์ $\mathbf{l}_\infty$๊ฐ ๋ ์ด์ infinity์ ์์ง ์๊ฒ ๋๋ ๊ฒ์ ๋ณผ ์ ์์
- ์ฒซ๋ฒ์งธ ์์ ideal point๋ฅผ projective transform ํ ๋์ด๋ค.
- ๋๋ฒ์งธ ์์ line at infinity๋ฅผ projective transform ํ ๋์ด๋ค.
[slides]
- ์์์ $\mathbf{l}_\infty$๋ affine transformation์ ๋ํด์ invariant ํ๋ค๊ณ ํ๋ค.
- ํ์ง๋ง pointwise(point level)์์ ๊ทธ๋ ์ง ์๋ค.
- โ $\mathbf{l}\infty$ ์์ ํ ์ (ideal point)๋ฅผ affine transformation์ ํ๋ฉด ์ฌ์ ํ $\mathbf{l}\infty$ ์์ ์์นํ์ง๋ง, ๋์ผํ ์ ์ ์๋๋ผ๋ ๋ป
- ๋ง์ฝ A๊ฐ scale ๋ณํ๋ง ์ํํ๋ diagonal matrix๋ผ๋ฉด point ๋ํ ๋์ผํ๊ฒ ์ ์ง๋๋ค.
Recovery of Affine Properties from Images
์ด์ affine rectification ์ ๋ํด์ ์ดํด๋ณผ ๊ฒ
- Affine rectification: image ์์ line at infinity๋ฅผ ์ด์ฉํ๋ฉด *projective distortion์ ์ ๊ฑฐํ ์ ์๋ค.
- โป projective distortion: ํํํ ์ ์ด ํฌ์ ๋ณํ์ผ๋ก ์ธํด ํํํ์ง ์๊ฒ ๋๋ ๊ฒฝ์ฐ ์ด๋ฅผ projective distortion์ด๋ผ๊ณ ํ๋ค.
- projective distortion์ด ์๋ ์ด๋ฏธ์ง์ ๊ฒฝ์ฐ, line at infinity๋ ๋ ์ด์ infinity์ ์์ง ์๊ฒ ๋๋ค. (ideal point ๋ํ ๋ง์ฐฌ๊ฐ์ง)
- projective transformation($\mathbf{H}{\mathbf{p}}$) on $\mathbf{l}\infty$: ์์์ ๋ดค๋ฏ์ด ๋ ์ด์ infinity์ ์์นํ์ง ์๋๋ค.
- ์ฐ๋ฆฌ์ ๋ชฉํ๋ ์๋ $\mathbf{l}\infty$์ด์๋ finite line์ ๋ค์ $\mathbf{l}\infty$์ผ๋ก mappingํ๋ projective transformation $\mathbf{H}_{\mathbf{p}}^{\prime}$ ์ ์ฐพ๋ ๊ฒ์ด๋ค.
- ์ด ๋, ์ ๊ทธ๋ฆผ์ฒ๋ผ ์์๋ฅผ ๋ํ๋ด๋ฉด ๋ค์๊ณผ ๊ฐ๋ค.
- 1) affine ์ฑ์ง์ ๋ณด์กดํ๋ ์ด๋ฏธ์ง โ $\mathbf{H}_{\mathbf{p}}$ โ 2) affine ์ฑ์ง์ ์์ด๋ฒ๋ฆฐ ์ด๋ฏธ์ง
- 2) affine ์ฑ์ง์ ์์ด๋ฒ๋ฆฐ ์ด๋ฏธ์ง โ $\mathbf{H}_{\mathbf{p}}^{\prime}$ โ 3) affine ์ฑ์ง์ ๋ณด์กดํ๋ ์ด๋ฏธ์ง
- 1) affine ์ฑ์ง์ ๋ณด์กดํ๋ ์ด๋ฏธ์ง โ $\mathbf{H}_{\mathbf{A}}$ โ 3) affine ์ฑ์ง์ ๋ณด์กดํ๋ ์ด๋ฏธ์ง
- ์ฐ๋ฆฌ๋ ์ด ์ธ๋ฒ์งธ case๊ฐ ์ affine transformation($\mathbf{H}_{\mathbf{A}}$) ์ธ์ง๋ฅผ ์์์ ์ดํด๋ดค๋ค. (์์ฝํ์๋ฉด affine ์ฑ์ง์ ๋ณด์กดํ๋ projective transformation์ affine transformation ๋ฐ์ ์์ด์)
- โป ์ ์ฒซ๋ฒ์งธ์ ์ธ๋ฒ์งธ ๊ทธ๋ฆผ์ ๋ณด๋ฉด, ํํํ ์ ์ ์ ์ง๊ฐ ๋์ง๋ง ideal point์ ์์น๋ ๋ฌ๋ผ์ก๋ค. ํ์ง๋ง ์ฌ์ ํ ideal point์ด๊ณ ์ด๋ line at infinity ์์ ์๋ค.
[slides]
- Affine rectification ๋ฌธ์ :
- Given) ์ด๋ฏธ์ง ์์ ํฌ์๋ line at infinity $\mathbf{l}$ = $(l_1, l_2, l_3)$$^\top$($l_3$ โ 0) ๊ฐ ์ฃผ์ด์ง ๋ (์ด๋ฏธ์ง์์ $\mathbf{l}$์ ๊ณ์ฐํ ์ ์์ ๋)
- Find) $\mathbf{H}{\mathbf{p}}^{\prime}$๋ฅผ ์ฐพ๋ ๊ฒ ($\mathbf{H}{\mathbf{p}}^{\prime}$๋ ํฌ์๋ $\mathbf{l}\infty$(line at finite)์ ๋ค์ $\mathbf{l}\infty$(line at infinite)๋ก mappingํ๋ ๋ณํ์์ ์๊ธฐ)
- Solution: $$
$$
๐ก
Affine Rectification ์๊ณ ๋ฆฌ์ฆ ์ ๋ฆฌ
[slides]
- ํฌ์๋ plane์ vanishing line $\mathbf{l}$์ ํฌ์๋ ํํ์ ๋ค ๋ ์์ ๊ต์ฐจ์ ์ผ๋ก ๊ตฌํ ์ ์๋ค.
- ์์์ $\mathbf{H}{\mathbf{A}}$๋ฅผ ์ ํํด์ $\mathbf{H}{\mathbf{p}}^{\prime}$ = $\mathbf{H}{\mathbf{A}}$$\mathbf{H}{\mathbf{p}}^{-1}$๋ฅผ ๊ณ์ฐ ์ด ๋, $\mathbf{H}_{\mathbf{A}}$๋ [ ํ๋ ฌ ] ๊ผด์ด๋ค.
- $\mathbf{H}_{\mathbf{p}}^{\prime}$๋ฅผ ๊ณ์ฐํ์ฌ ๊ตฌํ์ผ๋ฉด, ์ด๊ฒ์ ์ฃผ์ด์ง ์ด๋ฏธ์ง์ ์ ์ฉํ์ฌ affinely rectified ์ด๋ฏธ์ง๋ฅผ ๋ง๋ฆ (ํํ์ฑ ๋ณต๊ตฌ)
- Affine property๋ค์ affinely rectified image๋ก๋ถํฐ ๋ณต๊ตฌํ ์ ์์ (ํํ์ , ratio of lengths(?))
- Note: ๊ฐ๋๋ ์ฌ์ ํ ๋ณต๊ตฌํ์ง ๋ชปํ๋ค. (projective distortion๋ง rectify ํ๊ณ , ์ฌ์ ํ affine distortion์ ๋จ์์์)
โป projective distortion(ํํ์ ์๊ณก) โ affine distortion(๊ฐ๋ ์๊ณก) โ similar distortion (scale ์๊ณก)
๐ก
projective distortion์ ์ค์ ์ฌ์ง์ ์ฐ๋ ๊ณผ์ ์์ ์ธ์ ๋ฐ์ํ ๊น?
World์ 3D point $\mathbf{X}$๋ฅผ [R t]๋ก camera coordinate์ point $\mathbf{X_C}$๋ก ๋ณํ - $\mathbf{X_C}$๋ฅผ normal image plane(focal length๊ฐ 1์ธ image plane)์ ํฌ์ โ $\mathbf{X_{normal}}$ (โก๏ธย ๋ฐ๋ก ์ฌ๊ธฐ์ projective distortion์ด ๋ฐ์. ์ด ๊ณผ์ ์์ Z์ถ ๊ฐ์ผ๋ก ๋๋๊ฒ ๋๋๋ฐ, ์ด๋ฌํ ๋น์ ํ ๋ณํ์ผ๋ก linearity๊ฐ ์๊ณก๋จ)
- normal image plane์ ํฌ์๋ ์ $\mathbf{X_{normal}}$์ camera์ intrinsic $\mathbf{K}$๋ฅผ ํตํด ์ค์ pixel coordinate๋ก ๋ณํ
Computing a Vanishing Point from a Length Ratio
[slides]
- ์ด์ ์์: ideal point์ line at infinity๋ฅผ ์๋ฉด affine property๋ค์ ์ ์ ์๋ค๋ ๊ฒ์ ๋ฐฐ์ ์
- ๋ฐ๋๋ก, affine property๋ค์ ์๋ฉด, ideal point์ line at infinity๋ฅผ ๊ตฌํ ์ ์๋ค.
- ์ด๋ฏธ์ง์์ ํ๋์ line ์์ ์๋ aโ, bโ, cโ์ ํ์ธํ ์ ์๋ ๊ฒฝ์ฐ
- world ์์ corresponding collinear points a, b, c๋ฅผ ๊ฐ๋ line์ด ์๋ค๊ณ ๊ฐ์ ํด๋ณด์.
- d(a, b) : d(b, c) = a : b ๋ฅผ ์ฐ๋ฆฌ๊ฐ ์๋ค๊ณ ํ์. ( d(x,y)๋ x์ y์ Eulidean distance๋ฅผ ์๋ฏธ )
- Solution
- 1D projective space๋ฅผ ๋ค์ ๋ณต์ตโฆ
Circular Points and Their Dual
circular points or absolute points
[slides] circular points์ ์ ์
[slides] $\mathbf{H_S}$ (similar transformation)์ ๋ํด invariantํ circular points
- circular points $\mathbf{I}$, $\mathbf{J}$์ ๊ฒฝ์ฐ projective transformation $\mathbf{H}$๊ฐ similarity์ธ ๊ฒฝ์ฐ invariantํ๋ค.
- converse is also true) $\mathbf{I}$์ $\mathbf{J}$๊ฐ ๋ณํ ์ดํ invariant ํ๋ค๋ฉด, ์ด ๋ณํ์ similarity์ด๋ค.
- proof) $$
$$
[slides] Circular points ์ด๋ฆ์ ์ ๋
- 2D projective space์์์ ๋ชจ๋ circle์ ๋ํด $\mathbf{l}_\infty$์์ ๊ต์ ์ด ๋๊ฐ๊ฐ ๋์จ๋ค.
- ์ด ๋ ๋ชจ๋ circle ๋ชจ์์ conic์ $\mathbf{x}1^{2} + \mathbf{x}_2^{2} = 0$ ์ผ๋ก ๋์จ๋ค. ($\mathbf{l}\infty$์ ๊ต์ ์ ๊ฐ๋ conic์ homogeneous coordinate์์ equivalentํ ๊ฒ๋ค์ ๋ชจ๋ ๋นผ๋ฉด ์ด ํ๋์ ํํ๋ฐ์ ์์.
- ๊ทธ๋์ ์ด ๋ ์ ์ circular points๋ผ๊ณ ํ๋ค.
๐ก
circle conic
\[\mathbf{x}_1^{2} + \mathbf{x}_2^{2} = 0\]์ conic์ matrix form์ผ๋ก ์ฐ๋ฉด ๋ค์๊ณผ ๊ฐ๋ค.
\[\begin{pmatrix}1 & 0 & 0 \\0 & 1 & 0 \\0 & 0 & 0\end{pmatrix}\] ์ด ๊ธฐ์ฌ๋ ์ ์๊ถ์์ CC BY 4.0 ๋ผ์ด์ผ์ค๋ฅผ ๋ฐ๋ฆ
๋๋ค.
