-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath-notes.tex
More file actions
119 lines (99 loc) · 3.28 KB
/
math-notes.tex
File metadata and controls
119 lines (99 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
\documentclass[11pt]{article}
\date{\today}
\usepackage{fullpage}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{bbm}
\usepackage{sectsty}
\usepackage{slashbox}
\usepackage{rotating}
\usepackage[colorlinks]{hyperref}
\hypersetup{
pdfauthor={Christopher M. Maes},
citecolor=black,
linkcolor=black,
urlcolor=black
}
\newfont{\sansf}{cmss10}
\newfont{\solverf}{cmss10 scaled 1100}
\newfont{\bssten}{cmssbx10}
\newfont{\bssnine}{cmssbx10 scaled 900}
\newfont{\bssdoz}{cmssbx10 scaled 1200}
\newcommand{\type}{Notes for camera projection}
\newcommand{\info}{Christopher Maes}
\pagestyle{fancy}
\date{\today}
\chead{\type}
\rhead{\today}
\lhead{\info}
\rfoot{}
\cfoot{\thepage}
\lfoot{}
\renewcommand{\footrulewidth}{.4pt}
\addtolength{\headsep}{.5in}
\renewcommand{\headheight}{14pt}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
\setlength{\parindent}{0in}
\newcommand{\norm}[1]{\left\lVert\,#1\,\right\rVert}
\newcommand{\rank}{\mathrm{rank}}
\newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}}
\newcommand{\abs}[1]{\left\vert #1 \right\vert}
\newcommand{\set}[2]{\left\{#1 \left| #2\right\}\right.}
\newcommand{\R}{\mathbbm{R}}
\newcommand{\matlab}{{\sc Matlab}}
\newcommand{\dims}[2]{\R^{#1 \times #2}}
\newcommand{\diag}{\mathrm{diag}}
\newcommand{\range}{\mathcal{R}}
\newcommand{\nullspace}{\mathcal{N}}
\newcommand{\maximize}{\text{maximize }}
\newcommand{\minimize}{\text{minimize }}
\newcommand{\st}{\text{subject to }}
\renewcommand{\l}{\ell}
\newcommand{\half}{{\textstyle{\frac12}}}
\begin{document}
The main mathematical problem associated with the camera projection
problem is:
Given the projections of a point $x \in \R^n$ onto a set of $m$
$n-1$ dimensional hyperplanes, how do we reconstruct an estimate of
$x$?
Suppose the hyperplanes are defined as
\[
\mathcal{P} = \{ x \in \R^n \ |\ a^T x = \beta \}.
\]
Let the columns of the matrix $Z \in \dims{n}{n-1}$ form a basis for
the nullspace of $a^T$. That is, $a^T Z = 0$. And suppose we are
given $x_0 \in \R^n$ which defines an origin of the hyperplane with
$a^T x_0 = \beta$, and $y \in \R^{n-1}$ the $n-1$ dimensional
projection of $x$ onto the hyperplane.
Define $u = x - x_0$, and let $P u$ be the projection of $u$ onto the
hyperplane, then $Pu = Z y$. We may write $u = w + v$ where $w \in
\range(Z)$ and $v \in \nullspace(Z^T)$. So that
\[
u = w + v = Z y + v
\]
Since we have that $Z^T v = 0$, multiplying the above by $Z^T$ we have
$Z^T u = Z^T Z y$, or $y = (Z^T Z)^{-1} Z^T u$. So the projection
matrix $P$ is defined as $P = Z (Z^T Z)^{-1} Z^T$. Thus, we have
that
\[
P (x - x0) = Z y,
\]
where $P$, $x_0$, $y$, and $Z$ are defined from the data, and $x$
is unknown.
Let $P_i$ and $Z_i$ denote the projection and nullspace matrix
associated with the $i$th hyperplane, and $x_0^i$ and $y_i$
denote the $i$th hyperplane origin and projected coordinate.
To determine an estimate for $x$ we may solve the least-squares
problem
\begin{equation}
\underset{x}{\minimize} \quad \sum_{i=1}^m \norm{ P_i x - P_i x_0^i - Z_i y_i}
\end{equation}
This is equivalent to the problem
\[
\underset{x}{\minimize} \quad \norm{ \pmat{P_1 \\ \vdots \\ P_m } x
-\pmat{P_1 x_0^1 - Z_1 y_1 \\ \vdots \\ P_m x_0^m - Z_m y_m} }
\]
\end{document}