Introduction
A right-angle corner, three mutually perpendicular edges meeting at a point, appears in an image as a junction of three line segments. Such corners are ubiquitous: on boxes, in rooms, at doorframes and on furniture. Unlike a generic feature point, a corner carries metric information, namely three directions known to be mutually orthogonal. This paper asks what such junctions reveal about the intrinsic parameters of the camera that images them. The contribution is theoretical: without locating any vanishing point, we determine exactly which cameras junctions can rule out, each by a single junction, and which no junction can exclude. The answer gives bounds on the camera that the data guarantee, even when there are too few lines to find vanishing points.
Earlier work on what a camera learns from right-angle corners covers two extremes: a single corner seen by a calibrated camera, and a whole box seen by an uncalibrated one. For a single junction and a calibrated camera, Perkins [1 ] and Kanade [2 ] analyzed orthographic images of trihedral corners, and Barnard [3 ] and Horaud [4 ] back-projected the image lines to interpretation planes. Kanatani [5 ] derived the closed form under orthography, with its two junction types, fork and arrow. Kanatani [6 ] and Shakunaga and Kaneko [7 , 8 ] extended the analysis to perspective: the orientation is unique up to a mirror, and a condition decides whether a junction can be the image of a right-angle corner at all. The closest precedent for reading that condition as a feasibility problem is the labeling of line drawings [9 , 10 ] , in particular the algebraic treatment of Sugihara [11 ] , which decides whether a drawing is realizable by solving a linear feasibility problem. At the other extreme, for a whole parallelepiped and an uncalibrated camera, Wilczkowiak et al. [12 , 13 , 14 ] fit a canonic projection matrix to six or more vertices; each right angle then contributes one linear equation on the calibration.
The common case lies between these extremes: an uncalibrated camera that sees one corner or a few, as in an image of a room or of a single object. Existing methods treat such scenes by exploiting long line families: Manhattan-world methods [15 , 16 ] , calibration from vanishing points [17 , 18 , 19 , 20 ] , single-view metrology [21 ] and vanishing-point detection [22 ] . Other approaches require more structure: Jelinek and Taylor [23 ] need a full polyhedral model with model-to-image correspondences, and Ramalingam et al. [24 ] combine Manhattan junctions with vanishing points to estimate indoor layout, as do the layout methods of Hedau et al. [25 ] and Lee et al. [26 ] . Learned calibrators [27 , 28 , 29 , 30 ] regress the camera directly from pixels. We ask instead what the individual junctions determine.
The starting point is a simple observation. Each image line of a junction back-projects to a plane through the camera center, and because the three lines meet at the image of the vertex, all three planes contain the same viewing ray. For every calibration matrix K K K , this turns the condition that the junction be the image of a right-angle corner into the negativity of a product of three forms, each linear in the dual image of the absolute conic ω ∗ = K K T \omega^{*} = KK^{\mathsf{T}} ω ∗ = K K T (Theorem 3 ). In plain terms, the cameras for which a junction can be the image of a right-angle corner form a region bounded by three planes in the space of cameras. Among positive-definite forms this region is a convex cone, the positive combinations of three rank-one forms on the plane of lines through the junction (Theorem 4 ); when only the focal length is unknown, the cone reduces to an interval with closed-form endpoints (Theorem 6 ). Since each junction’s constraint is computed from the image alone, calibration from junctions is a convex feasibility problem (§ 5.5 ).
Junctions become far more informative when several corners belong to one rectilinear structure, such as a building or a room, whose edges all run along the same three perpendicular directions, a Manhattan frame. The edges of all its corners then converge on the same three vanishing points. Call the line through two of these vanishing points the edge-on line of the third direction; classically, it is the vanishing line of the planes perpendicular to that direction. The name records what happens to a corner whose vertex lies on this line: the face spanned by its other two edges is seen edge-on, and those two edges appear as a single image line. These lines organize the main result. Each junction still imposes only an inequality, but together the junctions of one frame decide exactly which cameras can be rejected (Theorem 14 ). When the edge-on line of a direction passes through the image, meeting it in a segment (Figure 5 ), every camera under which that direction’s vanishing point is not orthogonal to the other two is rejected by some junction near that line. Conversely, cameras that satisfy these orthogonalities and lie near the true one pass every junction, so no set of junctions can reject them. The junctions therefore never carry more information than the vanishing points, and strictly less when fewer than two edge-on lines pass through the image. We say that junctions determine a parameter when every wrong value is rejected by some junction.
Figure 5. The three vanishing points of a rectilinear structure, the edge-on lines that join them, and the image (gray). The edge-on line ℓ k \ell_k ℓ k of axis k k k passes through the other two vanishing points; solid lines meet the image and dashed lines miss it. Near a line that passes through the image, a junction’s two edges toward that line’s vanishing points nearly line up, the face they span being seen edge-on, as drawn in (a) and (b); such junctions reject every camera under which the opposite vanishing point is not perpendicular to the other two (Theorem 14 ). (a) A nearly level camera, for which few junctions are bounded above. (b) An oblique view, which forces all three perpendicularities. (c) The touching case, which forces the single linear condition (18) only by junctions close to ℓ k \ell_k ℓ k . The theorem guarantees that such junctions exist; Online Resource 1 (Sect. S9) estimates how many junctions placed at random it takes to meet one. The constant C C C of part (2) grows as a vanishing line that misses I \mathcal{I} I , or a vanishing point outside I \mathcal{I} I , comes close to I \mathcal{I} I , and as the angle of a touching wedge shrinks. The global admitted set is not characterized in general, and the number of conditions forced is the rank of the system of part (1), not the sum of per-line counts.
Three consequences follow. For the focal length alone, one frame determines it when the edge-on line of a direction tilted out of the image plane passes through the image (Theorem 21 ), and a junction bounds it from above exactly when its vertex lies in a region bounded by circles whose diameters join pairs of vanishing points (Theorem 20 ). Theorem 23 treats focal length and principal point together. Several frames, such as buildings at different angles or different images, determine a general camera exactly when their visible directions do not all lie in the union of a plane and its normal (Theorem 17 ); this is the junction form of a familiar critical configuration of self-calibration [31 , 32 , 33 , 34 ] .
Expressed through vanishing points, the statements about frames are classical: orthogonal vanishing points impose linear conditions on the image of the absolute conic [35 , 36 ] . The novelty is that junctions reach part of this information without locating any vanishing point and without knowing any two lines to be parallel. This is also the practical motivation: a cluttered room or a close view supplies junctions with short edges but no line family long enough to locate a vanishing point. On the one real camera tested, which is nearly level and has an ordinary field of view, junctions yield a near-tight lower bound on the focal length but not an estimate, and long line families, where they exist, remain the better route (Online Resource 1, Sect. S12). The real junctions are built from segments labeled by Manhattan direction, whereas the per-junction program requires no such labels.
Contributions.
Table 1 summarizes the results by camera model. The new ones are the cone and interval of one junction (Theorems 4 and 6 ); certified bounds, and their robustness to noise, non-right angles and lens distortion (Theorem 12; Online Resource 1, Sect. S6); the cameras that the junctions of one structure reject (Theorem 14 ); the region in which a junction bounds the focal length, and when one structure determines it (Theorems 20 and 21 ); the results for several structures and for an unknown principal point (Theorems 17 and 23 ); and calibration as a convex program (Theorem 24). Of these, the central ones are the cone of Theorem 4 , the certified bounds of Theorem 12, the region of Theorem 20 in which a junction bounds the focal length from above, and the identifiability condition of Theorem 21 . Two classical results are restated in junction form because the analysis uses them: the right-angle condition, which rests on the angle between two planes [35 ] (Theorem 3), and the cameras that one structure cannot tell apart (Theorem 16).
Table 1. What junctions reveal about each camera model, with the results that prove it. A frame is the set of corners of one rectilinear structure, whose edges share three perpendicular directions. “Determined” means that every wrong value is rejected by some junction
Organization.
§ 2 restates the single-corner result of Kanatani [6 ] , for a calibrated camera, in the vector form used throughout. § 3 derives the right-angle condition for an arbitrary camera, § 4 describes the cameras that one junction admits, and § 5 establishes what the junctions of rectilinear structures determine. § 6 tests these predictions, and § 7 summarizes the results and the open questions. Online Resource 1 collects the derivations, experiments and numerical checks that the article cites by section; Table 2 lists the notation.
Table 2. Principal notation. Image coordinates are centered on the principal point wherever it is taken as known
The single corner, restated
This section restates Kanatani [6 Theorem 4] to fix the notation and the sign condition on which the rest of the paper builds.
Setup
A trihedral right-angle corner is a point P P P with three unit edge directions d 1 , d 2 , d 3 \mathbf{d}_1, \mathbf{d}_2, \mathbf{d}_3 d 1 , d 2 , d 3 , satisfying d i ⋅ d j = 0 \mathbf{d}_i \cdot\mathbf{d}_j = 0 d i ⋅ d j = 0 for i ≠ j i \ne j i = j . A pinhole camera with intrinsic matrix K K K and center O O O at the origin images P P P at c \mathbf{c} c and maps each edge onto an image line l i \mathbf{l}_i l i through c \mathbf{c} c . Together with O O O , each l i \mathbf{l}_i l i spans an interpretation plane Π i \Pi_i Π i [3 ] , whose normal in camera coordinates is n i = K − T l i \mathbf{n}_i = K^{-\mathsf{T}}\mathbf{l}_i n i = K − T l i , and the edge d i \mathbf{d}_i d i lies in Π i \Pi_i Π i . Because the three lines pass through the same image point, the ray r = K − 1 c \mathbf{r} = K^{-1}\mathbf{c} r = K − 1 c lies in all three planes (Figure 1 ); this shared ray is what the rest of the paper exploits.
Figure 1. Corner geometry. The corner P P P has unit edge directions d i \mathbf{d}_i d i , and each image line l i \mathbf{l}_i l i through the junction c \mathbf{c} c pins its edge to the interpretation plane Π i \Pi_i Π i through the camera center O O O , with normal n i \mathbf{n}_i n i . The dashed viewing ray r \mathbf{r} r lies in all three planes (Π 1 \Pi_1 Π 1 and Π 2 \Pi_2 Π 2 are drawn lighter), and t 3 \mathbf{t}_3 t 3 is the direction in Π 3 \Pi_3 Π 3 perpendicular to the ray. The image plane is perpendicular to the optical axis (dash-dotted) and centered on the principal point, so the junction lies off center, as in a real image. The camera has unit focal length, so for each edge d i ⊥ n i \mathbf{d}_i \perp\mathbf{n}_i d i ⊥ n i for each edge and d 1 ⋅ d 2 = d 2 ⋅ d 3 = d 3 ⋅ d 1 = 0 \mathbf{d}_1 \cdot\mathbf{d}_2 = \mathbf{d}_2 \cdot\mathbf{d}_3 = \mathbf{d}_3 \cdot\mathbf{d}_1 = 0 d 1 ⋅ d 2 = d 2 ⋅ d 3 = d 3 ⋅ d 1 = 0
Let t i = n i × r \mathbf{t}_i = \mathbf{n}_i \times\mathbf{r} t i = n i × r , the direction in Π i \Pi_i Π i perpendicular to the ray. Then { r , t i } \{\mathbf{r}, \mathbf{t}_i\} { r , t i } span Π i \Pi_i Π i , and each edge decomposes into a component along the ray and one across it:
d i = α i r + β i t i . (1) \mathbf{d}_i = \alpha_i \mathbf{r} + \beta_i \mathbf{t}_i. \tag*{(1)} d i = α i r + β i t i . (1)
The coefficient α i \alpha_i α i measures how the edge moves along the viewing ray, toward or away from the camera, and β i \beta_i β i how it moves across the ray. The three t i \mathbf{t}_i t i lie in the plane perpendicular to r \mathbf{r} r , and the angles between them are those a camera would see if it were rotated to look straight at the corner, the canonical view . This is Kanatani’s standard transformation, written as a change of basis.
Orientation convention.
We write each line as l i = ( a i , b i , e i ) \mathbf{l}_i=(a_i,b_i,e_i) l i = ( a i , b i , e i ) in centered pixel coordinates, with a i 2 + b i 2 = 1 a_i^2+b_i^2=1 a i 2 + b i 2 = 1 and the sign chosen so that the observed half-edge leaves c \mathbf{c} c in the image direction ( b i , − a i ) (b_i,-a_i) ( b i , − a i ) . This choice makes t i \mathbf{t}_i t i point along the observed half-edge for every f f f : for K = diag ( f , f , 1 ) K=\operatorname{diag}(f,f,1) K = diag ( f , f , 1 ) and c = ( u , v , 1 ) \mathbf{c}=(u,v,1) c = ( u , v , 1 ) , the derivative of the projection along t i \mathbf{t}_i t i at c \mathbf{c} c is ( f 2 + v 2 ) ( b i , − a i ) / P z (f^2+v^2)(b_i,-a_i)/P_z ( f 2 + v 2 ) ( b i , − a i ) / P z , a positive multiple of the observed direction, where P z P_z P z is the depth of P P P . The convention only fixes names. Admissibility, defined in § 2.3 , does not depend on it, since reversing t i \mathbf{t}_i t i changes the sign of two of the products g i j g_{ij} g ij introduced below; what the convention fixes are the fork and arrow labels, and which of the two mirror-image solutions of § 2.4 is called which.
Closed form
Recovering the corner amounts to recovering, for each edge, the ratio k i = α i / β i k_i=\alpha_i/\beta_i k i = α i / β i of its motion along the ray to its motion across it. With g i j = t i ⋅ t j g_{ij}=\mathbf{t}_i\cdot\mathbf{t}_j g ij = t i ⋅ t j , the orthogonality of two edges gives, since r ⊥ t i \mathbf{r}\perp\mathbf{t}_i r ⊥ t i ,
d i ⋅ d j = α i α j ∥ r ∥ 2 + β i β j g i j = 0 ⇒ k i k j = − g i j ∥ r ∥ 2 . (2) \mathbf{d}_i\cdot\mathbf{d}_j=\alpha_i\alpha_j\lVert\mathbf{r}\rVert^2+\beta_i\beta_jg_{ij}=0
\qquad\Rightarrow\qquad
k_ik_j=-\frac{g_{ij}}{\lVert\mathbf{r}\rVert^2}. \tag*{(2)} d i ⋅ d j = α i α j ∥ r ∥ 2 + β i β j g ij = 0 ⇒ k i k j = − ∥ r ∥ 2 g ij . (2)
Each pair of edges thus fixes the product of two ratios. The three such equations in three unknowns imply
k 1 2 = − g 12 g 31 g 23 ∥ r ∥ 2 , k 2 2 = − g 12 g 23 g 31 ∥ r ∥ 2 , k 3 2 = − g 23 g 31 g 12 ∥ r ∥ 2 . (3) k_1^2=-\frac{g_{12}g_{31}}{g_{23}\lVert\mathbf{r}\rVert^2},
\qquad
k_2^2=-\frac{g_{12}g_{23}}{g_{31}\lVert\mathbf{r}\rVert^2},
\qquad
k_3^2=-\frac{g_{23}g_{31}}{g_{12}\lVert\mathbf{r}\rVert^2}. \tag*{(3)} k 1 2 = − g 23 ∥ r ∥ 2 g 12 g 31 , k 2 2 = − g 31 ∥ r ∥ 2 g 12 g 23 , k 3 2 = − g 12 ∥ r ∥ 2 g 23 g 31 . (3)
which is equation (7.3) of Kanatani [6 ] in vector form. The products fix the relative signs of the k i k_i k i , so the only remaining freedom is a global sign, and the edges are d i = ( k i r + t i ) / ∥ k i r + t i ∥ \mathbf{d}_i=(k_i\mathbf{r}+\mathbf{t}_i)/\lVert k_i\mathbf{r}+\mathbf{t}_i\rVert d i = ( k i r + t i ) / ∥ k i r + t i ∥ .
The sign condition
The closed form exists only for some junctions, because the right sides of (3) must be positive. That condition is the subject of the rest of the paper, so we state it formally.
Definition 1 (Junction; admissibility) A junction is a point c c c of the image together with three distinct image lines l 1 , l 2 , l 3 l_1,l_2,l_3 l 1 , l 2 , l 3 through it. A camera K K K admits the junction if the junction is the image under K K K of a right-angle corner, that is, if there are mutually orthogonal directions d 1 , d 2 , d 3 d_1,d_2,d_3 d 1 , d 2 , d 3 with d i d_i d i in the interpretation plane Π i \Pi_i Π i of l i l_i l i and not along the viewing ray. We then also say that the junction is admissible under K K K , or has a right-angle interpretation under K K K . Throughout, K K K is upper triangular with positive diagonal and K 33 = 1 K_{33}=1 K 33 = 1 ; points and lines of the image are vectors of R 3 \mathbb{R}^{3} R 3 determined up to a nonzero factor, and admissibility does not depend on the factors chosen.
Lemma 2 (Sign condition) A camera admits a junction if and only if the quantities g i j = t i ⋅ t j g_{ij}=t_i\cdot t_j g ij = t i ⋅ t j of § 2.2 satisfy
g 12 g 23 g 31 < 0 , (4) g_{12}g_{23}g_{31}<0, \tag*{(4)} g 12 g 23 g 31 < 0 , (4) and the corner is then determined up to the global sign of the ratios ( k 1 , k 2 , k 3 ) (k_1,k_2,k_3) ( k 1 , k 2 , k 3 ) of § 2.2 .
Proof. Since n i ≠ 0 n_i\ne0 n i = 0 and n i ⋅ r = l i ⋅ c = 0 n_i\cdot r=l_i\cdot c=0 n i ⋅ r = l i ⋅ c = 0 , the vector t i = n i × r t_i=n_i\times r t i = n i × r is nonzero, so r r r and t i t_i t i span Π i \Pi_i Π i , and every direction of Π i \Pi_i Π i off the ray is a multiple of k i r + t i k_i r+t_i k i r + t i ; admissibility is therefore (2) for the three pairs. Their product gives ( k 1 k 2 k 3 ) 2 ∥ r ∥ 6 = − g 12 g 23 g 31 (k_1k_2k_3)^2\lVert r\rVert^6=-g_{12}g_{23}g_{31} ( k 1 k 2 k 3 ) 2 ∥ r ∥ 6 = − g 12 g 23 g 31 , and no g i j g_{ij} g ij vanishes: otherwise k i k j = 0 k_i k_j=0 k i k j = 0 , so k i = 0 k_i=0 k i = 0 , so t i t_i t i is orthogonal to the other two t t t ’s in the plane perpendicular to the ray, and their image lines coincide. Conversely, under (4) the right sides of (3) are positive, and each choice of sign for k 1 k_1 k 1 fixes k 2 k_2 k 2 and k 3 k_3 k 3 through (2) , which determines the products k i k j k_i k_j k i k j . □ \square □
Since g i j g_{ij} g ij is a positive multiple of the cosine of the angle between edges i i i and j j j in the canonical view, the condition requires an odd number of those angles to be obtuse: all three, as in the fork, or exactly one, as in the arrow (Figure 2 ). This is the fork-or-arrow rule [5 , 6 , 8 ] , applied to the canonical angles rather than to the raw image angles, from which they differ away from the principal point. For a junction away from the principal point, the canonical view is not the actual image: it is the view after turning the camera about its center until the vertex lies on the principal ray, and the canonical angles differ from the raw ones. Because the canonical view depends on K K K , so does the test; § 4 turns this dependence into a constraint on the camera.
Figure 2. Junction types, drawn as a camera would see them if rotated to look straight at the vertex (the canonical view). Each label is the angle between two edges at the vertex, at most 180°. A junction is the image of a right-angle corner exactly when an odd number of these three angles are obtuse: (a) the fork, with three; (b) the arrow, with one; (c) two, which no right-angle corner produces
Two configurations are degenerate. If g i j = 0 g_{ij}=0 g ij = 0 , the third edge, the one other than i i i and j j j , lies along the ray and projects to a point; if two edges lie on one image line, their interpretation planes coincide and the system loses rank. We call a corner nondegenerate if neither occurs.
The mirror
The global flip ( k 1 , k 2 , k 3 ) ↦ − ( k 1 , k 2 , k 3 ) (k_1,k_2,k_3) \mapsto-(k_1,k_2,k_3) ( k 1 , k 2 , k 3 ) ↦ − ( k 1 , k 2 , k 3 ) reflects each d i d_i d i in the plane through O O O perpendicular to r r r , so the two solutions are a corner and its mirror image. This is the Necker ambiguity [6 Theorem 4] : for a fork, one solution has all edges receding from the camera (α i > 0 \alpha_i>0 α i > 0 , a box seen from outside) and the other has all edges approaching (a room corner seen from inside). Online Resource 1 (Sects. S2 and S4) shows when a second corner resolves the ambiguity, and what opacity adds.
The right-angle condition for an uncalibrated camera
Every result in § 2 , like the earlier work on single corners cited in § 1 , assumes K K K known. The condition (4) for a junction to be the image of a right-angle corner involves K K K through the ray, the normals and the directions t i t_i t i , and at first sight it depends on the camera in a complicated way. This section shows that the dependence is in fact simple: for any calibration matrix, it is linear, pair by pair, in ω ∗ = K K T \omega^*=KK^{\mathsf T} ω ∗ = K K T .
Three planes through one ray
Write n i = K T l i n_i=K^{\mathsf T}l_i n i = K T l i for the normal of the interpretation plane of the image line l i l_i l i , and r = K − 1 c r=K^{-1}c r = K − 1 c for the viewing ray of the junction c c c . Then n i ⋅ r = l i T K K − 1 c = l i ⋅ c = 0 n_i\cdot r=l_i^{\mathsf T}KK^{-1}c=l_i\cdot c=0 n i ⋅ r = l i T K K − 1 c = l i ⋅ c = 0 because the line passes through the junction: whatever K K K is, each interpretation plane contains the ray. Everything that follows rests on this observation, and it simplifies the condition at once. By the identity ( x × z ) ⋅ ( y × z ) = ( x ⋅ y ) ∥ z ∥ 2 − ( x ⋅ z ) ( y ⋅ z ) (x\times z)\cdot(y\times z)=(x\cdot y)\lVert z\rVert^2-(x\cdot z)(y\cdot z) ( x × z ) ⋅ ( y × z ) = ( x ⋅ y ) ∥ z ∥ 2 − ( x ⋅ z ) ( y ⋅ z ) , valid for all x , y , z ∈ R 3 x,y,z\in\mathbb{R}^3 x , y , z ∈ R 3 , the cross products reduce to scalar products of the normals:
g i j = t i ⋅ t j = ( n i × r ) ⋅ ( n j × r ) = ∥ r ∥ 2 ( n i ⋅ n j ) (5) g_{ij}=t_i\cdot t_j=(n_i\times r)\cdot(n_j\times r)=\lVert r\rVert^2(n_i\cdot n_j) \tag*{(5)} g ij = t i ⋅ t j = ( n i × r ) ⋅ ( n j × r ) = ∥ r ∥ 2 ( n i ⋅ n j ) (5)
and since ∥ r ∥ 2 > 0 \lVert r\rVert^2>0 ∥ r ∥ 2 > 0 , the sign condition (4) becomes
( n 1 ⋅ n 2 ) ( n 2 ⋅ n 3 ) ( n 3 ⋅ n 1 ) < 0 (6) (n_1\cdot n_2)(n_2\cdot n_3)(n_3\cdot n_1)<0 \tag*{(6)} ( n 1 ⋅ n 2 ) ( n 2 ⋅ n 3 ) ( n 3 ⋅ n 1 ) < 0 (6)
a statement about the three interpretation planes alone: the junction admits a right-angle interpretation exactly when an odd number of the three products n i ⋅ n j n_i\cdot n_j n i ⋅ n j are negative, a parity that does not depend on the signs chosen for the normals. To express this through the image lines, note that
n i ⋅ n j = l i T ω ∗ l j , ω ∗ = K K T (7) n_i\cdot n_j=l_i^{\mathsf T}\omega^*l_j,\qquad\omega^*=KK^{\mathsf T} \tag*{(7)} n i ⋅ n j = l i T ω ∗ l j , ω ∗ = K K T (7)
the second relation defining the dual image of the absolute conic, whose use for the angle between two planes is classical [35 , 37 ] . Because K K K is upper triangular with positive diagonal, ω ∗ \omega^* ω ∗ determines it, so working with ω ∗ \omega^* ω ∗ loses nothing. Substituting gives the general statement.
Proposition 3 (General form) For any calibration matrix K K K , a junction of three concurrent image lines admits a right-angle interpretation if and only if
( l 1 T ω ∗ l 2 ) ( l 2 T ω ∗ l 3 ) ( l 3 T ω ∗ l 1 ) < 0 (l_1^{\mathsf T}\omega^*l_2)(l_2^{\mathsf T}\omega^*l_3)(l_3^{\mathsf T}\omega^*l_1)<0 ( l 1 T ω ∗ l 2 ) ( l 2 T ω ∗ l 3 ) ( l 3 T ω ∗ l 1 ) < 0 a product of three forms each linear in the six entries of ω ∗ \omega^* ω ∗ .
Proof. By Theorem 2, (5) and (7) .
A junction therefore imposes one inequality on the camera, and its meaning is geometric: each factor changes sign exactly when the two interpretation planes of its pair become perpendicular , so these three conditions bound the cameras that admit the junction. The vertex itself need not be visible: the argument uses only the concurrency of the three lines, so a corner whose vertex is occluded, or lies outside the image, can still be used by intersecting its three edges.
Why three edges, and why right angles
Why three edges.
Two edges are not enough, and Theorem 3 explains why: a pair contributes a single form, and a single form imposes no constraint. Indeed, every camera admits an L-junction as the image of a right angle. In the notation of Theorem 2 , the directions k 1 r + t 1 k_1 r + t_1 k 1 r + t 1 and k 2 r + t 2 k_2 r + t_2 k 2 r + t 2 are orthogonal exactly when k 1 k 2 ∥ r ∥ 2 = − g 12 k_1 k_2 \lVert r \rVert^2 = -g_{12} k 1 k 2 ∥ r ∥ 2 = − g 12 , and this equation has the solutions k 1 ≠ 0 k_1 \ne0 k 1 = 0 arbitrary and k 2 = − g 12 / ( k 1 ∥ r ∥ 2 ) k_2 = -g_{12}/(k_1 \lVert r \rVert^2) k 2 = − g 12 / ( k 1 ∥ r ∥ 2 ) for every camera. A constraint first appears with the product over three pairs in (6) . Concurrency is equally essential: it makes n i ⋅ r = 0 n_i \cdot r = 0 n i ⋅ r = 0 , and hence the forms linear. Three nonconcurrent lines pose a different problem, treated in Online Resource 1 (Sect. S3).
Why right angles.
For a prescribed scene angle other than 90 ∘ 90^\circ 9 0 ∘ , the normalizations ∥ t i ∥ 2 \lVert t_i \rVert^2 ∥ t i ∥ 2 survive in the pairwise condition. Since they depend nonlinearly on f f f , the linearity in f 2 f^2 f 2 is lost, and the admissible set of a trihedral with known non-right angles is not characterized here (Online Resource 1, Sect. S14). Small departures from 90 ∘ 90^\circ 9 0 ∘ are analyzed in Online Resource 1 (Sect. S6).
One junction
A single junction imposes one inequality, that of Theorem 3 . This section describes the set of cameras that satisfy it: a convex cone in general (§ 4.1 ); an interval in closed form when the focal length is the only unknown (§ 4.2 ); two further camera models, with an unknown aspect ratio or principal point (§ 4.3 ); and certified bounds under measurement error and model error (§ 4.4 ).
The admissible cameras form a convex cone
Consider first a general camera. The three forms of Theorem 3 are linear in ω ∗ \omega^* ω ∗ , but the condition that their product be negative does not by itself define a convex set; positive-definiteness is what makes it one. The cameras that admit a junction form a cone whose generators can be read from the junction.
Theorem 4 (The admissible cameras: a simplicial cone of forms) Let a junction consist of three distinct image lines l 1 , l 2 , l 3 l_1,l_2,l_3 l 1 , l 2 , l 3 concurrent at c c c , and put m k = c × l k m_k = c \times l_k m k = c × l k . A positive-definite ω ∗ \omega^* ω ∗ admits a right-angle interpretation of the junction if and only if its restriction to the plane c ⊥ = { χ : χ ⋅ c = 0 } c^\perp= \{\chi: \chi\cdot c = 0\} c ⊥ = { χ : χ ⋅ c = 0 } of lines through the junction is a positive combination of the three rank-one forms ( m k ⋅ χ ) 2 (m_k \cdot\chi)^2 ( m k ⋅ χ ) 2 , that is,
χ T ω ∗ χ = ∑ k = 1 3 ν k ( m k ⋅ χ ) 2 for all χ ⊥ c (8) \chi^\mathsf{T}\omega^*\chi= \sum_{k=1}^{3}\nu_k (m_k\cdot\chi)^2 \quad\text{for all } \chi\perp c \tag*{(8)} χ T ω ∗ χ = k = 1 ∑ 3 ν k ( m k ⋅ χ ) 2 for all χ ⊥ c (8) with ν 1 , ν 2 , ν 3 > 0 \nu_1,\nu_2,\nu_3 > 0 ν 1 , ν 2 , ν 3 > 0 . Equivalently, writing Δ k i = det ( c , l k , l i ) \Delta_{ki} = \det(c,l_k,l_i) Δ k i = det ( c , l k , l i ) and { i , j , k } = { 1 , 2 , 3 } \{i,j,k\} = \{1,2,3\} { i , j , k } = { 1 , 2 , 3 } ,
ν k = l i T ω ∗ l j Δ k i Δ k j > 0 for k = 1 , 2 , 3. (9) \nu_k = \frac{l_i^\mathsf{T}\omega^*l_j}{\Delta_{ki}\Delta_{kj}} > 0 \quad\text{for } k=1,2,3. \tag*{(9)} ν k = Δ k i Δ k j l i T ω ∗ l j > 0 for k = 1 , 2 , 3. (9) The admissible set is therefore a convex cone, and it is never empty. It is one cell of the arrangement of the three forms l i T ω ∗ l j l_i^\mathsf{T}\omega^*l_j l i T ω ∗ l j , intersected with the cone of positive-definite matrices, and on it each form has the sign of Δ k i Δ k j \Delta_{ki}\Delta_{kj} Δ k i Δ k j , which is determined by the junction alone, without reference to K K K .
Proof Each l i l_i l i passes through the junction, so l i ⋅ c = 0 l_i \cdot c = 0 l i ⋅ c = 0 and all three lie in the plane c ⊥ c^\perp c ⊥ . On that plane the form q k ( χ ) = ( m k ⋅ χ ) 2 q_k(\chi) = (m_k \cdot\chi)^2 q k ( χ ) = ( m k ⋅ χ ) 2 has rank one, and its polarization satisfies q k ( l i , l j ) = ( m k ⋅ l i ) ( m k ⋅ l j ) = Δ k i Δ k j q_k(l_i,l_j) = (m_k \cdot l_i)(m_k \cdot l_j) = \Delta_{ki}\Delta_{kj} q k ( l i , l j ) = ( m k ⋅ l i ) ( m k ⋅ l j ) = Δ k i Δ k j , because ( c × l k ) ⋅ l i = det ( c , l k , l i ) (c \times l_k)\cdot l_i = \det(c,l_k,l_i) ( c × l k ) ⋅ l i = det ( c , l k , l i ) . This vanishes if i i i or j j j equals k k k and not otherwise, the three lines being distinct. The q k q_k q k are therefore linearly independent, since evaluating a relation ∑ k α k q k = 0 \sum_k \alpha_k q_k = 0 ∑ k α k q k = 0 at ( l i , l j ) (l_i,l_j) ( l i , l j ) leaves α k Δ k i Δ k j = 0 \alpha_k\Delta_{ki}\Delta_{kj}=0 α k Δ k i Δ k j = 0 . The quadratic forms on a plane make up a space of dimension three, so the restriction of ω ∗ \omega^* ω ∗ to c ⊥ c^\perp c ⊥ is ∑ k ν k q k \sum_k \nu_k q_k ∑ k ν k q k for unique real ν k \nu_k ν k , and evaluating at ( l i , l j ) (l_i,l_j) ( l i , l j ) gives l i T ω ∗ l j = ν k Δ k i Δ k j l_i^\mathsf{T}\omega^*l_j = \nu_k\Delta_{ki}\Delta_{kj} l i T ω ∗ l j = ν k Δ k i Δ k j .
Since Δ k i = − Δ i k \Delta_{ki} = -\Delta_{ik} Δ k i = − Δ ik , the product of the three forms is
∏ k ν k Δ k i Δ k j = − ν 1 ν 2 ν 3 ( Δ 12 Δ 23 Δ 31 ) 2 , \prod_k \nu_k\Delta_{ki}\Delta_{kj} = -\nu_1\nu_2\nu_3(\Delta_{12}\Delta_{23}\Delta_{31})^2, k ∏ ν k Δ k i Δ k j = − ν 1 ν 2 ν 3 ( Δ 12 Δ 23 Δ 31 ) 2 , so by Theorem 3 the junction is admissible exactly when ν 1 ν 2 ν 3 > 0 \nu_1\nu_2\nu_3 > 0 ν 1 ν 2 ν 3 > 0 : all three positive, or exactly two
negative. The second cannot happen when ω ∗ \omega^{*} ω ∗ is positive-definite, because l k T ω ∗ l k = ν i Δ i k 2 + ν j Δ j k 2 \mathbf{l}_k^{\mathsf{T}}\omega^{*}\mathbf{l}_k=\nu_i\Delta_{ik}^{2}+\nu_j\Delta_{jk}^{2} l k T ω ∗ l k = ν i Δ ik 2 + ν j Δ j k 2 must be positive for each k k k . The junction is therefore admissible exactly when every ν k \nu_k ν k is positive, which is (8) and (9) .
The conditions (9) are three linear inequalities on ω ∗ \omega^{*} ω ∗ whose signs are fixed by the junction, so the admissible set is one cell of the arrangement, intersected with the positive-definite cone, and it is convex. It is not empty: any positive ν k \nu_k ν k give a positive-definite form on c ⊥ \mathbf{c}^{\perp} c ⊥ , because the functionals m k ⋅ χ \mathbf{m}_k\cdot\chi m k ⋅ χ have no common zero there, and every positive-definite form on c ⊥ \mathbf{c}^{\perp} c ⊥ arises from a valid camera, by extending it to a positive-definite ω ∗ \omega^{*} ω ∗ on R 3 \mathbb{R}^{3} R 3 , rescaling so that ω 33 ∗ = 1 \omega^{*}_{33}=1 ω 33 ∗ = 1 , and factoring ω ∗ = K K T \omega^{*}=K K^{\mathsf{T}} ω ∗ = K K T with K K K upper triangular. □
The vectors m k \mathbf{m}_k m k are image quantities: for a line χ \chi χ through the junction, m k ⋅ χ = det ( c , l k , χ ) \mathbf{m}_k\cdot\chi=\det(\mathbf{c},\mathbf{l}_k,\chi) m k ⋅ χ = det ( c , l k , χ ) vanishes exactly when χ = l k \chi=\mathbf{l}_k χ = l k , so ( m k ⋅ χ ) 2 (\mathbf{m}_k\cdot\chi)^2 ( m k ⋅ χ ) 2 is the form that vanishes on the k k k -th edge line. The theorem constrains only the restriction of ω ∗ \omega^{*} ω ∗ to c ⊥ \mathbf{c}^{\perp} c ⊥ : the simplicial cone is one of restricted forms, and the admitted ω ∗ \omega^{*} ω ∗ are all the positive-definite extensions of its members.
The cone has a simple geometric picture. Taken up to scale, the positive-definite forms on the plane c ⊥ \mathbf{c}^{\perp} c ⊥ form a disc, the Beltrami–Klein model of the hyperbolic plane, whose boundary circle consists of the rank-one forms. The cameras that a junction admits form the ideal triangle with vertices q 1 q_1 q 1 , q 2 q_2 q 2 , q 3 q_3 q 3 , one for each image line.
Remark 5 (All junctions at one vertex are alike) For any two junctions with the same vertex c \mathbf{c} c , an invertible linear map of c ⊥ \mathbf{c}^{\perp} c ⊥ carries the forms of the cameras admitted by one onto those admitted by the other. In the Beltrami–Klein model formed by the positive-definite forms on c ⊥ \mathbf{c}^{\perp} c ⊥ up to scale, the admitted forms are an ideal triangle, and any two such triangles are congruent.
Proof By Theorem 4 the admitted forms are the positive combinations of the ( m k ⋅ χ ) 2 (\mathbf{m}_k\cdot\chi)^2 ( m k ⋅ χ ) 2 , and the m k \mathbf{m}_k m k restrict to pairwise independent functionals on the plane c ⊥ \mathbf{c}^{\perp} c ⊥ , so there m 3 = a m 1 + b m 2 \mathbf{m}_3=a\mathbf{m}_1+b\mathbf{m}_2 m 3 = a m 1 + b m 2 with a b ≠ 0 ab\ne0 ab = 0 , and likewise m 3 ′ = a ′ m 1 ′ + b ′ m 2 ′ \mathbf{m}'_3=a'\mathbf{m}'_1+b'\mathbf{m}'_2 m 3 ′ = a ′ m 1 ′ + b ′ m 2 ′ . The map A A A with A T m 1 ′ = ( a / a ′ ) m 1 A^{\mathsf{T}}\mathbf{m}'_1=(a/a')\mathbf{m}_1 A T m 1 ′ = ( a / a ′ ) m 1 and A T m 2 ′ = ( b / b ′ ) m 2 A^{\mathsf{T}}\mathbf{m}'_2=(b/b')\mathbf{m}_2 A T m 2 ′ = ( b / b ′ ) m 2 then sends m 3 ′ \mathbf{m}'_3 m 3 ′ to m 3 \mathbf{m}_3 m 3 , so each ( m k ′ ⋅ A χ ) 2 (\mathbf{m}'_k\cdot A\chi)^2 ( m k ′ ⋅ A χ ) 2 is a positive multiple of ( m k ⋅ χ ) 2 (\mathbf{m}_k\cdot\chi)^2 ( m k ⋅ χ ) 2 . In the Beltrami–Klein disc of positive-definite forms up to scale, bounded by the rank-one forms, the admitted forms are the ideal triangle spanned by three of them, and linear maps act as hyperbolic isometries. □
Junctions therefore differ not in the shape of their admitted sets but in where those sets lie relative to the cameras of interest, for instance the cameras of Theorem 6 .
Two results below are special cases of this theorem, obtained by restricting the camera to a smaller family. Theorem 6 restricts it to the cameras ω ∗ = diag ( f 2 , f 2 , 1 ) \omega^{*}=\operatorname{diag}(f^2,f^2,1) ω ∗ = diag ( f 2 , f 2 , 1 ) , a line in ω ∗ \omega^{*} ω ∗ -space, which meets the convex set in an interval; the unknown aspect ratio restricts it to diag ( X , Y , 1 ) \operatorname{diag}(X,Y,1) diag ( X , Y , 1 ) , a plane, which meets it in a convex region.
The theorem has two further consequences. First, its nonemptiness clause states that every junction of three distinct concurrent lines is the image of a right-angle corner under some camera. The test F = ∅ F=\varnothing F = ∅ of Theorem 6 rejects junctions only because the camera model there is restricted to square pixels, zero skew and a known principal point; for a general camera, no junction is ever excluded.
Second, because each junction’s cell is known from the junction alone, self-calibration from junctions is a fully specified convex feasibility problem; § 5.5 solves it.
A single unknown focal length
Suppose now that pixels are square, skew is zero and the principal point is known, so that K = diag ( f , f , 1 ) K=\operatorname{diag}(f,f,1) K = diag ( f , f , 1 ) has the single unknown f f f . What does one corner say about it? It cannot determine f f f , since four unknowns, f f f and the three ratios k i k_i k i , face three orthogonality equations. Not every f f f is admissible, however, and the set of admissible values is exactly what one corner says about f f f .
With the convention of § 2.1 , r = ( u / f , v / f , 1 ) \mathbf{r}=(u/f,v/f,1) r = ( u / f , v / f , 1 ) and n i = ( f a i , f b i , e i ) \mathbf{n}_i=(fa_i,fb_i,e_i) n i = ( f a i , f b i , e i ) . Writing x = f 2 x=f^2 x = f 2 and ρ = u 2 + v 2 \rho=\sqrt{u^2+v^2} ρ = u 2 + v 2 for the distance from the principal point to the junction, the two factors of (5) become elementary: ∥ r ∥ 2 = ( x + ρ 2 ) / x \lVert\mathbf{r}\rVert^2=(x+\rho^2)/x ∥ r ∥ 2 = ( x + ρ 2 ) / x and n i ⋅ n j = A i j x + e i e j \mathbf{n}_i\cdot\mathbf{n}_j=A_{ij}x+e_ie_j n i ⋅ n j = A ij x + e i e j with A i j = a i a j + b i b j A_{ij}=a_ia_j+b_ib_j A ij = a i a j + b i b j . Each n i ⋅ n j \mathbf{n}_i\cdot\mathbf{n}_j n i ⋅ n j is linear in f 2 f^2 f 2 , which is why the condition is so simple; the threshold contributed by a pair is the focal length at which its two interpretation planes become perpendicular. Hence
x g i j = ( x + ρ 2 ) ( A i j x + e i e j ) . (10) x g_{ij}=(x+\rho^2)(A_{ij}x+e_ie_j). \tag*{(10)} x g ij = ( x + ρ 2 ) ( A ij x + e i e j ) . (10)
The factor x + ρ 2 x+\rho^2 x + ρ 2 is positive for every x > 0 x>0 x > 0 and common to all three pairs, so it cancels from the sign condition, which reduces to a product of three linear functions of f 2 f^2 f 2 :
L ( x ) = ∏ ( i , j ) ( A i j x + e i e j ) < 0 , (11) L(x)=\prod_{(i,j)}(A_{ij}x+e_ie_j)<0, \tag*{(11)} L ( x ) = ( i , j ) ∏ ( A ij x + e i e j ) < 0 , (11)
the product running over ( 1 , 2 ) , ( 2 , 3 ) , ( 3 , 1 ) (1,2),(2,3),(3,1) ( 1 , 2 ) , ( 2 , 3 ) , ( 3 , 1 ) . Each factor has at most one positive root, x i j = − e i e j / A i j x_{ij}=-e_ie_j/A_{ij} x ij = − e i e j / A ij , so the admissible set has at most three endpoints and can be read off a sign chart.
Angle parameterization.
A change of variables makes every sign in what follows geometric. Recall ρ = u 2 + v 2 \rho=\sqrt{u^2+v^2} ρ = u 2 + v 2 , and let ψ i ∈ ( − π , π ] \psi_i\in(-\pi,\pi] ψ i ∈ ( − π , π ] be the signed angle at the corner from the direction ( u , v ) / ρ (u,v)/\rho ( u , v ) / ρ , pointing away from the principal point, to the observed half-edge direction ( b i , − a i ) (b_i,-a_i) ( b i , − a i ) . Since the line passes through ( u , v ) (u,v) ( u , v ) , e i = − ( a i u + b i v ) e_i=-(a_i u+b_i v) e i = − ( a i u + b i v ) , and ( a i , b i ) (a_i,b_i) ( a i , b i ) is that direction under the quarter turn ( x , y ) ↦ ( − y , x ) (x,y)\mapsto(-y,x) ( x , y ) ↦ ( − y , x ) , so
e i = ρ sin ψ i , A i j = cos ( ψ i − ψ j ) , (12) e_i=\rho\sin\psi_i,\qquad A_{ij}=\cos(\psi_i-\psi_j), \tag*{(12)} e i = ρ sin ψ i , A ij = cos ( ψ i − ψ j ) , (12)
the second identity saying that A i j A_{ij} A ij is the cosine of the raw image angle between half-edges i i i and j j j . Substituting into (11) and writing μ = f 2 / ρ 2 \mu=f^2/\rho^2 μ = f 2 / ρ 2 for the squared focal length in units of ρ 2 \rho^2 ρ 2 , each factor separates into a prefactor and a linear term:
A i j f 2 + e i e j = ρ 2 sin ψ i sin ψ j ( λ i j μ + 1 ) , A_{ij}f^2+e_ie_j=\rho^2\sin\psi_i\sin\psi_j(\lambda_{ij}\mu+1), A ij f 2 + e i e j = ρ 2 sin ψ i sin ψ j ( λ ij μ + 1 ) ,
λ i j = 1 + cot ψ i cot ψ j = cos ( ψ i − ψ j ) sin ψ i sin ψ j . (13) \lambda_{ij}=1+\cot\psi_i\cot\psi_j
=\frac{\cos(\psi_i-\psi_j)}{\sin\psi_i\sin\psi_j}. \tag*{(13)} λ ij = 1 + cot ψ i cot ψ j = sin ψ i sin ψ j cos ( ψ i − ψ j ) . (13)
Over the three pairs the prefactors multiply to ( sin ψ 1 sin ψ 2 sin ψ 3 ) 2 (\sin\psi_1\sin\psi_2\sin\psi_3)^2 ( sin ψ 1 sin ψ 2 sin ψ 3 ) 2 , which is positive when no edge line passes through the principal point, the case treated next. They therefore drop out of the sign condition, which becomes
∏ ( i , j ) ( λ i j μ + 1 ) < 0 , μ = f 2 / ρ 2 . (14) \prod_{(i,j)}(\lambda_{ij}\mu+1)<0,\qquad\mu=f^2/\rho^2. \tag*{(14)} ( i , j ) ∏ ( λ ij μ + 1 ) < 0 , μ = f 2 / ρ 2 . (14)
This form shows two facts. The condition involves the corner only through the three angles ψ i \psi_i ψ i and the single scale ρ \rho ρ , so it constrains f f f only through f / ρ f/\rho f / ρ ; and each factor is positive at μ = 0 \mu=0 μ = 0 , so everything depends on which of the λ i j \lambda_{ij} λ ij are negative.
Theorem 6 (The admissible set of one junction) Let F = { f > 0 : L ( f 2 ) < 0 } F=\{f>0:L(f^2)<0\} F = { f > 0 : L ( f 2 ) < 0 } be the admissible set of one junction .
L ( 0 ) = ( e 1 e 2 e 3 ) 2 ≥ 0 L(0)=(e_1e_2e_3)^2\geq0 L ( 0 ) = ( e 1 e 2 e 3 ) 2 ≥ 0 , with equality if and only if an edge line passes through the principal point. If L ( 0 ) > 0 L(0)>0 L ( 0 ) > 0 , then F F F excludes a neighborhood of 0 0 0 , so that f min : = inf F > 0 f_{\min}:=\inf F>0 f m i n := inf F > 0 whenever F ≠ ∅ F\ne\varnothing F = ∅ ; otherwise F F F may reach down to 0 0 0 (Theorem 9).
As x → ∞ x\to\infty x → ∞ , the sign of L L L is the sign of A 12 A 23 A 31 A_{12}A_{23}A_{31} A 12 A 23 A 31 . If that product is nonzero, F F F is unbounded above if and only if the raw image angles satisfy the orthographic fork-or-arrow rule.
The factor ( i , j ) (i,j) ( i , j ) has a positive root if and only if A i j e i e j < 0 A_{ij}e_ie_j<0 A ij e i e j < 0 , and on F F F the sign pattern of ( g 12 , g 23 , g 31 ) (g_{12},g_{23},g_{31}) ( g 12 , g 23 , g 31 ) is constant.
If no edge line passes through the principal point, let
S = { ( i , j ) : λ i j < 0 } = { ( i , j ) : cot ψ i cot ψ j < − 1 } , S=\{(i,j):\lambda_{ij}<0\}
=\{(i,j):\cot\psi_i\cot\psi_j<-1\}, S = {( i , j ) : λ ij < 0 } = {( i , j ) : cot ψ i cot ψ j < − 1 } , f i j = ρ / − λ i j for ( i , j ) ∈ S . f_{ij}=\rho/\sqrt{-\lambda_{ij}}\qquad\text{for }(i,j)\in S. f ij = ρ / − λ ij for ( i , j ) ∈ S .
Then ∣ S ∣ ≤ 2 |S| \le2 ∣ S ∣ ≤ 2 , and
F = { ∅ , ∣ S ∣ = 0 , ( f i j , ∞ ) , S = { ( i , j ) } , ( min S f i j , max S f i j ) , ∣ S ∣ = 2 , F =
\begin{cases}
\varnothing, & |S|=0,\\
(f_{ij},\infty), & S=\{(i,j)\},\\
(\min_{S} f_{ij},\max_{S} f_{ij}), & |S|=2,
\end{cases} F = ⎩ ⎨ ⎧ ∅ , ( f ij , ∞ ) , ( min S f ij , max S f ij ) , ∣ S ∣ = 0 , S = {( i , j )} , ∣ S ∣ = 2 ,
a single interval with closed-form endpoints.
Proof (1) Set x = 0 x=0 x = 0 in (11) : L ( 0 ) = ∏ e i e j = ( e 1 e 2 e 3 ) 2 L(0)=\prod e_i e_j=(e_1e_2e_3)^2 L ( 0 ) = ∏ e i e j = ( e 1 e 2 e 3 ) 2 , which vanishes only if some e i = 0 e_i=0 e i = 0 , that is, l i l_i l i passes through the principal point (u = v = 0 u=v=0 u = v = 0 forces all three). Continuity then gives L > 0 L>0 L > 0 on some [ 0 , δ ) [0,\delta) [ 0 , δ ) in x = f 2 x=f^2 x = f 2 , so F ∩ ( 0 , δ ) = ∅ F\cap(0,\sqrt{\delta})=\varnothing F ∩ ( 0 , δ ) = ∅ and inf F ≥ δ \inf F\ge\sqrt{\delta} inf F ≥ δ when F ≠ ∅ F\ne\varnothing F = ∅ . (2) Divide by x x x and let x → ∞ x\to\infty x → ∞ . With a i 2 + b i 2 = 1 a_i^2+b_i^2=1 a i 2 + b i 2 = 1 , A i j A_{ij} A ij is the cosine of the raw angle between half-edges i i i and j j j , so L < 0 L<0 L < 0 for large x x x , that is, F F F is unbounded above, exactly when an odd number of the raw angles are obtuse, which is the fork-or-arrow rule. (3) A i j x + e i e j A_{ij}x+e_ie_j A ij x + e i e j has its root at − e i e j / A i j -e_ie_j/A_{ij} − e i e j / A ij , positive exactly when A i j e i e j < 0 A_{ij}e_ie_j<0 A ij e i e j < 0 . For the pattern, g 12 g 23 g 31 g_{12}g_{23}g_{31} g 12 g 23 g 31 is a positive multiple of L ( x ) L(x) L ( x ) by (10) , so a sign change of any g i j g_{ij} g ij within F F F would be a zero of L L L inside F F F . (4) Write τ i = cot ψ i \tau_i=\cot\psi_i τ i = cot ψ i , so λ i j = 1 + τ i τ j \lambda_{ij}=1+\tau_i\tau_j λ ij = 1 + τ i τ j and ( i , j ) ∈ S (i,j)\in S ( i , j ) ∈ S iff τ i τ j < − 1 \tau_i\tau_j<-1 τ i τ j < − 1 . Since ( τ 1 τ 2 ) ( τ 2 τ 3 ) ( τ 3 τ 1 ) = ( τ 1 τ 2 τ 3 ) 2 ≥ 0 (\tau_1\tau_2)(\tau_2\tau_3)(\tau_3\tau_1)=(\tau_1\tau_2\tau_3)^2\ge0 ( τ 1 τ 2 ) ( τ 2 τ 3 ) ( τ 3 τ 1 ) = ( τ 1 τ 2 τ 3 ) 2 ≥ 0 , the three products cannot all be negative, so ∣ S ∣ ≤ 2 |S|\le2 ∣ S ∣ ≤ 2 . Each factor of (14) equals 1 at μ = 0 \mu=0 μ = 0 ; it is negative for some μ > 0 \mu>0 μ > 0 exactly when λ i j < 0 \lambda_{ij}<0 λ ij < 0 , and then for f > f i j f>f_{ij} f > f ij , while a factor with λ i j ≥ 0 \lambda_{ij}\ge0 λ ij ≥ 0 satisfies λ i j μ + 1 ≥ 1 \lambda_{ij}\mu+1\ge1 λ ij μ + 1 ≥ 1 throughout. The product is negative exactly where an odd number of factors are. If ∣ S ∣ = 0 |S|=0 ∣ S ∣ = 0 , every factor is positive and F = ∅ F=\varnothing F = ∅ . If S = { ( i , j ) } S=\{(i,j)\} S = {( i , j )} , that factor is negative precisely for f > f i j f>f_{ij} f > f ij and the others are positive. If ∣ S ∣ = 2 |S|=2 ∣ S ∣ = 2 , the two pairs share an index, say ( i , j ) (i,j) ( i , j ) and ( i , k ) (i,k) ( i , k ) , and their thresholds are distinct, since τ i ≠ 0 \tau_i\ne0 τ i = 0 and λ i j = λ i k \lambda_{ij}=\lambda_{ik} λ ij = λ ik would give cot ψ j = cot ψ k \cot\psi_j=\cot\psi_k cot ψ j = cot ψ k , putting edges j j j and k k k on one image line; writing f a < f b f_a<f_b f a < f b for them, both factors are positive below f a f_a f a , exactly one is negative between, and both are negative above f b f_b f b , so F = ( f a , f b ) F=(f_a,f_b) F = ( f a , f b ) . □
We adopt the convention inf ∅ = + ∞ \inf\varnothing=+\infty inf ∅ = + ∞ . That F F F can be empty reflects the restricted camera model: by Theorem 4 , every junction is admitted by some general camera. That F F F is a single interval also follows from Theorem 4 , restricted to these cameras, and parts (2) and (4) agree, since ∏ A i j \prod A_{ij} ∏ A ij and ∏ λ i j \prod\lambda_{ij} ∏ λ ij differ by a square. Part (2) has a simple reason: as f ′ f' f ′ grows, the rotation to the canonical view shrinks and the canonical angles tend to the raw ones, so large focal lengths are admitted exactly when the raw angles pass the fork-or-arrow rule, the rule of
Kanatani [5 ] for orthographic images. Since only f / ρ f/\rho f / ρ enters, the bounds scale with the junction’s distance from the principal point. Figure 3 shows the intervals of ten junctions and how they combine.
Figure 3. The admissible intervals F F F of Theorem 6 for ten noiseless junctions, each from its own random frame, at a 60° field of view (light bars, one row per junction; an arrow marks an interval unbounded above), and the intersection of the intervals so far (thin dark bars), on a logarithmic axis of f ′ / f f'/f f ′ / f . Every interval contains the true focal length (dashed line). Only two are bounded above, yet the intersection closes on the true value from both sides, here to [ 0.94 f , 1.13 f ] [0.94 f,1.13 f] [ 0.94 f , 1.13 f ]
Corollary 7 (Similarity invariance) F / ρ F/\rho F / ρ depends only on ( ψ 1 , ψ 2 , ψ 3 ) (\psi_1,\psi_2,\psi_3) ( ψ 1 , ψ 2 , ψ 3 ) . Two junctions with the same three angles, at different distances from the principal point, give admissible sets that are scalings of one another by the ratio of their distances. In particular every threshold is proportional to ρ \rho ρ , and the bounds degenerate as ρ → 0 \rho\to0 ρ → 0 ; the relative precision of a junction depends only on its angles ψ i \psi_i ψ i .
Proof By (14) , the condition involves f f f only through μ = f 2 / ρ 2 \mu=f^2/\rho^2 μ = f 2 / ρ 2 , and the corner only through the angles ψ i \psi_i ψ i .
The threshold also has a direct expression in the raw image angles. Since − λ i j = − cos ( ψ i − ψ j ) / ( sin ψ i sin ψ j ) -\lambda_{ij}=-\cos(\psi_i-\psi_j)/(\sin\psi_i\sin\psi_j) − λ ij = − cos ( ψ i − ψ j ) / ( sin ψ i sin ψ j ) ,
f i j 2 = − ρ 2 sin ψ i sin ψ j cos ( ψ i − ψ j ) (15) f_{ij}^2=\frac{-\rho^2\sin\psi_i\sin\psi_j}{\cos(\psi_i-\psi_j)} \tag*{(15)} f ij 2 = cos ( ψ i − ψ j ) − ρ 2 sin ψ i sin ψ j (15)
so a pair contributes a threshold exactly when sin ψ i sin ψ j \sin\psi_i\sin\psi_j sin ψ i sin ψ j and cos ( ψ i − ψ j ) \cos(\psi_i-\psi_j) cos ( ψ i − ψ j ) have opposite signs. Both signs can be read in the image: the first says whether the two half-edges leave the corner on the same side of the line through the principal point and the vertex, and the second is the cosine of their raw image angle.
Theorem 6 also supplies a test at no cost: F = ∅ F=\varnothing F = ∅ means that no focal length makes the junction a right-angle corner for a camera of this model. It is not a junction detector, because junctions in a frame pass it wherever they lie (Theorem 8); Online Resource 1 (Sect. S12) measures how often false junctions pass it.
Corollary 8 (Junctions of a frame pass the test) Let three image lines pass through a point c c c , one through each vanishing point of three mutually orthogonal scene directions d 1 , d 2 , d 3 \mathbf{d}_1,\mathbf{d}_2,\mathbf{d}_3 d 1 , d 2 , d 3 , with c c c on none of the lines that join two of the vanishing points. Then the true camera admits the junction; in particular, when only the focal length is unknown, the true f f f lies in F F F and F ≠ ∅ F\ne\varnothing F = ∅ .
Proof The line through c c c and the vanishing point K d k \mathbf{K}\mathbf{d}_k K d k back-projects to a plane that contains the viewing ray r and the direction d k d_k d k , so d k d_k d k lies in its interpretation plane. The three lines are distinct, because c \mathbf{c} c lies on no line joining two vanishing points, and no d k d_k d k lies along the ray, because c \mathbf{c} c is not a vanishing point. The directions are mutually orthogonal, so the true camera admits the junction by Theorem 1 . □
Away from the configurations of Theorem 9, then, one corner yields a lower bound on f f f , and also an upper bound exactly when the junction would be rejected under orthography, as happens near the border of a wide-angle image (§ 6.1 ).
Other camera models: aspect ratio and principal point
For the cameras ω ∗ = diag ( f 2 , f 2 , 1 ) \omega^*=\operatorname{diag}(f^2,f^2,1) ω ∗ = diag ( f 2 , f 2 , 1 ) , with a single unknown focal length, the three forms of Theorem 3 are linear in the one unknown f 2 f^2 f 2 . Two other camera models deserve mention.
Unknown aspect ratio.
With ω ∗ = diag ( X , Y , 1 ) \omega^*=\operatorname{diag}(X,Y,1) ω ∗ = diag ( X , Y , 1 ) , where X = f x 2 X=f_x^2 X = f x 2 and Y = f y 2 Y=f_y^2 Y = f y 2 , each form l i T ω ∗ l j = a i a j X + b i b j Y + e i e j \mathbf{l}_i^{\mathsf{T}}\omega^*\mathbf{l}_j=a_i a_jX+b_i b_jY+e_i e_j l i T ω ∗ l j = a i a j X + b i b j Y + e i e j is affine in ( X , Y ) (X,Y) ( X , Y ) .
Proposition 10 (Unknown aspect ratio) For ω ∗ = diag ( X , Y , 1 ) \omega^*=\operatorname{diag}(X,Y,1) ω ∗ = diag ( X , Y , 1 ) , the cameras that admit a junction are the points ( X , Y ) (X,Y) ( X , Y ) of the open positive quadrant at which each form a i a j X + b i b j Y + e i e j a_i a_jX+b_i b_jY+e_i e_j a i a j X + b i b j Y + e i e j has the sign of Δ k i Δ k j \Delta_{ki}\Delta_{kj} Δ k i Δ k j , for { i , j , k } = { 1 , 2 , 3 } \{i,j,k\}=\{1,2,3\} { i , j , k } = { 1 , 2 , 3 } . They form an open convex polygon, possibly empty or unbounded, cut from the quadrant by three lines. The aspect ratios f y / f x f_y/f_x f y / f x of these cameras form an open interval.
Proof. For X , Y > 0 X,Y>0 X , Y > 0 the form ω ∗ \omega^* ω ∗ is positive-definite, and Theorem 4 with the forms above gives the three half-planes. The map ( X , Y ) ↦ Y / X (X,Y)\mapsto\sqrt{Y/X} ( X , Y ) ↦ Y / X is continuous and open on the open quadrant, so it carries the open convex polygon, which is connected, onto an open interval.
The products of the three coefficients of X X X , of Y Y Y and of the constant terms are the squares ( a 1 a 2 a 3 ) 2 (a_1a_2a_3)^2 ( a 1 a 2 a 3 ) 2 , ( b 1 b 2 b 3 ) 2 (b_1b_2b_3)^2 ( b 1 b 2 b 3 ) 2 and ( e 1 e 2 e 3 ) 2 (e_1e_2e_3)^2 ( e 1 e 2 e 3 ) 2 . The polygon therefore stays away from the origin and does not extend to infinity along either axis, although it may be unbounded in between: this is the anisotropic form of Theorem 6 (1) and (2). A single junction thus bounds the aspect ratio as well as the focal length, and it detects non-square pixels whenever its interval of aspect ratios excludes 1.
Unknown principal point.
Writing p ~ = ( p x , p y , 1 ) \tilde{\mathbf{p}}=(p_x,p_y,1) p ~ = ( p x , p y , 1 ) for the principal point,
ω ∗ = f 2 diag ( 1 , 1 , 0 ) + p ~ p ~ T , \omega^*=f^2\operatorname{diag}(1,1,0)+\tilde{\mathbf{p}}\tilde{\mathbf{p}}^{\mathsf{T}}, ω ∗ = f 2 diag ( 1 , 1 , 0 ) + p ~ p ~ T ,
l i T ω ∗ l j = f 2 A i j + d i d j , d i = l i ⋅ p ~ , \mathbf{l}_i^{\mathsf{T}}\omega^*\mathbf{l}_j=f^2A_{ij}+d_i d_j,\qquad d_i=\mathbf{l}_i\cdot\tilde{\mathbf{p}}, l i T ω ∗ l j = f 2 A ij + d i d j , d i = l i ⋅ p ~ ,
where d i d_i d i is the signed distance from the principal point to the edge line l i l_i l i . The form is linear in f 2 f^2 f 2 for a fixed principal point and quadratic in the principal point for a fixed f f f , so these cameras do not form a line or a plane in ω ∗ \omega^* ω ∗ -space and convexity does not carry over. The admitted set is nonetheless explicit.
Proposition 11 (Unknown principal point) Let the focal length f f f be known. A principal point is admitted by the junction if and only if ∏ ( i , j ) ( f 2 A i j + d i d j ) < 0 \prod_{(i,j)}(f^2A_{ij}+d_i d_j)<0 ∏ ( i , j ) ( f 2 A ij + d i d j ) < 0 . Each factor vanishes on a hyperbola centered at the junction, whose asymptotes are the edge lines l i l_i l i and l j l_j l j , or on those two lines if A i j = 0 A_{ij}=0 A ij = 0 . The principal points admitted for the focal length f f f are the image of those admitted for f = 1 f=1 f = 1 under the homothety of ratio f f f about the junction.
Proof. The first statement is Theorem 3 with the form above. Write c \mathbf{c} c for the junction and p \mathbf{p} p for the principal point, in pixel coordinates. The edge lines pass through c \mathbf{c} c , so each d i d_i d i is a linear function of p − c \mathbf{p}-\mathbf{c} p − c , and d i d j = f 2 A i j d_i d_j=f^2A_{ij} d i d j = f 2 A ij is a hyperbola with center c \mathbf{c} c and asymptotes d i = 0 d_i=0 d i = 0 and d j = 0 d_j=0 d j = 0 when A i j ≠ 0 A_{ij}\ne0 A ij = 0 , and the pair of lines when A i j = 0 A_{ij}=0 A ij = 0 . Substituting p = c + f q \mathbf{p}=\mathbf{c}+f\mathbf{q} p = c + f q multiplies every d i d_i d i by f f f , so each factor becomes f 2 ( A i j + d i ( c + f^2(A_{ij}+d_i(\mathbf{c}+ f 2 ( A ij + d i ( c + q) d j ( c + q ) d_j(\mathbf{c}+\mathbf{q}) d j ( c + q ) , and the verdict at c + f q \mathbf{c}+f\mathbf{q} c + f q for the focal length f f f is the verdict at c + q \mathbf{c}+\mathbf{q} c + q for f = 1 f=1 f = 1 . □
Figure 4 shows the three hyperbolas for one junction.
Both unknown.
With the focal length and the principal point both unknown, each condition f 2 A i j + d i d j = 0 f^2A_{ij}+d_id_j=0 f 2 A ij + d i d j = 0 is homogeneous of degree two in ( p − c , f ) (\mathbf{p}-\mathbf{c},f) ( p − c , f ) : a quadric cone in ( p x , p y , f ) (p_x,p_y,f) ( p x , p y , f ) -space with vertex at ( c , 0 ) (\mathbf{c},0) ( c , 0 ) . The admitted set is a union of cells of three such cones, invariant under scaling about ( c , 0 ) (\mathbf{c},0) ( c , 0 ) ; Theorem 23 treats many junctions in this model.
Skew.
Theorem 4 places no restriction on the camera: skew, aspect ratio and principal point are all free there. Only the restricted models of this section and of Theorem 6 assume zero skew.
Known orientation.
If the three edges of a corner are known either all to approach the camera or all to recede, as for a room corner seen from inside, the admissible set keeps only its fork-pattern part. This restriction never tightens the bound, but it does provide a check on the detection (Online Resource 1, Sect. S4).
Figure 4. The principal points admitted by one junction, for the true focal length of a 90° camera (shaded). The region is bounded by three hyperbolas, one for each pair of edges, centered at the junction c \mathbf{c} c and with the pair’s edge lines (dashed) as asymptotes. The square is the image, and the star is the true principal point. The region is not convex, and changing the focal length scales it about c \mathbf{c} c (Theorem 11)
Certified bounds and model error
Real junctions come from noisy line fits, so their thresholds move. Online Resource 1 (Sect. S7) gives the first-order spread of the thresholds and the probability that the true focal length leaves the measured set. Here we give a deterministic guarantee instead: whatever the source of error, it suffices to bound how far each measured angle can be from the true one.
Proposition 12 (Certified bounds) Let the position of a junction be exact and its measured angles satisfy ∣ ψ ^ i − ψ i ∣ ≤ φ i |\hat{\psi}_i-\psi_i|\leq\varphi_i ∣ ψ ^ i − ψ i ∣ ≤ φ i , and let A ^ i j \hat{A}_{ij} A ^ ij and e ^ i \hat{e}_i e ^ i be computed from the ψ ^ i \hat{\psi}_i ψ ^ i by (12) . For each pair let
U i j = { x > 0 : ∣ A ^ i j x + e ^ i e ^ j ∣ ≤ ( φ i 2 + φ j 2 ) 1 / 2 ( x 2 + ρ 2 ) } , U_{ij}=\left\{x>0:|\hat{A}_{ij}x+\hat{e}_i\hat{e}_j|\leq(\varphi_i^2+\varphi_j^2)^{1/2}(x\sqrt{2}+\rho^2)\right\}, U ij = { x > 0 : ∣ A ^ ij x + e ^ i e ^ j ∣ ≤ ( φ i 2 + φ j 2 ) 1/2 ( x 2 + ρ 2 ) } , which is an interval or empty, and U = ⋃ ( i , j ) U i j U=\bigcup_{(i,j)}U_{ij} U = ⋃ ( i , j ) U ij . Then, as sets of x = f 2 x=f^2 x = f 2 , the measured and true admissible sets satisfy
F ^ ∖ U ⊆ F ⊆ F ^ ∪ U ; \hat{F}\setminus U\subseteq F\subseteq\hat{F}\cup U; F ^ ∖ U ⊆ F ⊆ F ^ ∪ U ; in particular, the square of the true focal length lies in F ^ ∪ U \hat{F}\cup U F ^ ∪ U .
Proof. The gradient of the form cos ( ψ i − ψ j ) x + ρ 2 sin ψ i sin ψ j \cos(\psi_i-\psi_j)x+\rho^2\sin\psi_i\sin\psi_j cos ( ψ i − ψ j ) x + ρ 2 sin ψ i sin ψ j in ( ψ i , ψ j ) (\psi_i,\psi_j) ( ψ i , ψ j ) is x sin ( ψ i − ψ j ) ( − 1 , 1 ) + ρ 2 ( cos ψ i sin ψ j , sin ψ i cos ψ j ) x\sin(\psi_i-\psi_j)(-1,1)+\rho^2(\cos\psi_i\sin\psi_j,\sin\psi_i\cos\psi_j) x sin ( ψ i − ψ j ) ( − 1 , 1 ) + ρ 2 ( cos ψ i sin ψ j , sin ψ i cos ψ j ) . Its first term has norm at most x 2 x\sqrt{2} x 2 , and its second at most ρ 2 \rho^2 ρ 2 , since cos 2 ψ i sin 2 ψ j + sin 2 ψ i cos 2 ψ j ≤ 1 \cos^2\psi_i\sin^2\psi_j+\sin^2\psi_i\cos^2\psi_j\leq1 cos 2 ψ i sin 2 ψ j + sin 2 ψ i cos 2 ψ j ≤ 1 ; the form is therefore Lipschitz in ( ψ i , ψ j ) (\psi_i,\psi_j) ( ψ i , ψ j ) with constant x 2 + ρ 2 x\sqrt{2}+\rho^2 x 2 + ρ 2 , so at each x x x the true and measured forms differ by at most ( φ i 2 + φ j 2 ) 1 / 2 ( x 2 + ρ 2 ) (\varphi_i^2+\varphi_j^2)^{1/2}(x\sqrt{2}+\rho^2) ( φ i 2 + φ j 2 ) 1/2 ( x 2 + ρ 2 ) . Outside U i j U_{ij} U ij the measured form exceeds this in absolute value, so the two forms have the same sign; outside U U U all three pairs do, and x ∈ F x\in F x ∈ F exactly when x ∈ F ^ x\in\hat{F} x ∈ F ^ . Both inclusions follow, and the true focal length lies in F F F because the junction is the image of a right-angle corner. Finally, U i j U_{ij} U ij is the set where the two affine functions A ^ i j x + e ^ i e ^ j ± ( φ i 2 + φ j 2 ) 1 / 2 ( x 2 + ρ 2 ) \hat{A}_{ij}x+\hat{e}_i\hat{e}_j\pm(\varphi_i^2+\varphi_j^2)^{1/2}(x\sqrt{2}+\rho^2) A ^ ij x + e ^ i e ^ j ± ( φ i 2 + φ j 2 ) 1/2 ( x 2 + ρ 2 ) of x x x do not have the same strict sign, the intersection of two half-lines. □
Each U i j U_{ij} U ij is a neighbourhood of the measured threshold x ^ i j \hat{x}_{ij} x ^ ij , of width proportional to ( φ i 2 + φ j 2 ) 1 / 2 (\varphi_i^2+\varphi_j^2)^{1/2} ( φ i 2 + φ j 2 ) 1/2 unless A ^ i j \hat{A}_{ij} A ^ ij is small. The certified set F ^ ∪ U \hat{F}\cup U F ^ ∪ U is therefore the measured interval widened by these neighborhoods, and it contains the true focal length for every perturbation of the angles within the bounds φ i \varphi_i φ i , not only with high probability. If each endpoint of edge i i i , a segment of length ℓ s e g \ell_{\mathrm{seg}} ℓ seg , is known to within ε \varepsilon ε pixels, its direction is known to within φ i = arcsin ( 2 ε / ℓ s e g ) \varphi_i = \arcsin(2\varepsilon/\ell_{\mathrm{seg}}) φ i = arcsin ( 2 ε / ℓ seg ) , for ℓ s e g > 2 ε \ell_{\mathrm{seg}} > 2\varepsilon ℓ seg > 2 ε , so edges of different lengths carry different bounds. An error in the vertex position enters through ρ \rho ρ and the e i e_i e i , and the proposition does not cover it.
Model error.
Corners whose angles depart from 90 ∘ 90^\circ 9 0 ∘ , and radial lens distortion, are analyzed in Online Resource 1 (Sect. S6). A right angle that is off by a few degrees keeps the true camera admitted unless an edge is nearly perpendicular to the viewing ray, that is, unless the vertex is near an edge-on line; and radial distortion acts on each junction by an explicit transformation, which with Theorem 12 gives a guarantee for fitted segments. In simulation at 60 ∘ 60^\circ 6 0 ∘ , edges tilted by up to 2 ∘ 2^\circ 2 ∘ and 5 ∘ 5^\circ 5 ∘ left the true f f f in F F F for 92% and 84% of junctions, and distortion that displaces the image corners by 2% left it in F F F for 96%.
Many junctions
A single junction bounds the camera; this section asks what many junctions determine. We treat, in turn, the cameras that one frame rejects (§ 5.1 ), what several frames determine (§ 5.2 ), the focal length alone (§ 5.3 ) and together with the principal point (§ 5.4 ), and the convex program that combines the constraints (§ 5.5 ), which closes with a remark on noise.
What the junctions of one frame
reject
Do many junctions calibrate?
One might count three linear forms per junction against the five degrees of freedom of ω ∗ \omega^* ω ∗ and conclude that two junctions calibrate a camera. They do not, because Theorem 4 yields inequalities, not equations. A junction does not place ω ∗ \omega^* ω ∗ on a hypersurface; it confines it to a cone, and no finite number of junctions solves for it. What many junctions can do is cut the cone down, and the question is: to what? For the junctions of one Manhattan frame, the answer is exact.
A Manhattan frame is a triple of mutually orthogonal scene directions, its axes, and a junction of the frame is the image of a corner whose edges lie along them. An image shows one scene, and usually one such frame. Let v 1 , v 2 , v 3 v_1,v_2,v_3 v 1 , v 2 , v 3 be its vanishing points, as vectors of R 3 \mathbb{R}^3 R 3 with any fixed scaling, and V = [ v 1 v 2 v 3 ] V = [v_1\ v_2\ v_3] V = [ v 1 v 2 v 3 ] . Every line of direction k k k , in every junction of the frame, passes through v k v_k v k , so the junction of the frame with vertex c c c consists of the lines l k = c × v k l_k = c \times v_k l k = c × v k . The natural coordinates are therefore those of the vanishing points, and we write the candidate camera and the vertex in their basis,
ω ∗ = V N V T , c = V ζ , (16) \omega^* = VNV^{\mathsf{T}}, \qquad c = V\zeta, \tag*{(16)} ω ∗ = V N V T , c = V ζ , (16)
so that N N N is symmetric and positive-definite and ζ \zeta ζ gives homogeneous coordinates of the vertex in the triangle of vanishing points. Two facts follow at once. First, the line ζ k = 0 \zeta_k = 0 ζ k = 0 is the vanishing line ℓ k \ell_k ℓ k through the other two vanishing points. Second, since V T ω V = N − 1 V^{\mathsf{T}}\omega V = N^{-1} V T ω V = N − 1 for ω = ( ω ∗ ) − 1 \omega= (\omega^*)^{-1} ω = ( ω ∗ ) − 1 , the vanishing points are mutually orthogonal under the candidate camera, v a T v b = 0 v_a^{\mathsf{T}}v_b = 0 v a T v b = 0 for a ≠ b a \ne b a = b , exactly when N N N is diagonal. At the true camera N N N is diagonal, and N = I N = I N = I when the vanishing points are scaled as v k = K d k v_k = Kd_k v k = K d k , that is, V = K R V = KR V = K R with R = [ d 1 d 2 d 3 ] R = [d_1\ d_2\ d_3] R = [ d 1 d 2 d 3 ] the frame. Then ζ = R T K − 1 c \zeta= R^{\mathsf{T}}K^{-1}c ζ = R T K − 1 c has entries ζ k = r ⋅ d k \zeta_k = r \cdot d_k ζ k = r ⋅ d k , so ℓ k \ell_k ℓ k is also the locus where the edge is perpendicular to the viewing ray, the edge-on line of axis k k k . For the vertical axis it is the horizon (Figure 5 ). The vanishing points serve here only as coordinates for the analysis: the junction constraints never use them, and the results describe what those constraints achieve whether or not any vanishing point could be located.
Lemma 13 (A junction of the frame) In the notation of (16) , the junction of the frame with vertex c = V ζ c = V\zeta c = V ζ , whose lines are l k = c × v k l_k = c \times v_k l k = c × v k , with ζ 1 ζ 2 ζ 3 ≠ 0 \zeta_1\zeta_2\zeta_3 \ne0 ζ 1 ζ 2 ζ 3 = 0 , is admissible under ω ∗ = V N V T \omega^* = VNV^{\mathsf{T}} ω ∗ = V N V T , with V V V invertible and N N N positive-definite, if and only if, for each a a a , with { a , p , q } = { 1 , 2 , 3 } \{a,p,q\} = \{1,2,3\} { a , p , q } = { 1 , 2 , 3 } ,
ν a = N a a − ζ a ζ p N a p − ζ a ζ q N a q + ζ a 2 ζ p ζ q N p q > 0. (17) \nu_a = N_{aa} - \frac{\zeta_a}{\zeta_p}N_{ap} - \frac{\zeta_a}{\zeta_q}N_{aq} + \frac{\zeta_a^2}{\zeta_p\zeta_q}N_{pq} > 0. \tag*{(17)} ν a = N aa − ζ p ζ a N a p − ζ q ζ a N a q + ζ p ζ q ζ a 2 N pq > 0. (17)
Proof. Here m k = c × ( c × v k ) = ( c ⋅ v k ) c − ∥ c ∥ 2 v k m_k = c \times(c \times v_k) = (c \cdot v_k)c - \lVert c\rVert^2v_k m k = c × ( c × v k ) = ( c ⋅ v k ) c − ∥ c ∥ 2 v k , which acts on c ⊥ c^\perp c ⊥ as − ∥ c ∥ 2 v k -\lVert c\rVert^2v_k − ∥ c ∥ 2 v k . By Theorem 4 the junction is therefore admissible exactly when χ T ω ∗ χ = ∑ k ν k ( v k T χ ) 2 \chi^{\mathsf{T}}\omega^*\chi= \sum_k \nu_k(v_k^{\mathsf{T}}\chi)^2 χ T ω ∗ χ = ∑ k ν k ( v k T χ ) 2 on c ⊥ c^\perp c ⊥ with every ν k > 0 \nu_k > 0 ν k > 0 , these ν k \nu_k ν k being those of (9) multiplied by ∥ c ∥ 4 \lVert c\rVert^4 ∥ c ∥ 4 . Put y = V T χ y = V^{\mathsf{T}}\chi y = V T χ . Then χ T ω ∗ χ = y T N y \chi^{\mathsf{T}}\omega^*\chi= y^{\mathsf{T}}Ny χ T ω ∗ χ = y T N y and c ⋅ χ = ζ ⋅ y c \cdot\chi= \zeta\cdot y c ⋅ χ = ζ ⋅ y , so the condition is that y T N y = y T diag ( ν ) y y^{\mathsf{T}}Ny = y^{\mathsf{T}}\operatorname{diag}(\nu)y y T N y = y T diag ( ν ) y on the plane ζ ⋅ y = 0 \zeta\cdot y = 0 ζ ⋅ y = 0 . A symmetric matrix vanishes as a quadratic form on that plane exactly when it is ζ η T + η ζ T \zeta\eta^{\mathsf T}+\eta\zeta^{\mathsf T} ζ η T + η ζ T for some η \eta η , so N = diag ( ν ) + ζ η T + η ζ T N=\operatorname{diag}(\nu)+\zeta\eta^{\mathsf T}+\eta\zeta^{\mathsf T} N = diag ( ν ) + ζ η T + η ζ T . Its off-diagonal entries read N a b = ζ a η b + ζ b η a N_{ab}=\zeta_a\eta_b+\zeta_b\eta_a N ab = ζ a η b + ζ b η a , three equations with the solution 2 η a / ζ a = N a p / ( ζ a ζ p ) + N a q / ( ζ a ζ q ) − N p q / ( ζ p ζ q ) 2\eta_a/\zeta_a=N_{ap}/(\zeta_a\zeta_p)+N_{aq}/(\zeta_a\zeta_q)-N_{pq}/(\zeta_p\zeta_q) 2 η a / ζ a = N a p / ( ζ a ζ p ) + N a q / ( ζ a ζ q ) − N pq / ( ζ p ζ q ) , and its diagonal entries then give ν a = N a a − 2 ζ a η a \nu_a=N_{aa}-2\zeta_a\eta_a ν a = N aa − 2 ζ a η a , which is (17) . □
Theorem 14 (Which cameras one frame’s junctions reject) Let the image I \mathcal{I} I be a closed convex polygon with nonempty interior and no vanishing point on its boundary, and consider the junctions of one Manhattan frame with vertices in I \mathcal{I} I , off the vanishing lines. For an axis k k k , let i i i and j j j be the other two.
If c 0 ∈ ℓ k ∩ I c_0\in\ell_k\cap\mathcal{I} c 0 ∈ ℓ k ∩ I is not a vanishing point, every positive-definite ω ∗ \omega^* ω ∗ that violates
ζ j ( c 0 ) N i k = ζ i ( c 0 ) N j k (18) \zeta_j(c_0)N_{ik}=\zeta_i(c_0)N_{jk} \tag*{(18)} ζ j ( c 0 ) N ik = ζ i ( c 0 ) N j k (18) is rejected by every junction whose vertex is close enough to c 0 c_0 c 0 , how close depending on ω ∗ \omega^* ω ∗ . Hence, if ℓ k \ell_k ℓ k meets I \mathcal{I} I in a segment, every camera with ( N i k , N j k ) ≠ 0 (N_{ik},N_{jk})\ne0 ( N ik , N j k ) = 0 is rejected by some junction; if it meets I \mathcal{I} I only at a corner c 0 c_0 c 0 , every camera that violates (18) is.
There is a constant C C C , depending only on the frame and on I \mathcal{I} I , such that every ω ∗ \omega^* ω ∗ that satisfies the conditions of part (1) and has max b ≠ c ∣ N b c ∣ < min a N a a / C \max_{b\ne c}|N_{bc}|<\min_aN_{aa}/C max b = c ∣ N b c ∣ < min a N aa / C passes every junction.
If two vanishing lines meet I \mathcal{I} I in segments, the cameras that pass every junction are exactly those that make the three vanishing points mutually orthogonal,
ω ∗ = ∑ k = 1 3 θ k v k v k T , θ k > 0. (19) \omega^*=\sum_{k=1}^{3}\theta_k\mathbf{v}_k\mathbf{v}_k^{\mathsf T},\qquad\theta_k>0. \tag*{(19)} ω ∗ = k = 1 ∑ 3 θ k v k v k T , θ k > 0. (19)
Proof (1) Let c 0 ∈ ℓ k ∩ I c_0\in\ell_k\cap\mathcal{I} c 0 ∈ ℓ k ∩ I not be a vanishing point, so that ζ i , ζ j ≠ 0 \zeta_i,\zeta_j\ne0 ζ i , ζ j = 0 there, and let the vertex tend to c 0 c_0 c 0 from the interior of I \mathcal{I} I , off the vanishing lines, so that ζ k → 0 \zeta_k\to0 ζ k → 0 . Put B = ( ζ i / ζ j ) N j k − N i k B=(\zeta_i/\zeta_j)N_{jk}-N_{ik} B = ( ζ i / ζ j ) N j k − N ik . By (17) ,
ν i = N i i − ζ i ζ j N i j + ζ i ζ k B , \nu_i=N_{ii}-\frac{\zeta_i}{\zeta_j}N_{ij}+\frac{\zeta_i}{\zeta_k}B, ν i = N ii − ζ j ζ i N ij + ζ k ζ i B ,
ν j = N j j − ζ j ζ i N i j − ζ j 2 ζ i ζ k B . \nu_j=N_{jj}-\frac{\zeta_j}{\zeta_i}N_{ij}-\frac{\zeta_j^2}{\zeta_i\zeta_k}B. ν j = N j j − ζ i ζ j N ij − ζ i ζ k ζ j 2 B .
The terms without B B B stay bounded, and the two coefficients of B B B are unbounded with opposite signs, whichever side of ℓ k \ell_k ℓ k the vertex is on. Unless B → 0 B\to0 B → 0 , one of ν i , ν j \nu_i,\nu_j ν i , ν j is therefore negative at junctions arbitrarily near c 0 c_0 c 0 , and by Theorem 13 those are not admitted. So B ( c 0 ) = 0 B(c_0)=0 B ( c 0 ) = 0 , which is (18) . Along a segment the ratio ζ i / ζ j \zeta_i/\zeta_j ζ i / ζ j is a projective coordinate and is not constant, so (18) at two of its points gives N i k = N j k = 0 N_{ik}=N_{jk}=0 N ik = N j k = 0 . A line meets a convex polygon in a single point only at a corner of the polygon, which by hypothesis is not a vanishing point.
(2) By Theorem 13 , a camera passes every junction exactly when every ν a \nu_a ν a of (17) is positive throughout I \mathcal{I} I . Suppose first that a vanishing point lies in I \mathcal{I} I . It is interior, the two vanishing lines through it meet I \mathcal{I} I in segments, and the conditions of part (1) make N N N diagonal, so that ν a = N a a > 0 \nu_a=N_{aa}>0 ν a = N aa > 0 . Otherwise, in the expression (17) for ν a \nu_a ν a the terms that are singular near ℓ p ∩ I \ell_p\cap\mathcal{I} ℓ p ∩ I cancel, exactly as above, into a bounded multiple of B / ζ p B/\zeta_p B / ζ p , with B B B the quantity belonging to the line ℓ p \ell_p ℓ p , the other two coordinates being bounded away from zero there. If ℓ p \ell_p ℓ p meets I \mathcal{I} I in a segment, B B B vanishes identically. If it meets I \mathcal{I} I at a corner c 0 c_0 c 0 , then, in the notation of part (1) with p p p in place of k k k , B = ( ζ i / ζ j − t 0 ) N j p B=(\zeta_i/\zeta_j-t_0)N_{jp} B = ( ζ i / ζ j − t 0 ) N j p , with t 0 t_0 t 0 the value of the ratio at c 0 c_0 c 0 ; and I \mathcal{I} I and its wedge at c 0 c_0 c 0 whose sides make positive angles with the line, so that the distance from c 0 c_0 c 0 is at most a constant times ∣ ζ p ∣ |\zeta_p| ∣ ζ p ∣ on I \mathcal{I} I and B / ζ p B/\zeta_p B / ζ p is bounded by a constant times ∣ N j p ∣ |N_{jp}| ∣ N j p ∣ . Hence there is a constant C C C , depending only on the frame and on I \mathcal{I} I , with ∣ ν a − N a a ∣ ≤ C max b ≠ c ∣ N b c ∣ |\nu_a-N_{aa}|\le C\max_{b\ne c}|N_{bc}| ∣ ν a − N aa ∣ ≤ C max b = c ∣ N b c ∣ throughout I \mathcal{I} I , so that ν a ≥ N a a − C max b ≠ c ∣ N b c ∣ > 0 \nu_a\ge N_{aa}-C\max_{b\ne c}|N_{bc}|>0 ν a ≥ N aa − C max b = c ∣ N b c ∣ > 0 whenever max b ≠ c ∣ N b c ∣ < min a N a a / C \max_{b\ne c}|N_{bc}|<\min_aN_{aa}/C max b = c ∣ N b c ∣ < min a N aa / C .
(3) Two segments annihilate all three off-diagonal entries, so N N N is diagonal, with positive entries because it is positive-definite, and ω ∗ = ∇ N ∇ T \omega^*=\nabla N\nabla^{\mathsf T} ω ∗ = ∇ N ∇ T is (19) with θ k = N k k \theta_k=N_{kk} θ k = N k k . Conversely, for diagonal N N N , (17) gives ν a = N a a > 0 \nu_a=N_{aa}>0 ν a = N aa > 0 at every junction. □
In part (1), ( N i k , N j k ) ≠ 0 (N_{ik},N_{jk})\ne0 ( N ik , N j k ) = 0 says that v k \mathbf{v}_k v k is not orthogonal to the other two vanishing points under the camera. A vanishing line that misses I \mathcal{I} I rejects no camera on this account, although the inequalities (17) , which a camera must satisfy throughout I \mathcal{I} I to pass every junction (Theorem 13 ), still bound it. If no edge-on line touches I \mathcal{I} I , the constant of part (2) can be taken as C = sup c ∈ I max a ∑ ℓ ∣ κ a , b , c ∣ C=\sup_{c\in\mathcal{I}}\max_a\sum_{\ell}|\kappa_{a,b,c}| C = sup c ∈ I max a ∑ ℓ ∣ κ a , b , c ∣ , the sum running over the off-diagonal entries N b c N_{bc} N b c that part (1) does not force to vanish, with κ a , b , c \kappa_{a,b,c} κ a , b , c their coefficients in (17) ; each coefficient is bounded on I \mathcal{I} I , because its denominator vanishes only on an edge-on line that misses I \mathcal{I} I . Near the true camera, the cameras that pass every junction therefore form a family whose dimension is that of the linear space cut out by the conditions of part (1). A camera that violates (18) only slightly is rejected In the commonest case, the admitted set can be described globally rather than only near the true camera.
Proposition 15 (One edge-on line through the image) Under the hypotheses of Theorem 14 , let ℓ k \ell_k ℓ k meet I \mathcal{I} I in a segment and let ℓ i \ell_i ℓ i and ℓ j \ell_j ℓ j miss I \mathcal{I} I . Let r − ≤ r + r_{-} \le r_{+} r − ≤ r + be the extremes over I \mathcal{I} I of r = ζ i / ζ j r = \zeta_i/\zeta_j r = ζ i / ζ j , which have one sign and are attained at corners of I \mathcal{I} I , and let u ⋆ u^\star u ⋆ be the extreme over I \mathcal{I} I of u = ζ k / ( ζ i ζ j ) u = \zeta_k/(\zeta_i\zeta_j) u = ζ k / ( ζ i ζ j ) , which has the sign of r r r . Up to its boundary, the set of positive-definite ω ⋆ = V N V ⊤ \omega^\star= VNV^\top ω ⋆ = V N V ⊤ that admit every junction of the frame with vertex in I \mathcal{I} I is
N i k = N j k = 0 , N k k + u ⋆ N i j > 0 , N_{ik}=N_{jk}=0,\qquad N_{kk}+u^\star N_{ij}>0, N ik = N j k = 0 , N k k + u ⋆ N ij > 0 , N i i > r ± N i j , N j j > N i j / r ± , (20) N_{ii}>r_{\pm}N_{ij},\qquad N_{jj}>N_{ij}/r_{\pm}, \tag*{(20)} N ii > r ± N ij , N j j > N ij / r ± , (20) five linear inequalities on the one free off-diagonal entry and the diagonal.
Proof. By Theorem 14 (1) every admitted camera has N i k = N j k = 0 N_{ik}=N_{jk}=0 N ik = N j k = 0 , and then (17) reduces to ν i = N i i − r N i j \nu_i=N_{ii}-rN_{ij} ν i = N ii − r N ij , ν j = N j j − N i j / r \nu_j=N_{jj}-N_{ij}/r ν j = N j j − N ij / r and ν k = N k k + u N i j \nu_k=N_{kk}+uN_{ij} ν k = N k k + u N ij . Since ℓ i \ell_i ℓ i and ℓ j \ell_j ℓ j miss I \mathcal{I} I , ζ i \zeta_i ζ i and ζ j \zeta_j ζ j do not vanish on I \mathcal{I} I , so r r r and u u u have constant signs there, r r r is a ratio of two affine functions and attains its extremes at corners of the convex polygon I \mathcal{I} I , and u u u ranges from values arbitrarily close to 0 0 0 , near ℓ k \ell_k ℓ k , to u ⋆ u^\star u ⋆ . For fixed N N N , ν i \nu_i ν i is affine in r r r , ν j \nu_j ν j in 1 / r 1/r 1/ r and ν k \nu_k ν k in u u u , so each is positive over its range exactly when it is positive at the ends of the range, up to the boundary; at the end u → 0 u\to0 u → 0 the condition is N k k > 0 N_{kk}>0 N k k > 0 , which positive-definiteness already gives. □ \square □
For the camera of Online Resource 1 (Sect. S11), tilted by 4 ∘ 4^\circ 4 ∘ , (20) with unit diagonal gives the free entry the interval ( − 0.882 , 0.286 ) (-0.882, 0.286) ( − 0.882 , 0.286 ) , which the numerical interval [ − 0.88 , 0.28 ] [-0.88, 0.28] [ − 0.88 , 0.28 ] found there matches to its grid step. For the same camera the constant of Theorem 14 (2) is C = 3.50 C=3.50 C = 3.50 , and its sufficient condition ∣ N 12 ∣ < 1 / C = 0.286 |N_{12}|<1/C=0.286 ∣ N 12 ∣ < 1/ C = 0.286 reproduces the upper end of this interval exactly. With the frame oriented differently, a dense sample of 1.5 million junctions confirms both ends of the formula to within its grid step of 0.005.
Proposition 16 (One frame cannot calibrate a general camera) Every camera of the family (19) admits every junction of the frame, wherever its vertex lies. The family has three parameters, two once ω ⋆ \omega^\star ω ⋆ is normalized, so the junctions of one frame, however many, never determine a general camera.
Proof. For diagonal N N N , (17) gives ν a = N a a > 0 \nu_a=N_{aa}>0 ν a = N aa > 0 for every ζ \zeta ζ . □ \square □
The family (19) is the classical one: the cameras under which the three vanishing points of the frame are mutually orthogonal [35 ] . The reason is that every line of direction k k k , in every junction of the frame, passes through the same vanishing point v k v_k v k , so any number of junctions encodes only the frame’s vanishing points. Theorem 14 determines how much of that information they retain, and the answer depends on the image.
By Theorem 14, each vanishing line contributes two conditions when it meets the image in a segment, one when it touches the image only at a corner, and none when it misses the image. Lines in general position either pass through the image or miss it, so the number of conditions one frame forces is 0, 2 or 3: three when at least two lines are in view, and two when one is, as when only the horizon passes through the image. The touching case is exceptional but real; Online Resource 1 (Sect. S11) gives an example. One frame can therefore determine a camera only if the camera model has no more parameters than the frame forces conditions. A single focal length needs one, and Theorem 21 says when one frame supplies it; a general camera needs five, which one frame never supplies.
Several frames
One frame never determines a general camera (Theorem 16). Several frames can, provided their axes point in enough different directions, and the next theorem says exactly when.
Let Manhattan frames R 1 , … , R n R_1,\ldots,R_n R 1 , … , R n be seen by one camera K K K , possibly in different images, and write a candidate camera as ω ∗ = K Ξ K T \omega^* = K\Xi K^{\mathsf T} ω ∗ = K Ξ K T , so that Ξ = I \Xi= I Ξ = I is the true one. An axis is a direction without regard to sign; call it visible if its vanishing line meets the image area I \mathcal{I} I in a segment, and touching if the line meets I \mathcal{I} I in a single point c 0 c_0 c 0 , whose ray is r 0 = K − 1 c 0 r_0 = K^{-1}c_0 r 0 = K − 1 c 0 .
Theorem 17 (Several frames) Consider all the junctions of the frames with vertices in an image area I \mathcal{I} I that satisfies the hypotheses of Theorem 14 for every frame.
Every positive-definite ω ∗ = K Ξ K T \omega^* = K\Xi K^{\mathsf T} ω ∗ = K Ξ K T that admits all these junctions has each visible axis d d d as an eigenvector of Ξ \Xi Ξ and, for each touching axis d d d , Ξ d \Xi d Ξ d in the plane spanned by d d d and r 0 r_0 r 0 ; conversely, every Ξ \Xi Ξ near I I I that satisfies these conditions is admitted. If two axes of each frame are visible, the admitted cameras are exactly those with Ξ \Xi Ξ positive-definite and diagonal in each frame.
The junctions determine ω ∗ \omega^* ω ∗ , up to scale, if and only if the only symmetric Ξ \Xi Ξ that satisfy the conditions of (1) are the multiples of I I I . If no axis is touching, this holds if and only if the visible axes do not all lie in the union of a plane through the origin and the line normal to it.
Proof. For a frame R R R scale the vanishing points as V = K R V = KR V = K R . The matrix of Theorem 13 is then N = R T Ξ R N = R^{\mathsf T}\Xi R N = R T Ξ R , so that N a b = d a T Ξ d b N_{ab} = d_a^{\mathsf T}\Xi d_b N ab = d a T Ξ d b , and at a point with ray r r r the coordinates are ζ a = d a ⋅ r \zeta_a = d_a \cdot r ζ a = d a ⋅ r . By Theorem 14(1) a visible axis d k d_k d k forces N i k = N j k = 0 N_{ik} = N_{jk} = 0 N ik = N j k = 0 , that is, Ξ d k \Xi d_k Ξ d k is perpendicular to d i d_i d i and d j d_j d j and hence parallel to d k d_k d k . A touching axis forces (18) , which reads d k T Ξ w = 0 d_k^{\mathsf T}\Xi w = 0 d k T Ξ w = 0 with w = ζ j ( c 0 ) d i − ζ i ( c 0 ) d j w = \zeta_j(c_0)d_i - \zeta_i(c_0)d_j w = ζ j ( c 0 ) d i − ζ i ( c 0 ) d j . Since ζ k ( c 0 ) = 0 \zeta_k(c_0) = 0 ζ k ( c 0 ) = 0 , r 0 = ζ i d i + ζ j d j r_0 = \zeta_i d_i + \zeta_j d_j r 0 = ζ i d i + ζ j d j , so w w w is perpendicular to both d k d_k d k and r 0 r_0 r 0 ; it is nonzero, because c 0 c_0 c 0 is not a vanishing point, and so it is a nonzero multiple of d k × r 0 d_k \times r_0 d k × r 0 . The condition therefore says that Ξ d k \Xi d_k Ξ d k lies in the plane spanned by d k d_k d k and r 0 r_0 r 0 . Conversely, Theorem 14(2) admits every Ξ \Xi Ξ near I I I that satisfies these conditions for one frame, uniformly over its junctions through the constant C C C , and so, the frames being finitely many, every Ξ \Xi Ξ near I I I that satisfies them for all. If two axes of each frame are visible, N N N is diagonal by Theorem 14(3), which is the last statement of (1).
For (2), the conditions are linear in Ξ \Xi Ξ and are satisfied by I I I . If their only solutions are the multiples of I I I , every admitted ω ∗ \omega^* ω ∗ is a multiple of K K T K K^{\mathsf T} K K T , which is admitted. If they have a solution Ξ 1 \Xi_1 Ξ 1 that is not a multiple of I I I , they have I + t Ξ 1 I + t\Xi_1 I + t Ξ 1 for every t t t ; it is positive-definite and admitted for t t t near 0 by (1), and it is not a multiple of I I I when $t \ne 0. Suppose now that no axis is touching. A symmetric matrix that is not a multiple of I I I has either three distinct eigenvalues, and then its eigenvectors are three mutually orthogonal lines, or exactly two equal, and then they are a plane and its normal; in either case they lie in the union of a plane and its normal. If the visible axes do not, the conditions therefore have only the multiples of I I I as solutions. If they lie in a plane with normal n n n , each of them is an eigenvector of I + t n n T I + t n n^{\mathsf T} I + t n n T .
If the visible axes do lie in a plane and along its normal n n n , the matrix n n T n n^{\mathsf T} n n T satisfies the conditions of part (1), so the cameras K ( I + t n n T ) K T K(I + t n n^{\mathsf T})K^{\mathsf T} K ( I + t n n T ) K T are admitted for all t t t near 0, by the proof of part (2). When every frame shows two of its vanishing lines, part (1) describes the admitted cameras globally, and the condition of part (2) becomes that no axis is common to all the frames. Indeed, an orthonormal triple contained in a plane and its normal must contain the normal, since the plane holds at most two orthonormal vectors, so every frame then has the normal as an axis. Conversely, if all the frames share an axis d d d , the matrices I + t d d T I+t dd^{\mathsf{T}} I + t d d T , t > − 1 t>-1 t > − 1 , are positive-definite and diagonal in each frame. They are the only ones as soon as two of the frames have no other axis in common, because a symmetric form that is diagonal in two orthonormal bases of the plane d ⊥ d^\perp d ⊥ sharing no direction is a multiple of the identity there.
At the other extreme, an image may show only its horizon, the vanishing line of the vertical. It then contributes a single visible axis, its vertical direction in camera coordinates.
Corollary 18 (Images that show only their horizons) Let three or more images taken with one camera each show only the horizon of their frame, passing through the image, and let no two of their vertical directions be perpendicular. Their junctions determine a general camera if and only if the vertical vanishing points of the images are not collinear. If the camera only pitches between them, the cameras K ( I + t e 1 e 1 T ) K T K(I+t e_1e_1^{\mathsf{T}})K^{\mathsf{T}} K ( I + t e 1 e 1 T ) K T , which differ from the true one only in the aspect ratio, are admitted for t t t near 0; if it only rolls, the cameras K ( I + t e 3 e 3 T ) K T K(I+t e_3e_3^{\mathsf{T}})K^{\mathsf{T}} K ( I + t e 3 e 3 T ) K T are, a focal-length ambiguity.
Proof The visible axes are the vertical directions g m \mathbf{g}_m g m . When no two are perpendicular, they lie in the union of a plane and its normal only if they lie in the plane, since one along the normal would be perpendicular to the rest; and directions are coplanar exactly when their vanishing points K g m K\mathbf{g}_m K g m lie on one line, the vanishing line of their plane. Theorem 17 (2) gives the first statement. Pitching keeps every g m \mathbf{g}_m g m perpendicular to e 1 \mathbf{e}_1 e 1 , and rolling keeps it in the image plane, perpendicular to e 3 \mathbf{e}_3 e 3 , so Theorem 17 (2) gives the two families. □
At least three images are therefore needed, and the camera must do more than rotate about one axis between them.
A touching axis adds one condition where a visible one adds two. Applied to the cameras diag ( f ′ , f ′ , 1 ) \operatorname{diag}(f',f',1) diag ( f ′ , f ′ , 1 ) , these conditions reproduce Theorem 21 , including its exceptional point (Online Resource 1, Sect. S11).
The focal length: identifiability
For a camera whose only unknown is the focal length, Theorem 13 can be solved explicitly, and the joint admissible set of one frame’s junctions takes a closed form.
Proposition 19 (The joint admissible set in closed form) Let K = diag ( f , f , 1 ) K=\operatorname{diag}(f,f,1) K = diag ( f , f , 1 ) , scale the vanishing points of a frame R R R as V = K R V=KR V = K R , so that ζ a = r ⋅ d a \zeta_a=\mathbf{r}\cdot\mathbf{d}_a ζ a = r ⋅ d a for the viewing ray r = K − 1 c \mathbf{r}=K^{-1}\mathbf{c} r = K − 1 c , and put ζ a = d a ⋅ g a \zeta_a=\mathbf{d}_a\cdot\mathbf{g}_a ζ a = d a ⋅ g a , with d a \mathbf{d}_a d a the optical axis, and w a = x a / ζ a \mathbf{w}_a=\mathbf{x}_a/\zeta_a w a = x a / ζ a . For a candidate focal length f ′ f' f ′ , with s = f ′ / f s=f'/f s = f ′ / f , the quantities of Theorem 13 at the junction with vertex ζ \zeta ζ are
ν a = s 2 + ( 1 − s 2 ) γ a , γ a = ( x a − s w p ) ( x a − s w q ) . (21) \nu_a=s^2+(1-s^2)\gamma_a,\qquad\gamma_a=(\mathbf{x}_a-s\mathbf{w}_p)(\mathbf{x}_a-s\mathbf{w}_q). \tag*{(21)} ν a = s 2 + ( 1 − s 2 ) γ a , γ a = ( x a − s w p ) ( x a − s w q ) . (21) Consequently, for any set of junctions of the frame, writing Γ + \Gamma^+ Γ + and Γ − \Gamma^- Γ − for the suprema of γ a \gamma_a γ a and of − γ a -\gamma_a − γ a over the junctions and over a a a ,
⋂ F = { f ′ : Γ − 1 + Γ − < f ′ 2 f 2 < Γ + Γ + − 1 } (22) \bigcap F=\left\{f':\ \frac{\Gamma^-}{1+\Gamma^-}<\frac{f'^2}{f^2}<\frac{\Gamma^+}{\Gamma^+-1}\right\} \tag*{(22)} ⋂ F = { f ′ : 1 + Γ − Γ − < f 2 f ′2 < Γ + − 1 Γ + } (22) up to its endpoints, the upper bound being absent when Γ + ≤ 1 \Gamma^+\leq1 Γ + ≤ 1 . Here Γ − \Gamma^- Γ − is positive as soon as one junction has no edge line through the principal point, by Theorem 6 (1); when Γ − ≤ 0 \Gamma^-\leq0 Γ − ≤ 0 there is no lower bound.
Proof A focal length f ′ f' f ′ lies in every F F F exactly when ω ∗ = diag ( x , x , 1 ) \omega^*=\operatorname{diag}(x,x,1) ω ∗ = diag ( x , x , 1 ) , x = f ′ 2 x=f'^2 x = f ′2 , admits every junction, and then
N = R T K − 1 diag ( x , x , 1 ) K − T R = s 2 I + ( 1 − s 2 ) z z T . N=R^{\mathsf{T}}K^{-1}\operatorname{diag}(x,x,1)K^{-\mathsf{T}}R
=s^2I+(1-s^2)\mathbf{z}\mathbf{z}^{\mathsf{T}}. N = R T K − 1 diag ( x , x , 1 ) K − T R = s 2 I + ( 1 − s 2 ) z z T . In (17) , ν a \nu_a ν a is linear in N N N and equals 1 at N = I N=I N = I ; at the rank-one N = z z T N=\mathbf{z}\mathbf{z}^{\mathsf{T}} N = z z T its four terms factor as ( z a − ζ a z p ) ( z a − ζ a z q ) / ( ζ a ζ q ) (\mathbf{z}_a-\zeta_a\mathbf{z}_p)(\mathbf{z}_a-\zeta_a\mathbf{z}_q)/(\zeta_a\zeta_q) ( z a − ζ a z p ) ( z a − ζ a z q ) / ( ζ a ζ q ) ; so, ν a = s 2 + ( 1 − s 2 ) γ a \nu_a=s^2+(1-s^2)\gamma_a ν a = s 2 + ( 1 − s 2 ) γ a , which is (21) . At s = 1 s=1 s = 1 every ν a \nu_a ν a equals 1. For s < 1 s<1 s < 1 , ν a > 0 \nu_a>0 ν a > 0 exactly when − γ a < s 2 / ( 1 − s 2 ) -\gamma_a<s^2/(1-s^2) − γ a < s 2 / ( 1 − s 2 ) , and this holds at every junction exactly when Γ − ≤ 0 \Gamma^-\leq0 Γ − ≤ 0 or s 2 > Γ − / ( 1 + Γ − ) s^2>\Gamma^-/(1+\Gamma^-) s 2 > Γ − / ( 1 + Γ − ) ; for s > 1 s>1 s > 1 , ν a > 0 \nu_a>0 ν a > 0 exactly when γ a < s 2 / ( s 2 − 1 ) \gamma_a<s^2/(s^2-1) γ a < s 2 / ( s 2 − 1 ) , which holds at every junction exactly when Γ + ≤ 1 \Gamma^+\leq1 Γ + ≤ 1 or s 2 < Γ + / ( Γ + − 1 ) s^2<\Gamma^+/(\Gamma^+-1) s 2 < Γ + / ( Γ + − 1 ) . □
Each junction therefore bounds f f f from below when some γ a \gamma_a γ a is negative and from above when some γ a \gamma_a γ a exceeds one, and the bounds approach f f f as γ \gamma γ becomes unbounded. Since ω b \omega_b ω b is unbounded only where ζ b → 0 \zeta_b\to0 ζ b → 0 with z b ≠ 0 \mathbf{z}_b\ne0 z b = 0 , the bounds can approach f f f only near the edge-on line of an axis that is not parallel to the image plane; the question is what happens there. For a single junction, (22) gives the interval as an explicit function of the junction’s position.
Theorem 20 (Where a junction bounds the focal length) Let K = diag ( f , f , 1 ) K = \operatorname{diag}(f, f, 1) K = diag ( f , f , 1 ) , let a frame have axes d a \mathbf{d}_a d a , and for a vertex c \mathbf{c} c off the vanishing lines let r = K − 1 c \mathbf{r} = K^{-1}\mathbf{c} r = K − 1 c . For { a , p , q } = { 1 , 2 , 3 } \{a,p,q\} = \{1,2,3\} { a , p , q } = { 1 , 2 , 3 } ,
γ a = − ( r ⋅ ( z ^ × d p ) ) ( r ⋅ ( z ^ × d q ) ) ( r ⋅ d p ) ( r ⋅ d q ) (23) \gamma_a = -\frac{\left(\mathbf{r}\cdot(\hat{\mathbf{z}}\times\mathbf{d}_p)\right)\left(\mathbf{r}\cdot(\hat{\mathbf{z}}\times\mathbf{d}_q)\right)}{(\mathbf{r}\cdot\mathbf{d}_p)(\mathbf{r}\cdot\mathbf{d}_q)} \tag*{(23)} γ a = − ( r ⋅ d p ) ( r ⋅ d q ) ( r ⋅ ( z ^ × d p ) ) ( r ⋅ ( z ^ × d q ) ) (23) and the junction of the frame with vertex c \mathbf{c} c admits exactly the focal lengths f ′ f' f ′ with Γ − / ( 1 + Γ − ) < f ′ / f 2 < Γ + / ( Γ + − 1 ) \Gamma^{-}/(1+\Gamma^{-}) < f'/f^2 < \Gamma^{+}/(\Gamma^{+}-1) Γ − / ( 1 + Γ − ) < f ′ / f 2 < Γ + / ( Γ + − 1 ) , where Γ + = max a γ a \Gamma^{+} = \max_a\gamma_a Γ + = max a γ a and Γ − = max a ( − γ a ) \Gamma^{-} = \max_a(-\gamma_a) Γ − = max a ( − γ a ) , the lower bound being absent when Γ − ≤ 0 \Gamma^{-}\leq0 Γ − ≤ 0 and the upper when Γ + ≤ 1 \Gamma^{+}\leq1 Γ + ≤ 1 . It therefore bounds f f f from above exactly when some γ a > 1 \gamma_a>1 γ a > 1 , and from below by a positive value exactly when some γ a < 0 \gamma_a<0 γ a < 0 . If the axes p p p and q q q are tilted, then
γ a = 1 + z p z q ( c − v p ) ⋅ ( c − v q ) f 2 ( r ⋅ d p ) ( r ⋅ d q ) (24) \gamma_a = 1 + \frac{z_pz_q(\mathbf{c}-\mathbf{v}_p)\cdot(\mathbf{c}-\mathbf{v}_q)}{f^2(\mathbf{r}\cdot\mathbf{d}_p)(\mathbf{r}\cdot\mathbf{d}_q)} \tag*{(24)} γ a = 1 + f 2 ( r ⋅ d p ) ( r ⋅ d q ) z p z q ( c − v p ) ⋅ ( c − v q ) (24) with c \mathbf{c} c and the vanishing points in centered pixel coordinates. Hence { γ a = 1 } \{\gamma_a=1\} { γ a = 1 } is the circle with diameter v p v q \mathbf{v}_p\mathbf{v}_q v p v q , on which the junction’s edges toward v p \mathbf{v}_p v p and v q \mathbf{v}_q v q are perpendicular in the image, and the region γ a > 1 \gamma_a>1 γ a > 1 is bounded by this circle and the edge-on lines ℓ p \ell_p ℓ p and ℓ q \ell_q ℓ q .
Proof. Write R b ( r ) = r ⋅ ( z ^ × d b ) R_b(\mathbf{r})=\mathbf{r}\cdot(\hat{\mathbf{z}}\times\mathbf{d}_b) R b ( r ) = r ⋅ ( z ^ × d b ) and ℓ b ( r ) = r ⋅ d b \ell_b(\mathbf{r})=\mathbf{r}\cdot\mathbf{d}_b ℓ b ( r ) = r ⋅ d b ; their zero sets are the line R b R_b R b through the principal point and v b \mathbf{v}_b v b and the edge-on line ℓ b \ell_b ℓ b , and the claim is γ a = − R p R q / ( ℓ p ℓ q ) \gamma_a=-R_pR_q/(\ell_p\ell_q) γ a = − R p R q / ( ℓ p ℓ q ) . With ζ b = r ⋅ d b \zeta_b=\mathbf{r}\cdot\mathbf{d}_b ζ b = r ⋅ d b and z b = z ^ ⋅ d b z_b=\hat{\mathbf{z}}\cdot\mathbf{d}_b z b = z ^ ⋅ d b , (21) reads γ a = ( z a ζ p − ζ a z p ) ( z a ζ q − ζ a z q ) / ( ζ p ζ q ) \gamma_a=(z_a\zeta_p-\zeta_az_p)(z_a\zeta_q-\zeta_az_q)/(\zeta_p\zeta_q) γ a = ( z a ζ p − ζ a z p ) ( z a ζ q − ζ a z q ) / ( ζ p ζ q ) . By the expansion of the triple product, z a ζ p − ζ a z p = r ⋅ ( z ^ × ( d p × d a ) ) z_a\zeta_p-\zeta_az_p=\mathbf{r}\cdot(\hat{\mathbf{z}}\times(\mathbf{d}_p\times\mathbf{d}_a)) z a ζ p − ζ a z p = r ⋅ ( z ^ × ( d p × d a )) , and d p × d a = − ε d q \mathbf{d}_p\times\mathbf{d}_a=-\varepsilon\mathbf{d}_q d p × d a = − ε d q with ε = det [ d 1 d 2 d 3 ] = ± 1 \varepsilon=\det[\mathbf{d}_1\ \mathbf{d}_2\ \mathbf{d}_3]=\pm1 ε = det [ d 1 d 2 d 3 ] = ± 1 ; likewise z a ζ q − ζ a z q = ε r ⋅ ( z ^ × d p ) z_a\zeta_q-\zeta_az_q=\varepsilon\mathbf{r}\cdot(\hat{\mathbf{z}}\times\mathbf{d}_p) z a ζ q − ζ a z q = ε r ⋅ ( z ^ × d p ) . Since ε 2 = 1 \varepsilon^2=1 ε 2 = 1 , this is (23) . One junction is a set of junctions, so (22) gives its interval, and the two bounds follow. For (24) , write r = ( c / f , 1 ) \mathbf{r}=(\mathbf{c}/f,1) r = ( c / f , 1 ) . The quadratic Q = R p R q + ℓ p ℓ q Q=R_pR_q+\ell_p\ell_q Q = R p R q + ℓ p ℓ q in c \mathbf{c} c has no term in x y xy x y and the coefficient d ˉ p ⋅ d ˉ q / f 2 = − z p z q / f 2 ≠ 0 \bar{\mathbf{d}}_p\cdot\bar{\mathbf{d}}_q/f^2=-z_pz_q/f^2\ne0 d ˉ p ⋅ d ˉ q / f 2 = − z p z q / f 2 = 0 on x 2 x^2 x 2 and on y 2 y^2 y 2 , so its zero set is a circle. The circle passes through v p \mathbf{v}_p v p and v q \mathbf{v}_q v q , where r \mathbf{r} r is proportional to d p \mathbf{d}_p d p or d q \mathbf{d}_q d q , and through c p ∗ \mathbf{c}_p^* c p ∗ , where R p R_p R p meets ℓ p \ell_p ℓ p . There R p R_p R p , through v p \mathbf{v}_p v p , meets ℓ p \ell_p ℓ p , through v q \mathbf{v}_q v q , at a right angle, since ℓ p \ell_p ℓ p has normal d p \mathbf{d}_p d p , so by Thales’ theorem the circle is the one with diameter v p v q \mathbf{v}_p\mathbf{v}_q v p v q ; it passes likewise through c q ∗ \mathbf{c}_q^* c q ∗ . The difference between Q Q Q and − ( z p z q / f 2 ) ( c − v p ) ⋅ ( c − v q ) -(z_pz_q/f^2)(\mathbf{c}-\mathbf{v}_p)\cdot(\mathbf{c}-\mathbf{v}_q) − ( z p z q / f 2 ) ( c − v p ) ⋅ ( c − v q ) has no quadratic terms and vanishes at v p \mathbf{v}_p v p , v q \mathbf{v}_q v q and c p ∗ \mathbf{c}_p^* c p ∗ , which are not collinear, because v p \mathbf{v}_p v p is not on ℓ p \ell_p ℓ p , unless c p ∗ = v q \mathbf{c}_p^*=\mathbf{v}_q c p ∗ = v q ; so it is zero, by continuity in the frame also in that case, and (24) follows from (23) . The edge of the junction along d p \mathbf{d}_p d p lies on the line through c \mathbf{c} c and v p \mathbf{v}_p v p , so on this circle the edges along d p \mathbf{d}_p d p and d q \mathbf{d}_q d q are perpendicular in the image. Finally, γ a − 1 \gamma_a-1 γ a − 1 changes sign only across this circle and the lines ℓ p \ell_p ℓ p and ℓ q \ell_q ℓ q . □
The circle of axis a a a passes through the points c p ∗ \mathbf{c}_p^* c p ∗ and c q ∗ \mathbf{c}_q^* c q ∗ of the edge-on lines ℓ p \ell_p ℓ p and ℓ q \ell_q ℓ q nearest the principal point. The region in which a junction bounds the focal length from above is thus bounded by three circles, one for each axis, and by the edge-on lines (Figure 6 ). On the circle of axis a a a , the junction’s edges along the other two axes appear perpendicular: this is the raw right angle at which the threshold of that pair passes through infinity (Theorem 6 ). The circle is also the section by the image plane of the calibration sphere with diameter v p v q \mathbf{v}_p\mathbf{v}_q v p v q , on which the center of projection lies because it sees v p \mathbf{v}_p v p and v q \mathbf{v}_q v q in perpendicular directions; in photogrammetry, this section is known as the locus of the isocenter [38 ] . The region hugs the edge-on lines of the tilted axes, where γ \gamma γ is unbounded, and Theorem 21 states that it reaches f f f from both sides when such a line passes through the image. On the York Urban images of Online Resource 1 (Sect. S12), the region covers a median 9.4% of the image and a mean 12.3%; yet when the 181 real junctions are replayed without noise, only 4 of them, 2.2%, lie in it. Real corners avoid the neighborhoods of the edge-on lines, where two of their edges would look nearly collinear.
Figure 6. Where a junction bounds the focal length from above (Theorem 20 ). (a) A camera seen obliquely, the image outlined in black: junctions with vertices in the shaded region bound f f f from above. Each axis contributes the circle with diameter between the other two vanishing points (dots), which passes through the points c ⋆ c^{\star} c ⋆ (crosses), and the edge-on lines (dashed) complete the boundary. Of the two junctions drawn, the one far from every edge-on line has three distinct edges; the one marked “on ℓ 1 \ell_1 ℓ 1 ” lies on that line, where its two edges along the other axes fall on one image line, the face they span being seen edge-on. (b) A simulated nearly level camera, matched to York Urban (640 × 480 px, f = 675 f = 675 f = 675 px, a 3 ∘ 3^\circ 3 ∘ tilt): the region is a thin wedge along the horizon (dashed), covering 4% of the image, and only 2 of 15 junctions at random positions (filled) lie in it, which is why upper bounds are rare for ordinary, nearly level cameras.
Theorem 21 (Identifiability of the focal length from one frame) Let the camera be K = diag ( f , f , 1 ) K=\operatorname{diag}(f,f,1) K = diag ( f , f , 1 ) and the image a closed convex polygon with nonempty interior, such as a rectangle, with no vanishing point on its boundary; consider all the junctions of one Manhattan frame with vertices in the image and off its vanishing lines. Call an axis tilted if it is not parallel to the image plane, and for a tilted axis d k \mathbf{d}_k d k let c k ∗ \mathbf{c}_k^* c k ∗ be the point of its edge-on line ℓ k \ell_k ℓ k nearest the principal point; if d k \mathbf{d}_k d k is the optical axis, that line is at infinity, never meets the image, and plays no part. Then ⋂ F = { f } \bigcap F=\{f\} ⋂ F = { f } if and only if, for some tilted axis, ℓ k \ell_k ℓ k meets the image at a point other than c k ∗ \mathbf{c}_k^* c k ∗ .
Proof By Theorem 19 , ⋂ F = { f } \bigcap F=\{f\} ⋂ F = { f } exactly when γ \gamma γ is unbounded above and below on the image. In the notation of the proof of Theorem 20 , γ a = − R p R q / ( ℓ p ℓ q ) \gamma_a=-R_pR_q/(\ell_p\ell_q) γ a = − R p R q / ( ℓ p ℓ q ) , where the line R b R_b R b through the principal point and v b \mathbf{v}_b v b is perpendicular to ℓ b \ell_b ℓ b and meets it at c b ∗ \mathbf{c}_b^* c b ∗ . So γ \gamma γ is bounded away from the edge-on lines, and the line ℓ k \ell_k ℓ k of an untilted axis contributes nothing: it then passes through the principal point and coincides with R i R_i R i and R j R_j R j , which cancel it.
Let ℓ k \ell_k ℓ k , with z k ≠ 0 z_k\ne0 z k = 0 , meet the image at a point c 0 \mathbf{c}_0 c 0 that is not a vanishing point. The components with ℓ k \ell_k ℓ k in their denominators are γ i = − ( R j / ℓ j ) ( R k / ℓ k ) \gamma_i=-(R_j/\ell_j)(R_k/\ell_k) γ i = − ( R j / ℓ j ) ( R k / ℓ k ) and γ j = − ( R i / ℓ i ) ( R k / ℓ k ) \gamma_j=-(R_i/\ell_i)(R_k/\ell_k) γ j = − ( R i / ℓ i ) ( R k / ℓ k ) . On ℓ k \ell_k ℓ k , where $\mathbf{r}=\zeta_i\mathbf{d}_i+\zeta_j\mathbf{d}_j and d i × d j = ε d k \mathbf{d}_i \times\mathbf{d}_j = \varepsilon\mathbf{d}_k d i × d j = ε d k , we have R i = ε z k ζ j R_i = \varepsilon z_k \zeta_j R i = ε z k ζ j and R j = − ε z k ζ i R_j = -\varepsilon z_k \zeta_i R j = − ε z k ζ i , so ( R i / ℓ i ) ( R j / ℓ j ) = − z k 2 < 0 (R_i/\ell_i)(R_j/\ell_j) = -z_k^2 < 0 ( R i / ℓ i ) ( R j / ℓ j ) = − z k 2 < 0 at c 0 c_0 c 0 . As the vertex tends to c 0 c_0 c 0 from within the image, R k / ℓ k → ± ∞ R_k/\ell_k \to\pm\infty R k / ℓ k → ± ∞ unless R k ( c 0 ) = 0 R_k(c_0) = 0 R k ( c 0 ) = 0 , that is, unless c 0 = c k ⋆ c_0 = c_k^{\star} c 0 = c k ⋆ ; then γ i \gamma_i γ i and γ j \gamma_j γ j diverge with opposite signs, whichever side of ℓ k \ell_k ℓ k the vertex is on, and ⋂ F = { f } \bigcap F = \{f\} ⋂ F = { f } . A line that meets the image in more than one point meets it in a segment, which contains points other than c k ⋆ c_k^{\star} c k ⋆ and the vanishing points; one that meets it in a single point meets it at a boundary point that is not a vanishing point. This proves sufficiency.
Conversely, if every edge-on line of a tilted axis that meets the image meets it only at its point c k ⋆ c_k^{\star} c k ⋆ , that point is a corner of the image, which lies in a wedge whose sides make positive angles with ℓ k \ell_k ℓ k . In the wedge, ∣ R k ∣ |R_k| ∣ R k ∣ , proportional to the distance from R k R_k R k , is at most a constant times ∣ ℓ k ∣ |\ell_k| ∣ ℓ k ∣ , so R k / ℓ k R_k/\ell_k R k / ℓ k and hence γ \gamma γ are bounded on the image, and ⋂ F \bigcap F ⋂ F contains a neighborhood of f f f . □
A vanishing line need not pass through the image for its junctions to determine f f f : it suffices that the line reach the image, because a single junction near the line bounds f f f from both sides at once, γ i \gamma_i γ i and γ j \gamma_j γ j having opposite signs. The exceptional point c k ⋆ c_k^{\star} c k ⋆ is real, and Online Resource 1 (Sect. S10) shows its cost.
Corollary 22 (A wide field of view suffices) Under the hypotheses of Theorem 21 , if no axis of the frame is parallel to the image plane and the image contains a cone of half-angle greater than arcsin ( 1 / 3 ) ≈ 35.26 ∘ \arcsin(1/\sqrt{3}) \approx35.26^\circ arcsin ( 1/ 3 ) ≈ 35.2 6 ∘ about the optical axis, a circular field of view above 70.53 ∘ 70.53^\circ 70.5 3 ∘ , then ⋂ F = { f } \bigcap F = \{f\} ⋂ F = { f } . The constant is sharp: for the frame seen down a cube diagonal, a circular field of view of at most 70.53 ∘ 70.53^\circ 70.5 3 ∘ does not determine f f f .
Proof Since ∑ a ( d a ⋅ z ^ ) 2 = 1 \sum_a (\mathbf{d}_a \cdot\hat{\mathbf{z}})^2 = 1 ∑ a ( d a ⋅ z ^ ) 2 = 1 for an orthonormal frame, some axis has 0 < ∣ z a ∣ ≤ 1 / 3 0 < |z_a| \le1/\sqrt{3} 0 < ∣ z a ∣ ≤ 1/ 3 . Its edge-on line consists of the rays perpendicular to d a \mathbf{d}_a d a , a plane that makes the angle arcsin ∣ z a ∣ ≤ arcsin ( 1 / 3 ) \arcsin|z_a| \le\arcsin(1/\sqrt{3}) arcsin ∣ z a ∣ ≤ arcsin ( 1/ 3 ) with z ^ \hat{\mathbf{z}} z ^ . The line therefore meets the open cone, and so the interior of the image, in a segment, which contains points other than c a ⋆ c_a^{\star} c a ⋆ ; Theorem 21 applies. For the cube diagonal every axis has ∣ z a ∣ = 1 / 3 |z_a| = 1/\sqrt{3} ∣ z a ∣ = 1/ 3 , so each edge-on line keeps an angle of exactly arcsin ( 1 / 3 ) \arcsin(1/\sqrt{3}) arcsin ( 1/ 3 ) from the optical axis; a circular image of at most that half-angle meets each line at most at its point c a ⋆ c_a^{\star} c a ⋆ , and Theorem 21 shows that f f f is then not determined. □
The restriction to tilted axes matters in practice, because the commonest camera pose is nearly level. For a level camera, the vertical axis is parallel to the image plane and its edge-on line is the horizon, so w k = 0 w_k = 0 w k = 0 and the horizon contributes nothing to γ \gamma γ . Concretely, if u u u is the abscissa of the junction, the thresholds of the two pairs containing the vertical edge are − u -u − u times the abscissae of the two horizontal vanishing points, independent of the junction’s distance from the horizon. No junction near the horizon is therefore bounded above through its vertical edge. The horizontal axes of a level camera are tilted, however, and the edge-on line of each is the vertical image line through the other horizontal vanishing point. If neither horizontal vanishing point lies within the horizontal extent of the image, these lines miss it and upper bounds are rare; if one does, as in corridor or street views, its line passes through the image and Theorem 21 applies. Tilting the camera restores identifiability only gradually. Take f = 900 f = 900 f = 900 px and a 960 px square image, with vertices uniform over it and the horizontal vanishing points outside its horizontal extent, so that only the horizon is in view. The share of junctions bounded above is then 0.4%, 1.8%, 4.4%, 10.8% and 22.2% at tilts of 0.5 ∘ 0.5^\circ 0. 5 ∘ , 2 ∘ 2^\circ 2 ∘ , 5 ∘ 5^\circ 5 ∘ , 12 ∘ 12^\circ 1 2 ∘ and 25 ∘ 25^\circ 2 5 ∘ , against none for a level camera, for which the intersection of 40 000 admissible sets is [ 0.80 f , ∞ ) [0.80f,\infty) [ 0.80 f , ∞ ) . Online Resource 1 (Sect. S12) finds the consequence in real images.
The mechanism at a single junction.
At the true camera, the interpretation-plane normal n m \mathbf{n}_m n m is parallel to r × d m \mathbf{r} \times\mathbf{d}_m r × d m , so for two orthogonal edges
( r × d i ) ⋅ ( r × d j ) = ∥ r ∥ 2 ( d i ⋅ d j ) − ( r ⋅ d i ) ( r ⋅ d j ) = − ( r ⋅ d i ) ( r ⋅ d j ) . (25) (\mathbf{r} \times\mathbf{d}_i) \cdot(\mathbf{r} \times\mathbf{d}_j) = \lVert\mathbf{r} \rVert^2(\mathbf{d}_i \cdot\mathbf{d}_j) - (\mathbf{r} \cdot\mathbf{d}_i)(\mathbf{r} \cdot\mathbf{d}_j) = -(\mathbf{r} \cdot\mathbf{d}_i)(\mathbf{r} \cdot\mathbf{d}_j). \tag*{(25)} ( r × d i ) ⋅ ( r × d j ) = ∥ r ∥ 2 ( d i ⋅ d j ) − ( r ⋅ d i ) ( r ⋅ d j ) = − ( r ⋅ d i ) ( r ⋅ d j ) . (25)
The pair form therefore vanishes at the true f f f exactly when one of its two edges is perpendicular to the viewing ray . Geometrically, r ⊥ d i \mathbf{r} \perp\mathbf{d}_i r ⊥ d i places the ray in the face spanned by the other two edges, so that face is seen edge-on and those two edges project onto one image line: the configuration is the degeneracy of § 2.3 , approached rather than reached. The condition r ⊥ d i \mathbf{r} \perp\mathbf{d}_i r ⊥ d i is the vanishing line ℓ i \ell_i ℓ i of § 5.1 seen from a single junction: as the vertex approaches ℓ i \ell_i ℓ i , the thresholds of the two pairs that contain edge i i i both tend to f f f , one from each side. The junctions that pin f f f most tightly are therefore those that see a face nearly edge-on, which are also those closest to the degeneracy of two edges sharing an image line.
Focal length and principal point
Theorem 21 assumes the principal point known. When it is unknown as well, Theorem 17 (1) still applies, and its conditions can be solved completely for a camera with square pixels and zero skew. For an axis d \mathbf{d} d , write d ˉ ∈ R 2 \bar{\mathbf{d}} \in\mathbb{R}^2 d ˉ ∈ R 2 for its first two coordinates, its direction in the image plane, and z = d ⋅ z ^ z = \mathbf{d} \cdot\hat{\mathbf{z}} z = d ⋅ z ^ , as in Theorem 19 ; the axis is tilted when z ≠ 0 z \ne0 z = 0 .
Theorem 23 (Focal length and principal point) Let the camera have square pixels and zero skew, with its focal length and principal point unknown, and let the frames and visible axes be as in Theorem 17 . The junctions determine the focal length and the principal point unless
no visible axis is tilted; or
the visible tilted axes are a single axis, or two perpendicular axes, lying in a plane Θ \Theta Θ that contains the optical axis, and every other visible axis is normal to Θ \Theta Θ .
If no axis is touching, then in case (1) the focal length is not determined, and in case (2) the admitted cameras near the true one form a one-parameter family, in which the principal point moves along the image of Θ \Theta Θ , the line through the principal point with direction d ˉ \bar{\mathbf{d}} d ˉ , for any tilted axis d \mathbf{d} d .
Proof Write a candidate camera as K ′ = K T K' = KT K ′ = K T with
T = ( s I p 0 T 1 ) , Ξ = T T T = ( s 2 I + p p T p p T 1 ) , T = \begin{pmatrix} sI & \mathbf{p} \\ \mathbf{0}^{\mathsf{T}} & 1 \end{pmatrix}, \qquad\Xi= TT^{\mathsf{T}} = \begin{pmatrix} s^2 I + \mathbf{p}\mathbf{p}^{\mathsf{T}} & \mathbf{p} \\ \mathbf{p}^{\mathsf{T}} & 1 \end{pmatrix}, T = ( s I 0 T p 1 ) , Ξ = T T T = ( s 2 I + p p T p T p 1 ) ,
where s > 0 s > 0 s > 0 is the ratio of the focal lengths and p ∈ R 2 \mathbf{p} \in\mathbb{R}^2 p ∈ R 2 the displacement of the principal point divided by f f f . By Theorem 17 (1) each visible axis d \mathbf{d} d satisfies Ξ d = λ d \Xi\mathbf{d} = \lambda\mathbf{d} Ξ d = λ d with λ > 0 \lambda> 0 λ > 0 , that is,
s 2 d ˉ + ( p ⋅ d ˉ + z ) p = λ d ˉ , p ⋅ d ˉ + z = λ z . s^2\bar{\mathbf{d}} + (\mathbf{p} \cdot\bar{\mathbf{d}} + z)\mathbf{p} = \lambda\bar{\mathbf{d}}, \qquad\mathbf{p} \cdot\bar{\mathbf{d}} + z = \lambda z. s 2 d ˉ + ( p ⋅ d ˉ + z ) p = λ d ˉ , p ⋅ d ˉ + z = λ z .
A visible axis is not the optical axis, whose vanishing line is at infinity, so d ≠ 0 \mathbf{d} \ne0 d = 0 . If z = 0 z = 0 z = 0 , the second equation gives p ⋅ d ˉ = 0 \mathbf{p} \cdot\bar{\mathbf{d}} = 0 p ⋅ d ˉ = 0 and, with λ > 0 \lambda> 0 λ > 0 , it follows that λ = s 2 \lambda= s^2 λ = s 2 . If z ≠ 0 z \ne0 z = 0 , substituting the second equation into the first gives λ z p = ( λ − s 2 ) d ˉ \lambda z\mathbf{p} = (\lambda- s^2)\bar{\mathbf{d}} λ z p = ( λ − s 2 ) d ˉ , so p = m d ˉ \mathbf{p} = m\bar{\mathbf{d}} p = m d ˉ for some m m m , and then
λ = 1 + m ∥ d ˉ ∥ 2 / z , s 2 = λ ( 1 − m z ) . (26) \lambda= 1 + m\lVert\bar{\mathbf{d}}\rVert^2/z, \qquad s^2 = \lambda(1-mz). \tag*{(26)} λ = 1 + m ∥ d ˉ ∥ 2 / z , s 2 = λ ( 1 − m z ) . (26)
Suppose some visible axis is tilted and case (2) does not hold. If two tilted axes have directions d \mathbf{d} d that are not parallel, p = 0 \mathbf{p} = 0 p = 0 . Otherwise these directions are all multiples of one unit vector u \mathbf{u} u , the tilted axes lie in the plane Θ \Theta Θ spanned by ( u , 0 ) (\mathbf{u},0) ( u , 0 ) and z ^ \hat{\mathbf{z}} z ^ , and p = h u \mathbf{p} = h\mathbf{u} p = h u . An untilted visible axis e \mathbf{e} e with e ˉ ⋅ u ≠ 0 \bar{\mathbf{e}} \cdot\mathbf{u} \ne0 e ˉ ⋅ u = 0 then gives h = 0 h = 0 h = 0 . If there is none, every untilted visible axis is normal to Θ \Theta Θ , and since case (2) does not hold, Θ \Theta Θ contains two visible tilted axes that are neither equal nor perpendicular. Write them as d a = ( c a , z a ) \mathbf{d}_a=(c_a,z_a) d a = ( c a , z a ) with c a 2 + z a 2 = 1 c_a^2+z_a^2=1 c a 2 + z a 2 = 1 , a = 1 , 2 a=1,2 a = 1 , 2 , so that m a = h / c a m_a=h/c_a m a = h / c a . Then (26) becomes
s 2 = 1 + τ a h − h 2 , τ a = c a z a − z a c a = 2 cot 2 θ a , s^2=1+\tau_a h-h^2,\qquad\tau_a=\frac{c_a}{z_a}-\frac{z_a}{c_a}=2\cot2\theta_a, s 2 = 1 + τ a h − h 2 , τ a = z a c a − c a z a = 2 cot 2 θ a ,
where c a = cos θ a c_a=\cos\theta_a c a = cos θ a and z a = sin θ a z_a=\sin\theta_a z a = sin θ a . Now τ 1 = τ 2 \tau_1=\tau_2 τ 1 = τ 2 only if θ 1 − θ 2 \theta_1-\theta_2 θ 1 − θ 2 is a multiple of π / 2 \pi/2 π /2 , that is, only if the axes are equal or perpendicular, so h = 0 h=0 h = 0 . In every case therefore p = 0 \mathbf{p}=0 p = 0 ; for a tilted axis λ = 1 \lambda=1 λ = 1 , and the first equation gives s = 1 s=1 s = 1 . The only camera that satisfies the conditions is the true one, and it is admitted.
Suppose finally that no axis is touching. In case (1) every visible axis has z = 0 z=0 z = 0 , and p = 0 \mathbf{p}=0 p = 0 with any s s s satisfies the conditions; by Theorem 17 (1) the cameras with s s s near 1 are admitted, so the focal length is not determined. In case (2) all the tilted axes have the same τ a = τ \tau_a=\tau τ a = τ , for a single axis trivially and for two perpendicular ones by the remark above. Then p = h u \mathbf{p}=h\mathbf{u} p = h u with s 2 = 1 + τ h − h 2 s^2=1+\tau h-h^2 s 2 = 1 + τ h − h 2 satisfies the conditions of every tilted axis, and of every untilted one, which is normal to Θ \Theta Θ so that e ˉ ⋅ u = 0 \bar{\mathbf{e}}\cdot\mathbf{u}=0 e ˉ ⋅ u = 0 ; by Theorem 17 (1) these cameras are admitted for h h h near 0. □
The exceptional configurations are classical. One frame with all three vanishing lines in view determines the camera unless one of its axes is parallel to the image plane, which is case (2), the failure of the orthocenter construction when a vanishing point is at infinity. A single image from a tilted camera showing only its horizon is also case (2): the principal point can slide along the line joining it to the vertical vanishing point; for a level camera the same image is case (1).
Online Resource 1 (Sect. S5) gives the case of two images that show only their horizons. A touching axis adds one condition, which may remove the family of case (2); for the focal length alone, this is the statement of Theorem 21 that a vanishing line touching the image away from c k ∗ \mathbf{c}_k^* c k ∗ determines f f f .
The convex program
Theorem 4 turns calibration from junctions into a concrete convex program, because each junction’s sign pattern is read from the junction alone, so the constraints can be written down without knowing K K K .
For a camera with known principal point and zero skew, ω ∗ = diag ( X , Y , 1 ) \omega^*=\operatorname{diag}(X,Y,1) ω ∗ = diag ( X , Y , 1 ) and positive-definiteness reduces to X , Y > 0 X,Y>0 X , Y > 0 , so the cameras consistent with M M M junctions form the feasible set of a linear program, whose extent in X X X and in Y Y Y is again a linear program. For the full camera, with skew and principal point free, positive-definiteness is a matrix inequality, which we impose with cutting planes; this requires nothing beyond a linear-programming solver. From noiseless junctions of independent frames, every parameter is recovered to within about one pixel (Online Resource 1, Sect. S11). From the junctions of a single frame, by Theorem 16, the program cannot close on a general camera; Online Resource 1 (Sect. S12) applies a robust form of it to real junctions.
Procedure.
(i) For each junction, read the three rank-one generators and their sign pattern from the junction alone (Theorem 4 ); each condition ν k > 0 \nu_k>0 ν k > 0 is then a linear inequality in the entries of ω ∗ \omega^* ω ∗ . (ii) Normalize ω 33 ∗ = 1 \omega^*_{33}=1 ω 33 ∗ = 1 and solve the linear program, with any objective, in a bounded box. In practice the box comes from loose prior bounds, for instance focal lengths between a tenth and ten times the image width and a principal point inside the image; it need only contain the true camera. (iii) If the solution is not positive-definite, add the cut v T ω ∗ v ≥ 0 \mathbf{v}^\mathsf{T}\omega^*\mathbf{v}\geq0 v T ω ∗ v ≥ 0 for the eigenvector v \mathbf{v} v of its most negative eigenvalue and solve again, until the smallest eigenvalue is nonnegative to tolerance. (iv) The extent of each entry of ω ∗ \omega^* ω ∗ is the value of a further linear program over the final feasible set. (v) Under noise the strict feasible set empties as junctions accumulate; replace it by a depth-k k k consensus, or weight each junction by its miss probability, as in Online Resource 1 (Sects. S7 and S8).
Proposition 24 (The convex program) Let M M M junctions be admitted by a camera K 0 K_0 K 0 , and normalize ω 33 ∗ = 1 \omega^*_{33}=1 ω 33 ∗ = 1 .
The set of ω ∗ \omega^* ω ∗ that admit all M M M junctions is convex: the intersection of the positive-definite cone with the 3 M 3M 3 M open half-spaces ν k ( m ) ( ω ∗ ) > 0 \nu_k^{(m)}(\omega^*)>0 ν k ( m ) ( ω ∗ ) > 0 of Theorem 4, one for each image line of each junction.
Run the procedure with the closed constraints ν k ( m ) ≥ 0 \nu_k^{(m)}\geq0 ν k ( m ) ≥ 0 in a compact box containing K 0 K 0 T K_0K_0^\mathsf{T} K 0 K 0 T . Then every linear program is feasible, the iterates ω t \omega_t ω t satisfy lim inf t λ min ( ω t ) ≥ 0 \liminf_t\lambda_{\min}(\omega_t)\geq0 lim inf t λ m i n ( ω t ) ≥ 0 , and every accumulation point satisfies all the junction
constraints and is positive semidefinite. In particular, for every τ > 0 \tau> 0 τ > 0 the stopping rule λ min ( ω t ) ≥ − τ \lambda_{\min}(\omega_t) \ge-\tau λ m i n ( ω t ) ≥ − τ is met after finitely many cuts.
Proof (1) By Theorem 4 , a junction is admitted exactly when its three coefficients ν k \nu_k ν k , each linear in ω ∗ \omega^* ω ∗ , are positive.
(2) The matrix K 0 K 0 T K_0K_0^{\mathsf{T}} K 0 K 0 T satisfies every junction constraint and every cut v T ω ∗ v ≥ 0 \mathbf{v}^{\mathsf{T}}\omega^*\mathbf{v} \ge0 v T ω ∗ v ≥ 0 , so every linear program is feasible, and, the box being compact, it has a solution ω t \omega_t ω t . Let v s \mathbf{v}_s v s be the unit eigenvector whose cut is added at step s s s , so that v s T ω s v s = λ min ( ω s ) \mathbf{v}_s^{\mathsf{T}}\omega_s\mathbf{v}_s = \lambda_{\min}(\omega_s) v s T ω s v s = λ m i n ( ω s ) . Every later iterate satisfies that cut, so for t > s t > s t > s
λ min ( ω s ) = v s T ( ω s − ω t ) v s + v s T ω t v s ≥ − ∥ ω s − ω t ∥ . \lambda_{\min}(\omega_s) = \mathbf{v}_s^{\mathsf{T}}(\omega_s-\omega_t)\mathbf{v}_s + \mathbf{v}_s^{\mathsf{T}}\omega_t\mathbf{v}_s \ge-\lVert\omega_s-\omega_t\rVert. λ m i n ( ω s ) = v s T ( ω s − ω t ) v s + v s T ω t v s ≥ − ∥ ω s − ω t ∥ .
If ω t m → ω ˉ \omega_{t_m} \to\bar{\omega} ω t m → ω ˉ along a subsequence, taking s = t m s=t_m s = t m and t = t m + 1 t=t_{m+1} t = t m + 1 gives λ min ( ω t m ) ≥ − ∥ ω t m − ω t m + 1 ∥ → 0 \lambda_{\min}(\omega_{t_m}) \ge-\lVert\omega_{t_m}-\omega_{t_{m+1}}\rVert\to0 λ m i n ( ω t m ) ≥ − ∥ ω t m − ω t m + 1 ∥ → 0 , so λ min ( ω ˉ ) ≥ 0 \lambda_{\min}(\bar{\omega}) \ge0 λ m i n ( ω ˉ ) ≥ 0 by continuity; and ω ˉ \bar{\omega} ω ˉ satisfies the junction constraints, which hold at every iterate and are closed. Finally, if λ min ( ω t ) < − τ \lambda_{\min}(\omega_t) < -\tau λ m i n ( ω t ) < − τ for infinitely many t t t , these iterates have, by compactness, a convergent subsequence whose limit has λ min ≤ − τ < 0 \lambda_{\min} \le-\tau< 0 λ m i n ≤ − τ < 0 , a contradiction. Hence lim inf t λ min ( ω t ) ≥ 0 \liminf_t \lambda_{\min}(\omega_t) \ge0 lim inf t λ m i n ( ω t ) ≥ 0 , and for every τ > 0 \tau> 0 τ > 0 the stopping rule λ min ( ω t ) ≥ − τ \lambda_{\min}(\omega_t) \ge-\tau λ m i n ( ω t ) ≥ − τ is met after finitely many cuts. □
Under noise.
The strict intersection of admissible sets loses coverage as junctions accumulate, because a single wrong interval suffices to exclude the truth. Online Resource 1 (Sect. S8) gives a depth-κ \kappa κ consensus whose coverage follows a binomial prediction, and a log-plausibility built on the noise analysis of Sect. S7. In simulation, its maximizer needs ten to twenty junctions to come within 10% of f f f at σ = 0.5 \sigma= 0.5 σ = 0.5 px, several images’ worth at the 1.8 full junctions per image of York Urban (Online Resource 1, Sect. S12).
Experiments
We check Theorem 6 in simulation and then test the predictions on real images. Online Resource 1 (Sect. S10) gives the full protocol, the checks of the noise model of Sect. S7, the identifiability transition behind Theorem 21 , and the robustness of the bound to the protocol’s idealizations, among them other noise levels, a tilted camera and a misplaced principal point; the dependence on edge length is analyzed in Sect. S7, lens distortion in Sect. S6, and further experiments are in Sect. S13. Offsetting the assumed principal point by up to 20 px leaves the coverage of the true focal length at 94 to 98% at all three fields of view.
The focal-length bound
Corners are sampled uniformly over orientations and over a 1000 × \times × 1000 px image, at fields of view of 40°, 60° and 90° (f = 1374 f = 1374 f = 1374 , 866 and 500 px), and each edge is observed as a 150 px segment whose endpoints carry Gaussian noise of standard deviation σ \sigma σ (Online Resource 1, Sect. S10). Over 1000 corners per field of view, with σ = 0.5 \sigma= 0.5 σ = 0.5 px and 150 px edges, the admissible set F F F contained the true f f f in 98%, 97% and 97% of cases at 40°, 60° and 90°, and it was a single interval in all 3000 cases, as Theorem 6 requires. It was unbounded above for 90%, 81% and 66% of corners, and a check at σ = 0 \sigma= 0 σ = 0 confirmed in 3000 of 3000 cases that unboundedness coincides with the raw image angles passing the orthographic fork-or-arrow rule, as Theorem 6 (2) states.
The lower bound rises with distance from the center: the median of f min / f f_{\min}/f f m i n / f is 0.08, 0.15 and 0.21 in the inner third of the image and 0.29, 0.41 and 0.52 in the outer third, at the three fields of view (Online Resource 1, Sect. S10). An upper bound appears for 13%, 25% and 43% of outer-third corners, at a median of 1.3 to 1.4 times f f f . The similarity law of Theorem 7 accounts for most of the variation with position. Measured in units of ρ \rho ρ at σ = 0 \sigma= 0 σ = 0 , the median of f min / ρ f_{\min}/\rho f m i n / ρ stays within a factor of two across bins of distance from the center and fields of view, whereas f min / f f_{\min}/f f m i n / f ranges over a factor of seven (Online Resource 1, Sect. S10). The growth of the bound with radius is therefore mostly the factor ρ \rho ρ of Theorem 7; the remainder reflects how the angles ψ i \psi_i ψ i are distributed over junctions.
Real images
On the 102 images of the York Urban Database [39 ] , the admissible set contained the true focal length for 179 of 181 real junctions, and the certified sets of Theorem 12 for all of them. Only two junctions bounded the focal length from above: real corners avoid the neighborhoods of the edge-on lines, so the bounds do not calibrate this nearly level camera. Calibration from three vanishing points does better where line families are available. Online Resource 1 (Sect. S12) gives the data, the junction extraction and every number.
Conclusion
A right-angle corner constrains an uncalibrated camera through a single identity: three image lines through a point are the image of such a corner under a given camera exactly when a product of three forms, each linear in the dual image of the absolute conic, is negative. Everything in this paper follows from it. One junction admits a convex cone of cameras, the same at every junction up to a linear change of coordinates, and a closed-form interval when only the focal length is unknown. With the vertex position known, these bounds can be certified against any bounded error in the measured edge directions. When the corners belong to one rectilinear structure, their junctions reject, for each axis whose edge-on line passes through the image, exactly the cameras under which that axis’s vanishing point is not orthogonal to the other two, and no other cameras near the truth: junctions carry at most the information of the vanishing points. For the focal length, a junction bounds it from above exactly inside circles whose diameters join pairs of vanishing points, and the corners of one structure determine it when the edge-on line of a tilted axis passes through the image. Since each junction’s constraint is computed from the image alone, calibration from junctions is a convex feasibility problem.
The experiments agree with the single-junction results, and on real images they mark the limit of the approach. Real corners avoid the neighborhoods of the edge-on lines, so a nearly level camera with an ordinary field of view obtains a near-tight lower bound on its focal length rather than an estimate, and line families, where they exist, remain the better route. The experiments do not reach the cluttered, close-range regime that motivates the theory; whether cluttered interiors and automatic junction detection change this picture is the open empirical question, and Online Resource 1 (Sect. S12) discusses this and the other limitations of the evaluation. Several theoretical questions remain open as well. Radial distortion acts on each junction by an explicit transformation (Online Resource 1, Sect. S6), which suggests estimating the distortion coefficient from junctions rather than treating it as a nuisance. The admitted cameras are described globally when one edge-on line passes through the image (Theorem 15 ), but not in general. Nor is the trihedral with known non-right angles characterized.
Declarations
Funding.
No funding was received for conducting this study.
Competing interests.
The author has no competing interests to declare that are relevant to the content of this article.
Ethics approval and consent.
Not applicable.
Data availability.
The York Urban Database [39 ] analyzed in this study is publicly available from its authors. No new image data were generated.
Code availability.
The code that verifies every identity symbolically and regenerates every number and figure in this paper is submitted with this manuscript as Online Resource 2 and will be released in a public GitHub repository, whose address will be given in the published version.
Author contributions.
The author is the sole author of this work, with the assistance described below.
This work was carried out with substantial assistance from a large language model, Claude (Anthropic), in the versions available during 2026, including Claude Opus 5.5. The author posed the research question, chose the problems to pursue, decided what to prove, what to include and what to set aside, and directed every revision, including the responses to referee reports. Under that direction, the tool proposed and developed derivations and proofs, including those of the main theorems; wrote the symbolic verification code and the experiment and figure code; ran the experiments on data that the author obtained; drafted and revised the text; and located and checked references. Every algebraic identity in the paper is checked symbolically by the supplied code, every reported number is regenerated by it, and every cited reference was checked against its publisher or an authoritative index. The author checked every theorem and proof personally, reviewed all the results, and takes full responsibility for the content of the paper.
References