Computer Vision: Camera Geometry Quiz
Computer Vision: Camera Geometry Quiz
The vanishing point of a line with direction ratios (a, b, c) is computed using the projection matrix P and the formula P(a, b, c, 0)^T. This allows us to find the coordinates of the vanishing point in the image plane .
For a pinhole camera, the projection matrix is defined using the focal length f and the principal point (px, py): \( P = \begin{bmatrix} f & 0 & px & 0 \\ 0 & f & py & 0 \\ 0 & 0 & 1 & 0 \end{bmatrix} \).
In the pinhole camera model, the image coordinates (x, y) of a 3D point X = (X, Y, Z) are calculated using the formula: x = f X / Z + px and y = f Y / Z + py, where f is the focal length of the camera, and (px, py) is the principal point offset in the image plane .
The principal axis direction of a projective camera is determined from the third column of the first three rows of the camera's projection matrix. This column, often referred to as m3, defines the direction vector of the principal axis .
The principal point in 2D real space is determined by the multiplication of the matrix M with m3, where M is the left-hand 3x3 matrix from the projection matrix, and m3 is the third row of M. The principal axis vector is derived by scaling m3 with an integer k, providing a direction vector in the 3D space .
To determine the plane formed by the camera center and a projected line in a projective camera model, we use the formula PTl, where P is the projection matrix of the camera and l is the line in image coordinates. This calculation gives the coefficients of the plane in homogeneous coordinates .
When a point from the projective plane P2 is mapped by a homography matrix H to R3, it undergoes affine transformation which retains the dimensional context but allows scaling and translation. In the context of P2 to P2, the point undergoes projective transformation, maintaining collinearity and cross-ratio .
The unit normal to a plane formed by the camera center and two image points is calculated using the cross product of the points, followed by multiplication with the transpose of the projection matrix, PT. The resulting normal vector is then normalized to obtain the unit normal .
To find the camera center in homogeneous coordinates from a given projection matrix P, consider the left 3x3 submatrix as M, and the last column of P as p4. The camera center is given by C = (−M−1p4, 1), which involves inverting the matrix M and multiplying by the negative of p4 .
A homography matrix representing pure camera rotation around its center is expressible as H = KRK^−1, where K is the camera calibration matrix and R is the rotation matrix. This form highlights that the homography captures rotation without translation or deformation. The vanishing line is the intersection of the image plane with a plane through the camera center parallel to the scene plane, indicating that spatial relationships dependent on the camera’s own perspective are preserved .