Zihan Wang (zihanwa3), Fall 2024
P
from 2D-3D correspondencesSurface Points | Bounding Box |
---|---|
![]() | ![]() |
Input Image | Annotated 2D points | Edges |
---|---|---|
![]() | ![]() | ![]() |
K
from annotationsInput Image | Annotated Parallel Lines | Vanishing points and principal point |
---|---|---|
![]() | ![]() | ![]() |
We compute vanishing points from annotated lines by using pairs of 2D points to form lines. The intersection of two lines gives a vanishing point, representing a direction in 3D space where parallel lines converge when projected onto the image plane..
The image of the absolute conic is:
Each pair of vanishing points follows a constraint:
Using three pairs of vanishing points, these constraints are stacked to form a system of linear equations in the matrix form:
A is 3x4, and w is the vector of unknowns w 1-4..
It can be obtained by the null vector of A by SVD, the last row from solution is the vector.
K can be computed from the relation:
We can apply Cholesky factorization to extract k and normalize it.
Input Image | Annotated Squares |
---|---|
![]() | ![]() |
Angle between planes(degree) | |
---|---|
Plane 1 & Plane 2 | 67.57512638790858 |
Plane 1 & Plane 3 | 87.75278299233901 |
Plane 2 & Plane 3 | 85.21620854556966 |
Using the homography, these circular points are projected into the image as:
Then the imaged circular points become:
Now it allows us to impose constraints on the camera’s intrinsic matrix.
we generate more equations until it is sufficient to solve for w up to a scale factor as:
.
Input Image | Annotations | Reconstruction View 1 | Reconstruction View 2 |
---|---|---|---|
![]() | ![]() | ![]() | ![]() |
Compute ( K ) from 3 vanishing points.
Select a reference point to start the unprojection.
Unproject the reference point and assign scale:
Find the plane normal and scalar ( a ) with the known 3D point
Unproject other points to 3D
Repeat for all planes