\subsection{Bootstrapping}

\bi{PnP Problem} {\scriptsize Persp. $n$-P.}
Find sol. for camera pose \textit{directly}

\bi{RANSAC} {\scriptsize RANdom SAmpling Consensus} for find. outliers \& correct
% TODO: Do we need to know this algorithm / be able to implement it?
% -> likely not

\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}_2)||^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)$
