I have this problem that I cannot figure out how to solve. It is from Szeliski's computer vision book (http://szeliski.org/Book/drafts/SzeliskiBook_20100903_draft.pdf) p.94 (electronic version) and is as follows:
If you are given more than two lines and want to find a point $\widetilde{x}$ that minimizes the sum of squared distances to each line,
$$ D = \sum_{i}(\widetilde{x} \cdot \widetilde{l}_i)^2 $$
how can you compute this quantity? (Hint: Write the dot product as $\widetilde{x}^T\widetilde{l_i}$ and turn the squared quantity into a quadratic form, $\widetilde{x}^TA\widetilde{x}$.)
The tilde sign is used to denote points in homogenous coordinates.
I have turned the expression into this expression, which is the authors hint:
$$ \sum_{i}(\widetilde{x}^T\widetilde{l_i})(\widetilde{x}^T\widetilde{l_i}) = \sum_{i}(\widetilde{x}^T\widetilde{l_i})(\widetilde{l_i}^T\widetilde{x}) = \sum_{i}\widetilde{x}^TA\widetilde{x} $$
A is then: $\widetilde{l_i}\widetilde{l_i}^T$
How do I proceed from here? How does rewriting the sum to a sum of quadratic from help me? I can take the derivative and find a x that minimizes the squared sum?
The lines are in 2D expressed using homogenous coordinates resulting in 3D vectors. Does anyone know how to solve this using the quadratic form expression (using matrix stuff)
I disagree
? – elect Jun 22 '15 at 10:13