mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-09-10 13:05:24 +02:00
42 lines
1.4 KiB
TeX
42 lines
1.4 KiB
TeX
\subsection{Bootstrapping}
|
|
|
|
\bi{PnP Problem} {\scriptsize Perspective $n$-Point}
|
|
Find sol. for camera pose \textit{directly}
|
|
|
|
\bi{RANSAC} {\scriptsize RANdom SAmpling Consensus} Model estimation, for find. outliers \& correct.
|
|
Also great for finding an initial guess for pose. (due to robustness)
|
|
For $N$ iteration: sample min set, fit model, count inliers (reprojection error $<$ threshold $t$), keep best, optionally refit on inliers.
|
|
More outliers $\Rightarrow$ more iterations.
|
|
|
|
|
|
\bi{Stereo Triang.} Given two rays (known poses for points in 2D).
|
|
Find good point in 3D. Fast sol: \bi{Midpoint Method}:
|
|
|
|
\bi{1} Find p. along ray w/ min. dist (Lin. Least Squares)
|
|
\[
|
|
\vec{\lambda}\! =\! [\lambda_1 \; \lambda_2]^\top\! = \! \argmin{} ||({_W}\vec{t}_{C_2} + \lambda_2 {_W}\vec{e}_2) - ({_W}\vec{t}_{C_1} + \lambda_1 {_W}\vec{e}_1)||^2
|
|
\]
|
|
|
|
\rmvspace
|
|
\bi{2} Solve normal equation $\mat{A} \vec{\lambda} = \vec{b}$ with $\vec{q} = -{_W}\vec{e}^\top_1 {_W}\vec{e}_2$:
|
|
\[
|
|
\mat{A} =
|
|
{\scriptsize
|
|
\begin{bmatrix}
|
|
1 & \vec{q} \\
|
|
\vec{q} & 1
|
|
\end{bmatrix}
|
|
}
|
|
\quad
|
|
\vec{b} =
|
|
{\scriptsize
|
|
\begin{bmatrix}
|
|
\vec{e}_1^\top \cdot ({_W}\vec{t}_{C_2} - {_W}\vec{t}_{C_1}) \\
|
|
-\vec{e}_2^\top \cdot ({_W}\vec{t}_{C_2} - {_W}\vec{t}_{C_1})
|
|
\end{bmatrix}
|
|
}
|
|
\quad C_i \text{ cam}
|
|
\]
|
|
|
|
\bi{3} Pick midp. ${_W}\vec{t}_P \! = \! 0.5(\tau_1 \! + \! \tau_2)$; $\tau_n \! = \! {_W}\vec{t}_{C_n} + \lambda_n {_W}\vec{e}_n$
|