Correspondence-Free Camera Pose Estimation by Matching Moments
The blind perspective-n-point (PnP) problem is to estimate the pose of a calibrated camera from 2D and 3D point sets with unknown correspondences. We show that, for complete, noiseless observations, fourteen permutation-invariant image moments up to order four identify a fixed camera pose for almost every 3D point set containing at least twenty points.
From the abstract. Our summary is in progress.
Full paper
Correspondence-Free Camera Pose Estimation by Matching Moments
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.20797 (PDF).
Abstract
The blind perspective-n-point (PnP) problem is to estimate the pose of a calibrated camera from 2D and 3D point sets with unknown correspondences. We show that, for complete, noiseless observations, fourteen permutation-invariant image moments up to order four identify a fixed camera pose for almost every 3D point set containing at least twenty points. Our learning-free method, MomentPnP, matches these moments between the observed 2D points and the projected 3D points to initialize a camera pose without correspondences and refines the pose and correspondence weights using expectation–maximization. Across the test sets of three benchmarks, our method reduces median rotation error by 5–170\times relative to the best learned baseline, both with and without outliers. We recover accurate poses even with as many outliers as inliers. On dense ETH3D scans, pose accuracy improves as the point sets grow, even as individual correspondences become harder to resolve.
n-point with MomentPnP. The inputs are (a) an unordered set of 2D SIFT points [49] in a Sacré-Cœur image from the Phototourism dataset [69, 37], tracked by its structure-from-motion reconstruction [64], (b) the unordered 3D point set of those tracks, and known camera intrinsics K. The outputs are (c) the camera pose, with the matched model points and their rays in pink, and (d) the correspondences between projected model points (blue crosses) and observed 2D points (orange).1 Introduction
The blind PnP problem is to estimate a calibrated camera’s pose from unordered 2D points and 3D model points, without given correspondences [54] (Fig. 1). It enables localization from geometry alone when compatible visual descriptors are deliberately omitted [82] or unavailable, as for laser scans [7]. The sets must still share scene structure: inlier 2D points are projections of model points under a common camera pose, while either set may contain unmatched points. Known pairs would give the pose by PnP [44], but the number of possible pairings grows superpolynomially with the set sizes [24].
Local methods alternate pose estimation and correspondence updates, making their success sensitive to initialization [11, 54]. Global methods search pose space by branch and bound [4, 7, 6], with computational cost driven by the regions that must be examined and excluded. Learned methods predict correspondences from coordinates, using information acquired from training data [48, 5, 82]. These limitations motivate estimating the pose from the whole point sets before resolving matches.
Because a known 3D model limits how its points can appear in an image, feature averages of the projected model constrain the pose without any pairing of points [72, 60]. Mean and covariance describe position and spread, but distinct projections can share them (Fig. 2). Higher-order moments, averages of products of point coordinates [34, 19], capture shape beyond the mean and covariance [31] and can give the pose of planar point sets. Whether a fixed number of moments determines a perspective camera pose without pairing points was, to our knowledge, open.
Contributions. We introduce MomentPnP (Sec. 4), a learning-free blind PnP solver that estimates the camera pose before the correspondences. It adjusts the six pose parameters until averages of bounded Fourier features over the projected model match those over the observations, after subtracting the expected effect of outliers in both sets [23]. This comparison pairs no points. On complete inputs, it matches fourteen polynomial moments, and we prove that noiseless moments determine the pose under perspective for almost every model of at least twenty points (Theorem 1). With outliers and noise, finitely many Fourier frequencies identify the pose and bound its error by the residual plus sampling and noise terms (Theorem 2).
Empirical results. On released blind PnP benchmarks, MomentPnP has a 5 to 170 times smaller median rotation error than the best learned baseline, and 82 to 97% of frames are within 1^{\circ} with as many outliers as inliers (Tab. 1). On rendered ETH3D laser scans [65], its median rotation error falls to 0.00007^{\circ} at one million points (Fig. 8). In full scene reconstructions, it localizes 35 of 39 ETH3D images within 1^{\circ} (Tab. A18).
2 Related work
Blind PnP. Methods differ in how they couple pose and correspondences. Hypothesize-and-test methods such as P3P-RANSAC [18] sample triples of candidate pairs, but correct triples become unlikely as the sets grow. Local methods such as SoftPOSIT [11] and BlindPnP [54] jointly estimate pose and soft correspondences from an initial pose or pose prior, as do recent refinements [3, 70]. Global methods such as GOPAC [7] and GOSMA [6] search pose space by branch and bound [27, 4, 77], at a cost growing with the search domain. Learned methods such as Deep Blind PnP [48] and BPnPNet [5] predict correspondences from coordinates and then solve PnP. GoMatch [82] does so for localization against retrieved views, and MinCD-PnP [1] adds color images and surface normals. All rely on correspondences, a pose prior or pose search.
Point-set registration. Registering point sets of equal dimension also couples transformations and correspondences. Softassign [20], EM-ICP [21] and coherent point drift [55] alternate between soft correspondences and a transformation, which we adopt for refinement under perspective projection. Moment-based methods avoid correspondences by comparing moments. They have been used for planar object pose [72], affine registration [31] and planar shapes under homographies [16]. Sketching methods also average sines and cosines over whole datasets [23]. Because these features are bounded, estimators that match their averages remain accurate when a fraction of the data are outliers [8]. Correspondence-free pose estimation (CFPE) [60] comes closest to our setting by matching averages of nonlinear features under perspective projection, but its planar experiments start near the true pose. We estimate a perspective camera pose from feature averages of whole point sets, without a pose prior, with outliers in both sets, before matching points.
Kernel mean embeddings. Averages of feature maps represent a distribution as a kernel mean embedding, and maximum mean discrepancy measures the distance between two embeddings [22]. For characteristic kernels, equal embeddings imply equal distributions [71]. Our feature averages are embeddings of this kind, but we need identification only among the projections of one known model. Sec. 4.3 proves it from fourteen moments on complete inputs and from finitely many Fourier features with outliers.
Pose verification. A fitted pose can be wrong in two ways. For planar targets, two poses can give nearly the same image even with known correspondences [58, 66]. Without correspondences, a wrong pose can also place projections near many observations by chance. Desolneux et al. [14] judge a structure by how often it would arise at random, and Moisan and Stival [53] apply this test to two-view matching. We check alignment against randomly placed projections and compare each accepted pose with its half-turn alternatives (Sec. 4.1).
3 Problem statement
Input & camera. We are given n 2D points (observations) \mathcal{U}=\{\bm{u}_{i}\}_{i=1}^{n}\subset\mathbb{R}^{2}, N model points \mathcal{Y}=\{\bm{y}_{j}\}_{j=1}^{N}\subset\mathbb{R}^{3} and the intrinsic matrix K of the camera, with zero skew and positive focal lengths. No correspondences between the two point sets are given [54, 5]. A pose \xi=(R,\bm{t})\in\mathrm{SO}(3)\times\mathbb{R}^{3} maps a model point \bm{y} to camera coordinates \bm{x}=R\bm{y}+\bm{t}. If its depth x_{3} is positive, its image \operatorname{proj}(\bm{x}) is the first two entries of K\bm{x}/x_{3} [29]. We write \bm{p}_{j}(\xi)=\operatorname{proj}(R\bm{y}_{j}+\bm{t}).
Correspondences, outliers & noise. The correspondences form an unknown map \sigma:\{1,\dots,n\}\to\{1,\dots,N\}\cup\{\varnothing\}. We set \sigma(i)=j when observation i is the image of model point j, and \sigma(i)=\varnothing when it is the image of no model point. Distinct observations correspond to distinct model points. The m corresponding pairs are inliers, and the remaining n-m observations and N-m model points are outliers [5, 82]. The number m is not known. Complete inputs have n=N=m. At the true pose \xi^{\star}, every inlier model point has positive depth, and we model each inlier observation as
\bm{u}_{i}=\bm{p}_{\sigma(i)}(\xi^{\star})+\bm{w}_{i},\qquad\bm{w}_{i}\sim\mathcal{N}(0,s^{2}I_{2}),with i.i.d. noise \bm{w}_{i} of unknown standard deviation s pixels per coordinate. This noise also approximately absorbs model errors [29].
Task. Blind PnP is the task of estimating, from \mathcal{U}, \mathcal{Y} and K, the true pose \xi^{\star} and the correspondences \sigma of Eq. 1.
4 MomentPnP
In blind PnP (Sec. 3), MomentPnP estimates the camera pose from observations, a 3D model and the intrinsics, without correspondences. In general, both point sets contain outliers. Complete inputs, without outliers, are an exception that MomentPnP treats separately when this is known.
4.1 Preliminaries
Polynomial Moments. Moments are statistical averages of products of point coordinates, and their order g is the number of factors [34, 19]. Averages need no pairing of points, so earlier correspondence-free methods use moments [72, 31, 16], and we use orders one to four, \mathcal{M}_{g}. Orders three and four capture asymmetry and concentration, which separate shapes with equal centroid and covariance (Fig. 2a–d).
For an observation \bm{u} in pixels, the calibrated point \bm{u}_{\mathrm{cal}} consists of the first two coordinates of K^{-1}(\bm{u}^{\top},1)^{\top}, where K is the intrinsic matrix [29]. The affine map h(\bm{u})=\mbox{(u_(cal)-u_(cal))/r_(cal)} centers calibrated points at the mean \bar{\bm{u}}_{\mathrm{cal}} of the calibrated observations and divides by their root-mean-square radius r_{\rm cal}, which keeps the coordinates well conditioned [28]. We write \bm{z}=h(\bm{u}) for the normalized point, and the same map normalizes the projection \bm{p}_{j}(\xi) of each model point at a pose \xi (Sec. 3).
Stacking the fourteen monomials of orders one to four of a normalized point \bm{z} gives the feature vector \bm{\phi}_{4}(\bm{z})=(z_{1},z_{2},z_{1}^{2},z_{1}z_{2},z_{2}^{2},\dots,z_{2}^{4})\in\mathbb{R}^{14}. Its averages \bm{\mu}_{\mathcal{U}}=\frac{1}{n}\sum_{i}\bm{\phi}_{4}(h(\bm{u}_{i})) over the observations and \bm{\mu}_{\mathcal{Y}}(\xi)=\frac{1}{N}\sum_{j}\bm{\phi}_{4}(h(\bm{p}_{j}(\xi))) over the projections are the moments of both point sets, and on complete inputs they determine the pose (Theorem 1).
Trigonometric moments. Monomial features fail with outliers, because one distant outlier can dominate the moments (Fig. 2e). Like sketching methods [23], MomentPnP therefore uses weighted cosines and sines \bm{\phi}_{F}(\bm{z})=(\cos\bm{k}^{\top}\bm{z},\sin\bm{k}^{\top}\bm{z})_{\bm{k}\in\mathrm{F}} over a finite set \mathrm{F} of frequencies.1 The Fourier feature averages \bm{\mu}_{\mathcal{U},F} and \bm{\mu}_{\mathcal{Y},F}(\xi) are defined like \bm{\mu}_{\mathcal{U}} and \bm{\mu}_{\mathcal{Y}}(\xi), with \bm{\phi}_{F} and h_{F} in place of \bm{\phi}_{4} and h. They are the trigonometric moments [51] of the point distribution. Because the features are bounded, one outlier has a bounded effect, and low frequencies describe the coarse layout as low orders do [35, 38].
\mathcal{M}_{g}. Third-order moments separate (a) and (b), fourth-order moments the noisy versions (c, d). (e) An outlier at distance r among n=100 points changes fourth-order moments in proportion to r^{4} and Fourier feature averages by at most 2/n.As in the benchmark protocol [5], we consider image outliers are spread uniformly over the rectangle that bounds the observations, and model outliers through the box that bounds the 3D model. On average, an image outlier adds \bm{\mu}_{\mathcal{U},0}, the average of \bm{\phi}_{F} over the rectangle, and a model outlier adds \bm{\mu}_{\mathcal{Y},0}(\xi), the average of \bm{\phi}_{F} over the projections of points spread through the box. With a fraction \eta of outliers in each point set, \bm{\mu}_{\mathcal{U},F} and \bm{\mu}_{\mathcal{Y},F}(\xi) mix the inlier averages with \bm{\mu}_{\mathcal{U},0} and \bm{\mu}_{\mathcal{Y},0}(\xi). The inlier averages agree at the true pose, so the expected difference there is \eta(\bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}(\xi)).
Definition 1 (Moment matching).
Moment matching minimizes
\mathcal{L}_{F}(\xi,\eta)=\lVert\bm{\mu}_{\mathcal{U},F}-\bm{\mu}_{\mathcal{Y},F}(\xi)-\eta\big(\bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}(\xi)\big)\rVert^{2}over the pose \xi and \eta. The objective is quadratic in the unknown \eta, so the best \eta at each pose has a closed form. On complete inputs, \eta=0 and no outlier can dominate the moments, so they replace the Fourier feature averages, and we minimize \mathcal{L}_{4}(\xi)=\mbox{μ_U-μ_Y(ξ)²} (Theorem 1).
Expectation–maximization (EM). EM [13, 21, 55] then refines the pose with every observation, each explained as a uniform outlier over the rectangle or a noisy projection of a model point in front of the camera (Fig. 3c). A refined pose is correct only if the observations lie much closer to their nearest projections than to the next, which we test against randomly placed projections [14, 53].
Definition 2 (Association level).
For observation i, let d_{i,1}\leq d_{i,2}\leq\cdots be the distances to the projections in increasing order. For projections placed as a homogeneous Poisson process of any density, each E_{i}=-\ell\log(1-d_{i,1}^{2}/d_{i,\ell+1}^{2}), which compares the nearest distance with the local spacing over \ell\leq 8 neighbors, would be unit exponential [9]. Observation i is associated when E_{i}\leq\pi/16, that is, when its nearest projection lies within about a quarter of the average spacing. The association level is the probability under random placement, with independent observations, of at least the observed number of associated observations.
4.2 Camera pose estimation
MomentPnP estimates the pose by matching moments and then verifies it (Fig. 3, Algorithm 1). Step 2 adjusts the six pose parameters until the feature averages of the projected model agree with those of the observations, after subtracting the expected effect of outliers in both sets, which pairs no points. Because the objective has many local minima [57], Step 1 supplies starting poses. Because averages ignore the individual observations, Step 3 refines the matched pose until it explains each observation on its own. Because a wrong pose can still align with the observations by chance, or through an ambiguity that averages cannot resolve, Step 4 checks the refined pose before it is returned.
Step 1: Camera initialization. Without a pose prior, the image may show any part of the model, so MomentPnP first places candidate cameras throughout it. The candidates combine camera centers on a grid over an enlarged bounding box of the model with viewing directions over the sphere and roll angles about each. We score each candidate, as in GOSMA [6], by how much more densely its projections cluster at the observations than around them, measured by the ratio of a narrow to a broad smoothing of the projections, and refine the best candidates by this score.
Step 2: Moment matching. Step 2 fits the pose by minimizing the moment-matching objective of Definition 1. For a candidate camera \xi, a taper fades out projections outside the rectangle of the observations, so only the model points that project near the observations contribute to \bm{\mu}_{\mathcal{Y},F}(\xi), and the average changes smoothly as points enter or leave the view [26]. Starting from the candidates with distinct orientations and the lowest \mathcal{L}_{F}, Levenberg–Marquardt [45, 52] minimizes \mathcal{L}_{F} over the six pose parameters under perspective projection. The fit proceeds from coarse to fine. The cutoff K_{F} rises from 4 to 20 in five stages, and after each stage only the fits of lowest \mathcal{L}_{F} with distinct orientations continue. The best fits go to EM (Fig. 3b).
Step 3: Expectation–maximization refinement. For refinement we adapt EM-ICP and coherent point drift [21, 55] to perspective projection. EM refines each fit with the mixture of uniform outliers and noisy projections of Sec. 4.1, and estimates the noise standard deviation and the outlier probability together with the pose (Fig. 3c). The refined poses are then ranked by the likelihood of the observations as a Poisson process of uniform outliers and Gaussian peaks at the projections [9]. A refined pose can still be wrong in two ways. It can place projections near many observations by chance, or it can be one of the poses that give nearly the same image as the truth. Step 4 tests for both.
Step 4: Alignment check and pose ambiguity resolution. An observation is matched when its nearest projection explains it better than the outlier term does. The alignment check accepts a refined pose when enough observations are matched, their median ratio d_{i,1}/d_{i,2} is small, and the association level of Definition 2 is very small. Acceptance does not settle the pose of a nearly symmetric or shallow model, because other poses give nearly the same image and the averages cannot separate them (Sec. 4.3). For a distant camera [12], the poses that give the image the same mean and covariance as an accepted pose with rotation R are its seven alternatives RH_{k} and DRH_{k} in Fig. 3d, where H_{1},H_{2},H_{3} turn the model by 180^{\circ} about the principal axes of its matched points, H_{0} is the identity, and D turns the camera by 180^{\circ} about the optical axis. That these seven are all the poses the mean and covariance cannot separate is proved in Sec. A.7.2 Which of them EM then prefers is not proved, but on the benchmarks 63 of the 64 poses that an alternative replaced end within 1^{\circ} (Sec. C.7). MomentPnP therefore refines the most likely accepted pose and its seven alternatives by EM under perspective, checks each, and returns the most likely of them. Without an accepted pose, the search widens and then returns the most likely refined pose. At the returned pose, each matched observation corresponds to its nearest projection, and every other observation is an outlier, \hat{\sigma}(i)=\varnothing. When several observations share a nearest projection, only the closest keeps it, so distinct observations correspond to distinct model points. The refit of an accepted pose to its correspondences is given in App. B.
4.3 Uniqueness and accuracy of the pose
1^{\circ}. Model points come from the released structure-from-motion reconstructions of Cambridge Landmarks [40], Phototourism [37], 7-Scenes [62] and ETH3D [65], and from LiDAR for Data61 [56].Moment matching recovers the pose only if two properties hold. On ideal complete inputs, its objective vanishes at the true pose alone (uniqueness). With noise and outliers, its minimizer stays within a bounded distance of the true pose (accuracy). Theorem 1 proves uniqueness for complete inputs. Theorem 2 builds on it to prove both for \mathcal{L}_{F}.
Uniqueness for complete inputs. On complete noiseless inputs, \mathcal{L}_{4} vanishes at the true pose and, for a symmetric model such as a cube, at a second pose. Such models are exceptional. Equal moments at a second pose impose polynomial equations on the model points, and a dimension count shows that almost no model of N\geq 20 points satisfies them.
Theorem 1 (Pose uniqueness for complete inputs).
Fix the true pose \xi^{\star} of a calibrated camera. For almost every model of N\geq 20 points in front of the camera, every pose that keeps the points in front of the camera and gives their projections the same fourteen moments as \xi^{\star} equals \xi^{\star}.
1^{\circ}.Only the true pose therefore has \mathcal{L}_{4}=0, which justifies minimizing \mathcal{L}_{4}.3
Accuracy of the Fourier fit. On ideal inputs, zero \mathcal{L}_{F} over all frequencies determines the inlier projections and the outlier fraction, since the cosine and sine averages uniquely determine a distribution [38]. The pose is then determined by Theorem 1. Observation noise and finite sampling of the outliers generally make the loss nonzero even at the true pose. Theorem 2 bounds the error at a finite cutoff: for every cutoff K_{F} above a threshold, the loss and the perturbations bound the distance \operatorname{dist} between any candidate (\xi,\eta) and the truth (\xi^{\star},\eta^{\star}). This distance combines the rotation, translation and image-outlier fraction errors.
Theorem 2 (Accuracy of the Fourier fit).
Let the outliers be drawn independently and uniformly from the rectangle of the observations and the bounding box of the model, and let a compact set \Theta of pairs (\xi,\eta) contain (\xi^{\star},\eta^{\star}), with every pose keeping the box in front of the camera and \eta\in[0,1). For almost every model of m\geq 20 inlier points and every cutoff K_{F} above a threshold K_{0}, there is a constant C_{F} such that, for each \delta\in(0,1), with probability at least 1-\delta over the outliers, every (\xi,\eta)\in\Theta satisfies
\operatorname{dist}\leq C_{F}\big(\sqrt{\mathcal{L}_{F}(\xi,\eta)}+\Delta_{\delta}\big).The error term \Delta_{\delta} adds the sampling and grid errors of the outlier averages, the noise error and twice the difference of the image and model outlier fractions.
At the true pair, \sqrt{\mathcal{L}_{F}} is at most \Delta_{\delta}, so the minimizing pair lies within 2C_{F}\Delta_{\delta} of the truth, and \mathcal{L}_{F} can select fits for EM. The constant C_{F} is large when \mathcal{L}_{F} grows slowly away from the truth on ideal inputs. The error term measures the departure from this ideal, and only its sampling part, which shrinks as the point sets grow, depends on \delta.
For nearly symmetric and distant planar models, the averages barely change between a pose and its alternatives in Sec. 4.2, and C_{F} is large. Step 4 therefore compares these alternatives by EM on the individual observations. Sec. 5 tests MomentPnP in practice, and the appendix tests it beyond the theorems’ assumptions, with structured outliers (Fig. A14), partial views (Tab. A14) and large depth spreads (Tab. A19); proofs and further conditions in Secs. A.2 and A.6, further details in Secs. C.3 and C.7.
5 Experiments
- No data
- no outliers
- with outliers
- no outliers
- with outliers
- no outliers
- with outliers
- Method
- Err. \downarrow
- Acc. \uparrow
- Err. \downarrow
- Acc. \uparrow
- Err. \downarrow
- Acc. \uparrow
- Err. \downarrow
- Acc. \uparrow
- Err. \downarrow
- Acc. \uparrow
- Err. \downarrow
- Acc. \uparrow
- Time (s) \downarrow
- Learning-free baselines
- P3P-RANSAC [18]
- 131 / 8,482
- 0.0
- 127 / 7,091
- 0.0
- 138 / 161
- 0.0
- 124 / 123
- 0.0
- 132 / 5,536
- 0.0
- 137 / 4,734
- 0.0
- 30
- SoftPOSIT [11]
- 0.063 / 0.31
- 86.0
- 9.47 / 36
- 34.0
- 0.27 / 0.26
- 80.0
- 30 / 14
- 0.0
- 22 / 67
- 41.0
- 7.63 / 29
- 37.0
- 1.0–30
- GOSMA [6]
- 135 / 342
- 0.0
- 78 / 297
- 0.0
- 49 / 75
- 0.0
- 43 / 56
- 0.0
- 121 / 528
- 0.0
- 128 / 494
- 0.0
- 0.25–2.9
- EM-ICP (ours) [21]
- 0.009 / 0.011
- 99.0
- 34 / 130
- 31.0
- 0.16 / 0.12
- 94.0
- 28 / 3.74
- 6.0
- 0.092 / 0.20
- 93.0
- 148 / 415
- 0.0
- 30
- CFPE (reproduced) [60]
- 0.123 / 0.34
- 91.5
- 93 / 223
- 0.0
- 0.674 / 0.15
- 64.4
- 129 / 10
- 0.0
- 0.100 / 0.22
- 96.8
- 102 / 199
- 0.0
- 0.47–2.02
- Learned baselines
- Deep Blind PnP [48]
- 0.045 / 0.16
- 96.8
- 0.43 / 2.08
- 59.0
- 3.35 / 0.83
- 15.6
- 27 / 11
- 0.0
- 130 / 347
- 1.8
- 138 / 428
- 0.0
- 0.24–0.33
- BPnPNet [5]
- 0.85 / 5.40
- 53.4
- 14 / 74
- 1.7
- 7.50 / 1.91
- 6.0
- 29 / 11
- 0.0
- 0.76 / 2.90
- 55.4
- 16 / 71
- 0.7
- 0.16–0.22
- GoMatch [82]
- 0.14 / 0.59
- 86.0
- 0.33 / 1.68
- 62.3
- 100 / 16
- 0.1
- 70 / 14
- 0.0
- 143 / 268
- 0.0
- 148 / 318
- 0.0
- 0.02–0.04
- MomentPnP (ours)
- 0.009 / 0.013
- 100.0
- 0.022 / 0.051
- 91.0
- 0.16 / 0.096
- 97.3
- 0.34 / 0.20
- 82.3
- 0.092 / 0.18
- 100.0
- 0.093 / 0.22
- 97.0
- 0.03–0.06
- Deep Blind PnP
- 33
- 92
- 69
- 20
- 48
- 4
- 69
- 50
- 13
- 33
- BPnPNet
- 0
- 19
- 36
- 0
- 12
- 0
- 0
- 3
- 0
- 1
- GoMatch
- 15
- 78
- 17
- 1
- 23
- 8
- 62
- 6
- 3
- 17
- CFPE (reproduced)
- 81
- 92
- 100
- 100
- 95
- 0
- 0
- 0
- 0
- 0
- MomentPnP (ours)
- 100
- 100
- 100
- 100
- 100
- 100
- 96
- 100
- 87
- 95
- Images
- 27
- 36
- 36
- 70
- 169
- 26
- 26
- 36
- 38
- 126
Metrics. We report the median rotation error, the angle in degrees between estimated and true rotations [5], and the median relative translation error, the distance between the estimated and true translations divided by the true translation length [44]. Accuracy is the percentage of frames with rotation error below 1^{\circ}, counting missing estimates as failures.
5.1 Blind PnP benchmarks
Benchmarks. We compare learned and learning-free blind PnP methods, including our reproduction of CFPE [60], on the test sets of the released MegaDepth [46], ModelNet40 [79] and Data61 [56] benchmarks. EM-ICP (ours) is our own Step 3, the EM refinement of Sec. 4.2, run from random poses without Steps 1 and 2 and restarted until the time limit, so Tab. 1 also shows what refinement alone achieves. In the benchmark protocol [5], inliers are the released 2D–3D pairs, and outliers are drawn uniformly from the bounding box of each point set. We tuned the method on the test sets, so we also test on 1,000 held-out frames per dataset from the training split. Tab. 1 shows that no method has a lower median rotation error than MomentPnP on any test set. Compared with the best learned baseline, MomentPnP’s median rotation error is 5 to 170 times smaller, and its median translation error is 9 to 320 times smaller. On the sampled test frames of Tab. 1, its accuracy is 97.3 to 100% without outliers and 82.3 to 97.0% with as many outliers as inliers. Averaged over the three test sets without outliers, 99.1% of frames are within 1^{\circ}, against 38.3% for the best learned baseline. The curve of MomentPnP lies above those of all learned baselines at every threshold (Fig. 5, Fig. A3). On the held-out frames, its accuracy is 98.6 to 100% without outliers and 72.4 to 91.4% with as many outliers as inliers (Tab. A8).
Further datasets. We also evaluate on Cambridge Landmarks [40], Phototourism [69, 37], 7-Scenes [68, 62] and ETH3D [65]. The tracked 2D points of each image and the model points of their tracks form complete inputs (Tab. 2). Learned methods use the MegaDepth benchmark weights, and MomentPnP uses the same settings as on the earlier benchmarks. All 169 MomentPnP rotation errors are below 1^{\circ}, compared with 95% for reproduced CFPE and at most 48% for learned methods. With half as many uniform outliers as inliers in each point set, MomentPnP reaches 95% accuracy on the 126 images with at most 2,000 inliers (Tab. A12). The best learned baseline reaches 33%. On all 169 images, without the inlier limit, MomentPnP reaches 87% and the best learned baseline 29% (Tab. A13). Fig. 4 shows real scenes (Fig. A7) and Fig. 6 frames of the point-only benchmarks.
5.2 Large point sets and full scenes
Scaling to large point sets. Beyond the benchmark sizes of up to about 12,000 points, more points reduce the random part of the noise in the moments but crowd the projections that each correspondence must separate. We test both effects on three ETH3D laser scans [65], each rendered into three views with one pixel of noise, ignoring occlusion. From 1,000 to 256,000 points, the median rotation error falls from 0.002^{\circ} to 0.00009^{\circ} (Fig. 8), and at one million points it is 0.00007^{\circ} (Fig. 7, Tab. A14), in about 20 minutes per frame with GPU memory linear in the point count (Fig. A1). The learned baselines bring at most two of the nine poses within 1^{\circ} and return no pose from 64,000 points (Tab. A17).
At one million points, 21 to 25% of the 2D points lie nearer to another projection than to the one that generated them, up from none at 1,000 points, so a nearest-projection labeling cannot resolve them (Fig. A11). The rotation error nevertheless falls over the same range, because moment matching and EM use every point without requiring each correspondence to be correct.
Full scene reconstructions. We also localize single images against complete ETH3D scene reconstructions, where each query image observes an unknown part of the whole scene without a pose prior. MomentPnP recovers all 39 tuning queries within 1^{\circ} and 35 of 39 held-out test queries (Tab. A18). On the tuning queries, the best learned baseline, Deep Blind PnP, recovers two.
- GOPAC zero
- 12/30
- 0/30
- 5.4
- 122
- 2,562
- GOPAC annealed
- 12/30
- 0/30
- 4.2
- 132
- 3,015
- GOSMA
- 30/30
- 0/30
- 1.7
- 156
- 68.8
- MomentPnP (ours)
- 30/30
- 30/30
- 0.0006
- 0.083
- 1.92
5.3 Ablation study and failure modes
Role of moment matching. Three studies isolate what moment matching contributes. (i) From the same initial poses on 100 test frames per benchmark, moments through order three or four bring 53 to 78 of these poses within 1^{\circ} and 1% translation error before EM (Tab. A9). The mean and covariance bring at most two, because distinct orientations can share them. (ii) EM-ICP (ours), our EM refinement from random poses restarted until a 30-second limit, needs those 30 seconds per frame to reach the median errors that MomentPnP reaches in at most 0.06 seconds without outliers (Tab. A5). With as many outliers as inliers, it reaches at most 31% accuracy (Tab. 1, Fig. A4). (iii) Given a domain that contains the true camera center and about six hours per search, GOPAC and GOSMA bring none of the thirty outlier-free frames within 1^{\circ}. MomentPnP needs no such domain and brings all thirty within 1^{\circ}, in about 2 seconds per frame (Tab. 3, Tab. A10). Controls on the depth spread, the image noise and the kind of outliers are in Sec. C.7. Under noise, the rotation error follows that of the pose fitted to the true correspondences, and with outliers on scene structure, every frame with up to 30% replaced stays within 1^{\circ}.
Independently selected inputs and failure modes. So far, every inlier 2D point is the image of a model point (Fig. 1), but 2D points detected without reference to the 3D model may have no corresponding model point. With SIFT keypoints [49] in the query image and a COLMAP scene model [64] built from other photographs, the search over camera poses still recovers Facade 26 within 1^{\circ} (Fig. 9(a), Tab. A22). Such inputs can fail in two ways. In Meadow, only 255 of the 12,069 detections belong to reconstruction tracks, and many others lie on vegetation and sky absent from the model (Fig. 9(b), Tab. A23). A dense model poses a second difficulty, because projections can lie near most 2D points even at an incorrect pose. In another Facade image, 81% of the 2D points lie within 3.4 pixels of a projected laser-scan point at the reference pose, and 77% still do at a pose rotated by 2^{\circ} (Fig. 9(c)); further details of every study in App. C. All code will be released.
6 Conclusion
In blind PnP, the camera pose need not wait for the correspondences. Finitely many feature averages of the two point sets determine it, and the correspondences then follow from nearest projections. The theory explains why this works on complete inputs and with uniform outliers, and the experiments show that it holds beyond these assumptions. Learned methods inherit the limits of their training data [73, 63], lose accuracy outside it and run out of memory on large point sets. Using neither training nor descriptors, this inference offers an alternative to both and to branch-and-bound search.
Limitations. When 2D points have no corresponding model point, the feature averages need not match even at the true pose, so independently selected inputs remain harder than tracked ones. Adversarial outliers can prevent recovery.
Future work. Missing structure and unequal sampling might be handled by reweighting the projections with unbalanced optimal transport [10]. Moment matching may also extend to relative pose estimation and to monocular depth estimation of unknown scale [80, 15].
LLM Usage Statement
We used OpenAI’s Codex to assist with editing and refining prose, code and implementation, figures, and formatting. No LLMs or AI tools were used to develop the research ideas, hypotheses, scientific claims, or conclusions. The authors take full responsibility for the accuracy and integrity of the paper and its accompanying artifacts.
References
\thetitle
Supplementary Material
App. A gives the notation, method details and proofs, App. B the implementation, and App. C the experiments. Appendix figures, tables, equations and statements carry the prefix A, and unprefixed numbers refer to the main paper.
Appendix A Method details and proofs
Tab. A1 summarizes the notation of the main paper and the appendix.
- Inputs, pose & correspondences (Sec. 3)
- n,N,m
- Numbers of observations, of model points and of correspondences, so that m is the number of inliers in each set.
- \mathcal{U}=\{\bm{u}_{i}\},\mathcal{Y}=\{\bm{y}_{j}\}
- 2D point set of observations in pixels, and 3D point set, or 3D model, of model points in model coordinates.
- K,\operatorname{proj},\operatorname{proj}_{\mathrm{cal}}
- Known intrinsics, projection to pixels, and projection \operatorname{proj}_{\mathrm{cal}}(\bm{x})=\bm{x}_{1:2}/x_{3} to calibrated image coordinates.
- \xi=(R,\bm{t}),\xi^{\star},\hat{\xi}
- Pose with rotation R\in\mathrm{SO}(3) and translation \bm{t}\in\mathbb{R}^{3}, true pose and estimated pose.
- \bm{x}_{j},\bm{p}_{j}(\xi),\bm{c}
- Model point j in camera coordinates, its projection \operatorname{proj}(\bm{x}_{j}), and the camera center in model coordinates.
- \sigma,\hat{\sigma},\varnothing
- True and estimated correspondences, and the label of an observation that images no model point.
- \bm{w}_{i},s
- Error of observation i and its standard deviation per image coordinate in pixels, or s_{N} when it varies with N.
- Moments & moment matching (Sec. 4.1)
- g,\mathcal{M}_{g},\bm{m}_{g}
- Moment order, moment tensor of Eq. A1, and vector of its distinct entries.
- \bm{u}_{\mathrm{cal}},\bar{\bm{u}}_{\mathrm{cal}},r_{\rm cal}
- Calibrated observation, and the mean and root-mean-square radius of the calibrated observations.
- h
- Image map of Sec. 4.1, fixed by the observations and applied to observations and projections alike.
- h_{F}
- Image map of the Fourier features (Sec. 4.1), which shifts and scales the rectangle bounding the calibrated observations onto [-1,1]^{2}.
- \bm{\phi}_{4},\bm{\phi}_{F}
- Fourteen monomials of orders one to four, and bounded Fourier features.
- \bm{\mu}_{\mathcal{U}},\bm{\mu}_{\mathcal{Y}}(\xi)
- Moments, the averages of \bm{\phi}_{4}\circ h over observations and projections. Subscript F denotes the corresponding Fourier feature averages.
- \eta
- Outlier fraction: the common fraction in both point sets in moment matching (Definition 1), the outlier probability of the uniform EM component (Eq. A77), and a free parameter in Sec. A.6 with true values \eta_{U} and \eta_{Y}.
- \bm{\mu}_{\mathcal{U},0},\bm{\mu}_{\mathcal{Y},0}(\xi)
- Expected feature values at a uniform outlier in the image and at a projected uniform outlier in the model’s bounding box.
- \mathcal{L}_{4},\mathcal{L}_{F}
- Moment-matching objectives for complete inputs and inputs with outliers (Definition 1).
- Refinement, association level & pose ambiguity resolution (Sec. 4.2)
- N_{+}
- Number of model points in front of the camera with finite projections.
- \hat{s},\mathcal{L}_{\mathrm{EM}}
- EM estimate of s, and the Poisson log-likelihood that compares refined poses (Eq. A78).
- d_{i,k},\ell,E_{i}
- Distance from observation i to its kth-nearest projection, number of neighbors, and the statistic of Sec. B.1.
- D_{\rm im},p_{d},n_{\rm cl}
- Rectangle around the observations that supports the uniform EM component (area |D_{\rm im}|), probability that a model point in front of the camera is observed, and expected number of outlier observations.
- r_{ij},n_{\rm m}
- Responsibility of projection j for observation i, and the expected number \sum_{ij}r_{ij} of inlier observations.
- p_{\rm assoc},p^{0}_{\rm assoc},V_{4}
- Association level as a tail probability, the same tail for a pose that EM has not refined (Gamma shape n without outliers), and the first-order expected value of \mathcal{L}_{4} at the true pose under noise of standard deviation \hat{s}.
- H_{k},D
- Half-turns about the kth principal axis of the matched model points (H_{0}=I_{3}) and about the line through their centroid parallel to the optical axis.
- Identifiability (Sec. 4.3)
- C_{F},\Delta_{\delta}
- Constant and error term of Theorem 2. In Sec. A.6, C_{F}=1/\gamma_{K_{F}}, which does not depend on \delta, and \Delta_{\delta} is the sum in Eq. A27 of outlier sampling, grid, image-noise and unequal-fraction errors.
- \operatorname{dist}
- Distance of Theorem 2, the distance d(\theta,\theta^{\star}) of Sec. A.6 between rotation matrices, translations in units of the model length \ell_{\mathcal{Y}} and outlier fractions.
- \mathcal{P}_{\mathcal{Y}}(\xi)
- Average of \bm{\phi}_{4} over the calibrated projections at pose \xi, without the map h (Sec. A.2).
- \bar{\bm{y}},\Sigma_{\mathcal{Y}},\Sigma_{\mathcal{U}_{\mathrm{cal}}}
- Mean and covariance of the model points, and covariance of the calibrated observations.
- \tilde{\mathcal{U}},\tilde{\mathcal{Y}}
- Calibrated observations and model points, each centered and normalized by its own covariance.
- A,\bm{b}
- Rank-two affine camera matrix and its image translation.
- Q,\bm{\gamma}
- Relative rotation R(R^{\star})^{\top} and offset \bm{t}-Q\bm{t}^{\star} of a competing pose.
- \mathcal{H}_{g},\mathcal{S}_{g},R_{\perp},Q_{\rm s}
- Binary and ternary forms of degree g, quarter-turn of the image plane, model symmetry.
- O,\mathcal{V}
- Orientation after normalization, and the set of 2\times 3 matrices with orthonormal rows.
- T,T_{\mathcal{U}},\mathcal{F}_{T}
- Normalized cubic and quartic moments of the model and of the observations, and projected moments as a function of O.
- \Gamma_{T}
- Separation constant, the lower Lipschitz constant of \mathcal{F}_{T} on \mathcal{V} (Eq. A11).
- \epsilon,\hat{\epsilon}
- Observation error and fit residual of the normalized moments (Sec. A.3).
- Appendix analyses
- \bm{v}_{i}
- Measurement error of a model point, in model coordinates.
- z_{\mathrm{ref}}
- Reference depth of the affine initial poses and of the depth study (Tab. A19).
- \rho,\rho_{\mathrm{rms}}
- Bound on the norm of the projections, and root-mean-square radius of the observations about their centroid.
- f_{\max},\epsilon_{\rm pred},\hat{\delta}
- Bound on the density of the projections, tolerance on the prediction error, and maximum prediction error.
- B,\mathrm{Lip}(\bm{\phi})
- Norm bound and Lipschitz constant of a feature map.
- \lambda_{j},\bm{\mu}_{E},\bm{\mu}_{C}
- Projected length of model edge j, and feature averages over projected model edges and detected image edges.
- \gamma_{E},\delta_{E},\epsilon_{q}
- Fraction of the coupling’s mass on pairs within image distance \delta_{E}, that distance, and the combined quadrature error.
- \bm{\delta},J^{\star},\kappa_{J}
- Local pose coordinates in \mathbb{R}^{6}, Jacobian of the edge feature average at the true pose, and its least singular value.
A.1 Moments & measurement error
This section bounds how much image noise changes the moments of the observations and describes the effect of errors in the model points. In the bound, the terms that are linear in the noise have zero mean, and their contribution decreases as 1/\sqrt{N} when the point sets grow (Secs. 4.3 and 5). The second part concerns the assumption that the model points are exact (Sec. 3). We first illustrate what moments distinguish and fix the coordinates in which we measure them.
A scalar example. The sets of real numbers \{-2,-1,3\} and \{2,1,-3\} are reflections of each other about zero. Both have mean zero and second moment 14/3, so their first two moments do not distinguish them. Their third moments are 6 and -6, because (-2)^{3}+(-1)^{3}+3^{3}=18 and the reflection changes the sign of every cube. An average does not depend on the order of the points, so the third moment distinguishes the two sets without any correspondence between their points. Moment matching uses the same property in the image, where the moments of orders three and four distinguish orientations whose projections have equal mean and covariance (Fig. 2). The moment of order g of a 2D point set has several distinct entries, one for each monomial of degree g, and we now fix how we index them.
Moment coordinates. For a nonempty finite collection \mathcal{A} of points in a Euclidean space and a positive integer g, the tensor power \bm{a}^{\otimes g} of a point \bm{a}\in\mathcal{A} contains all products of g coordinate components, including repeated entries. The moment tensor is their average,
\mathcal{M}_{g}(\mathcal{A})=\frac{1}{|\mathcal{A}|}\sum_{\bm{a}\in\mathcal{A}}\bm{a}^{\otimes g}.We index the points of \mathcal{A}\subset\mathbb{R}^{d_{\mathcal{A}}} as \bm{a}_{1},\ldots,\bm{a}_{|\mathcal{A}|}. A multi-index \alpha=(\alpha_{1},\ldots,\alpha_{d_{\mathcal{A}}}) of nonnegative integers with |\alpha|=\alpha_{1}+\cdots+\alpha_{d_{\mathcal{A}}}=g names one distinct entry of the symmetric tensor \mathcal{M}_{g}(\mathcal{A}) of Eq. A1, namely the average
m_{\alpha}(\mathcal{A})=\frac{1}{|\mathcal{A}|}\sum_{i=1}^{|\mathcal{A}|}\prod_{r=1}^{d_{\mathcal{A}}}a_{i,r}^{\alpha_{r}}.We collect these entries, in a fixed order, in the vector \bm{m}_{g}(\mathcal{A})=(m_{\alpha}(\mathcal{A}))_{|\alpha|=g}, which has \binom{d_{\mathcal{A}}+g-1}{g} entries. The tensor repeats the entry m_{\alpha} once for each ordering of its indices, that is, \binom{g}{\alpha}=g!/(\alpha_{1}!\cdots\alpha_{d_{\mathcal{A}}}!) times, so its Frobenius norm is
\lVert\mathcal{M}_{g}(\mathcal{A})\rVert^{2}=\sum_{|\alpha|=g}\binom{g}{\alpha}\,m_{\alpha}(\mathcal{A})^{2}.In 2D, the multiplicities are (1,3,3,1) for cubic and (1,4,6,4,1) for quartic moments. The fourteen averages of \bm{\phi}_{4}\circ h in moment matching (Sec. 4.1) are the distinct entries of \mathcal{M}_{1} to \mathcal{M}_{4} of the mapped points, without these multiplicities. Sec. A.3 uses the form \bm{\zeta}\mapsto\langle\mathcal{M}_{g}(\mathcal{A}),\bm{\zeta}^{\otimes g}\rangle in place of the tensor. Its coefficients \binom{g}{\alpha}m_{\alpha} also differ from \bm{m}_{g}. We state the noise bound below in the tensor norm, which Theorem A1 also uses.
Image noise. The bound below concerns complete inputs in pixel coordinates, before the map h is applied, under the measurement model of Eq. 1. Its first term shrinks as 1/\sqrt{N}, and its second term, of order s^{2}, does not depend on N.
Lemma A1 (Moments under image noise).
Let the inputs be complete, with N\geq 1 exact model points at positive depth under the true pose \xi^{\star}. For each observation i, let \bm{u}_{i}^{\star}=\bm{p}_{\sigma(i)}(\xi^{\star}) be its noiseless position, the projection of the model point that it images, with \lVert\bm{u}_{i}^{\star}\rVert\leq\rho. Let \bm{u}_{i}=\bm{u}_{i}^{\star}+\bm{w}_{i} with independent noise vectors \bm{w}_{i}\sim\mathcal{N}(0,s^{2}I_{2}) and 0\leq s\leq 1 pixels, and let \mathcal{U}^{\star}=\{\bm{u}_{i}^{\star}\}. For every order g\geq 1, the moments \mathcal{M}_{g}(\mathcal{U}) and \mathcal{M}_{g}(\mathcal{U}^{\star}) agree almost surely when s=0 and satisfy
\sqrt{\mathbb{E}\lVert\mathcal{M}_{g}(\mathcal{U})-\mathcal{M}_{g}(\mathcal{U}^{\star})\rVert^{2}}\leq g\rho^{g-1}s\sqrt{2/N}+C_{g,\rho}s^{2}.Here C_{g,\rho}\geq 0 depends only on g and \rho, and the expectation is over the image noise, in pixel coordinates before normalization.
We fix an integer g\geq 1. The proof first shows that \mathcal{M}_{g}(\mathcal{U}^{\star}) is a quantity that moment matching can evaluate, and then separates the noise terms that averaging reduces from those that it does not.
Step 1. The projected moments do not depend on the correspondences. Since \sigma is a bijection of \{1,\ldots,N\}, substituting j=\sigma(i) reorders the sum,
\mathcal{M}_{g}(\mathcal{U}^{\star})=\frac{1}{N}\sum_{i=1}^{N}\bm{p}_{\sigma(i)}(\xi^{\star})^{\otimes g}=\frac{1}{N}\sum_{j=1}^{N}\bm{p}_{j}(\xi^{\star})^{\otimes g}.The right-hand side depends on the pose and the model but not on \sigma. The lemma therefore compares the observed moments with the moments of the projections at the true pose, which can be computed without correspondences.
Step 2. Expansion in the noise. For s=0, the noise vanishes almost surely, so \mathcal{U}=\mathcal{U}^{\star} and the two moments agree almost surely. We assume s>0 from now on. We expand (\bm{u}_{i}^{\star}+\bm{w}_{i})^{\otimes g} by choosing the noiseless position or the noise vector in each of its g factors. Subtracting (\bm{u}_{i}^{\star})^{\otimes g} leaves the 2^{g}-1 products that contain at least one noise factor. Products with one noise factor have zero mean, so averaging over the N independent observations reduces their root mean square. Products with several noise factors can have a nonzero mean that averaging does not remove, but they are of order s^{2}. We bound the two groups separately and add their root-mean-square bounds by Minkowski’s inequality.
Step 3. One noise factor. For each of the g positions of the noise factor, the products are linear in \bm{w}_{i}, independent across i and of zero mean, with second moment \lVert\bm{u}_{i}^{\star}\rVert^{2(g-1)}\mathbb{E}\lVert\bm{w}_{i}\rVert^{2}\leq 2s^{2}\rho^{2(g-1)}. Independence and zero means make the cross terms vanish when we square their average over i. Each average therefore has root mean square at most \rho^{g-1}s\sqrt{2/N}, and the g positions contribute the first term of Eq. A2.
Step 4. Several noise factors. A product with a\geq 2 noise factors has norm \lVert\bm{u}_{i}^{\star}\rVert^{g-a}\lVert\bm{w}_{i}\rVert^{a}\leq\rho^{g-a}\lVert\bm{w}_{i}\rVert^{a}. Because \lVert\bm{w}_{i}\rVert^{2}/s^{2} is exponentially distributed with mean two, \mathbb{E}\lVert\bm{w}_{i}\rVert^{2a}=2^{a}a!\,s^{2a}, so the product has root mean square at most \rho^{g-a}\sqrt{2^{a}a!}\,s^{a}. Minkowski’s inequality gives the same bound for its average over i, and there are \binom{g}{a} choices of positions for the a noise factors. Summing both groups gives
\displaystyle\Bigl(\mathbb{E}\lVert\mathcal{M}_{g}(\mathcal{U})-\mathcal{M}_{g}(\mathcal{U}^{\star})\rVert^{2}\Bigr)^{1/2} \\ \displaystyle\leq g\rho^{g-1}s\sqrt{2/N}+\sum_{a=2}^{g}\binom{g}{a}\rho^{g-a}\sqrt{2^{a}a!}\,s^{a}.Since s^{a}\leq s^{2} for a\geq 2 and 0\leq s\leq 1, we may take
C_{g,\rho}=\sum_{a=2}^{g}\binom{g}{a}\rho^{g-a}\sqrt{2^{a}a!}.This constant does not depend on s or N, and C_{1,\rho}=0 because the sum is empty. When \rho=0, only the term a=g remains for g\geq 2, with \rho^{0}=1. ∎
Errors in the model points. The lemma treats the model points as exact, as Eq. 1 does. Suppose now that model point \bm{y}_{\sigma(i)} is measured with an error \bm{v}_{i} of covariance \Sigma_{\mathrm{3D},i} and that the image error \bm{w}_{i} has covariance \Sigma_{\mathrm{2D},i}, with \bm{v}_{i} and \bm{w}_{i} independent. To first order at the true pose, the difference between observation i and the projection of the measured model point is \bm{w}_{i}-J_{\operatorname{proj},i}R^{\star}\bm{v}_{i}. Here J_{\operatorname{proj},i} is the Jacobian of the pixel projection \operatorname{proj} at the true model point \bm{x}_{\sigma(i)} in camera coordinates. Independence makes the cross-covariances vanish, so this difference has covariance
\Sigma_{\mathrm{lin},i}=\Sigma_{\mathrm{2D},i}+J_{\operatorname{proj},i}R^{\star}\Sigma_{\mathrm{3D},i}(R^{\star})^{\top}J_{\operatorname{proj},i}^{\top}.The 3D term depends on the viewing direction through J_{\operatorname{proj},i} and is in general anisotropic. At a fixed viewing direction and a fixed covariance in model units, it scales with the inverse square of the depth. The model assumes independent errors and exact intrinsics, so it omits the correlations that shared calibration errors introduce. Because the expression is linearized, the exact projected error need not be Gaussian.
A.2 Proof of Theorem 1
We use calibrated image coordinates, in which a camera point \bm{x} with x_{3}>0 projects to \operatorname{proj}_{\mathrm{cal}}(\bm{x})=\bm{x}_{1:2}/x_{3}, and we identify a model \mathcal{Y}=\{\bm{y}_{j}\}_{j=1}^{N} with the vector (\bm{y}_{1},\ldots,\bm{y}_{N})\in\mathbb{R}^{3N}. For a pose \xi=(R,\bm{t}) under which every model point has positive depth, the raw projected moments are
\mathcal{P}_{\mathcal{Y}}(\xi)=\frac{1}{N}\sum_{j=1}^{N}\bm{\phi}_{4}\bigl(\operatorname{proj}_{\mathrm{cal}}(R\bm{y}_{j}+\bm{t})\bigr)\in\mathbb{R}^{14},the fourteen moments of orders one to four of the calibrated projections, without centering or normalization.
Fix a pose \xi^{\star} and an integer N\geq 20. There is a set \mathcal{Z}\subset\mathbb{R}^{3N} of Lebesgue measure zero with the following property. Let \mathcal{Y}\notin\mathcal{Z} be a model whose N points all have positive depth under \xi^{\star}, and let \xi be a pose under which all its points have positive depth. If \mathcal{P}_{\mathcal{Y}}(\xi)=\mathcal{P}_{\mathcal{Y}}(\xi^{\star}), then \xi=\xi^{\star}.
An invertible affine map of the image preserves the equality of moments through order four in both directions, because composition with the map or its inverse takes every polynomial of degree at most four to another such polynomial. The restated theorem therefore also covers the moments in pixels and the moments after the map h of Sec. 4.1, which the main text compares. On complete noiseless inputs, it shows that the true pose is generically the only zero of \mathcal{L}_{4} among the poses that keep all model points in front of the camera, so the minimum that Step 2 searches for is unique. The proof shows that every kind of alternative pose imposes on each model point an equation that a generic point does not satisfy. It then counts dimensions to show that the models admitting such a pose form a null set. After the proof, Corollary A1 turns uniqueness into a stability statement for the perspective moment fit.
Uniqueness cannot hold for every model. A quarter-turn of a cube about the axis through the centers of two opposite faces maps its eight corners onto themselves, so a camera pose and its composition with this rigid motion give the same image. The theorem shows that such symmetric models are exceptional.
Coordinates. We fix the true pose \xi^{\star}=(R^{\star},\bm{t}^{\star}) before choosing the model and express the model points in its camera coordinates as \bm{x}_{j}=R^{\star}\bm{y}_{j}+\bm{t}^{\star}. This invertible affine change of coordinates of \mathbb{R}^{3N} preserves sets of Lebesgue measure zero, so it suffices to prove the theorem for the configurations \mathcal{X}=\{\bm{x}_{j}\}_{j=1}^{N} with all x_{j3}>0. The true projection is then \operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j}), and a competing pose \xi=(R,\bm{t}) gives
\operatorname{proj}_{Q,\bm{\gamma}}(\bm{x}_{j})=\operatorname{proj}_{\mathrm{cal}}(Q\bm{x}_{j}+\bm{\gamma}),where Q=R(R^{\star})^{\top}\in\mathrm{SO}(3) and \bm{\gamma}=\bm{t}-Q\bm{t}^{\star}. The map \xi\mapsto(Q,\bm{\gamma}) is a bijection from the poses onto \mathrm{SO}(3)\times\mathbb{R}^{3} that sends \xi^{\star} to (I_{3},0). In the true camera coordinates, the competing camera center is -Q^{\top}\bm{\gamma}, so the two cameras have the same center exactly when \bm{\gamma}=0.
Moment differences as polynomials. Let \mathbb{P}_{4}^{0} denote the fourteen-dimensional space of bivariate polynomials of degree at most four with zero constant coefficient. Each P\in\mathbb{P}_{4}^{0} is the inner product \bm{\kappa}\cdot\bm{\phi}_{4} of its coefficient vector \bm{\kappa}\in\mathbb{R}^{14} with \bm{\phi}_{4}. The linear combination of the fourteen moment differences with weights \bm{\kappa} is therefore the average, over the points, of P(\operatorname{proj}_{Q,\bm{\gamma}}(\bm{x}_{j}))-P(\operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j})). The proof distinguishes alternative poses by whether the camera center moves and whether the optical axis tilts. For each kind, the next lemma bounds the dimension of the space of polynomials whose values cannot detect the change of pose.
Lemma A2 (Polynomial features under a pinhole camera).
Let Q\in\mathrm{SO}(3) and \bm{\gamma}\in\mathbb{R}^{3}, let \bm{u}=(u_{1},u_{2})\in\mathbb{R}^{2} be calibrated image coordinates, and let x_{3}>0 be the depth along the true camera ray (x_{3}\bm{u},x_{3}). (a) If \bm{\gamma}\neq 0, the subspace
\displaystyle\mathcal{K}_{Q,\bm{\gamma}}=\{P\in\mathbb{P}_{4}^{0}: \\ \displaystyle P(\operatorname{proj}_{Q,\bm{\gamma}}(x_{3}u_{1},x_{3}u_{2},x_{3})) \\ \displaystyle\text{ is independent of }x_{3}\}has dimension at most four and equals \{0\} if \gamma_{3}\neq 0. Here the composition is a rational function of (\bm{u},x_{3}), and independence means that its partial derivative with respect to x_{3} vanishes identically. (b) If \bm{\gamma}=0 and (Q_{31},Q_{32})\neq(0,0), then P(\operatorname{proj}_{Q,\bm{\gamma}}(\bm{u},1))-P(\bm{u}) is a nonconstant function of \bm{u} for every nonzero P\in\mathbb{P}_{4}^{0}. (c) If \bm{\gamma}=0 and (Q_{31},Q_{32})=(0,0), then \operatorname{proj}_{Q,\bm{\gamma}}(\bm{u},1)=G\bm{u} for some G\in\mathrm{O}(2). If Q\neq I_{3}, then G\neq I_{2}, and the invariant subspace \mathcal{K}_{G}=\{P\in\mathbb{P}_{4}^{0}:P\circ G=P\} has dimension at most eight. For P\notin\mathcal{K}_{G}, the polynomial \bm{u}\mapsto P(G\bm{u})-P(\bm{u}) is nonconstant.
Part (a). We write \bm{a}=Q(\bm{u},1), so that Q(x_{3}\bm{u},x_{3})+\bm{\gamma}=x_{3}\bm{a}+\bm{\gamma}, and \bm{z}(\bm{u},x_{3})=\operatorname{proj}_{Q,\bm{\gamma}}(x_{3}\bm{u},x_{3}). With \bm{e}_{3}=(0,0,1), we have x_{3}\bm{a}+\bm{\gamma}=(x_{3}Q+\bm{\gamma}\bm{e}_{3}^{\top})(\bm{u},1). Because \det(x_{3}Q+\bm{\gamma}\bm{e}_{3}^{\top})=x_{3}^{2}\bigl(x_{3}+(Q^{\top}\bm{\gamma})_{3}\bigr), the map \bm{u}\mapsto\bm{z}(\bm{u},x_{3}) is an invertible projective transformation of the plane for all but at most one value of x_{3}>0. The points \bm{z}(\bm{u},x_{3}) therefore fill an open subset of \mathbb{R}^{2}. We first suppose that \gamma_{3}\neq 0 and put \bm{u}_{\rm c}=\bm{\gamma}_{1:2}/\gamma_{3}, the image of the true camera center in the competing camera. Differentiation gives
\partial_{x_{3}}\bm{z}=\frac{\gamma_{3}}{x_{3}(x_{3}a_{3}+\gamma_{3})}\bigl(\bm{z}-\bm{u}_{\rm c}\bigr),so as x_{3} varies, the point \bm{z} moves along the line through \bm{u}_{\rm c}. If P\in\mathcal{K}_{Q,\bm{\gamma}}, the chain rule gives (\bm{z}-\bm{u}_{\rm c})\cdot\nabla P(\bm{z})=0 at every point \bm{z}(\bm{u},x_{3}). This polynomial in \bm{z} vanishes on an open set and hence identically. We expand P in homogeneous terms about \bm{u}_{\rm c}. By Euler’s identity, the operator (\bm{z}-\bm{u}_{\rm c})\cdot\nabla multiplies the term of degree k by k, so every term of positive degree is zero. Thus P is constant, and its zero constant coefficient gives P=0. If \gamma_{3}=0, then \bm{\gamma}_{1:2}\neq 0 and
\operatorname{proj}_{Q,\bm{\gamma}}(x_{3}\bm{u},x_{3})=\frac{(Q(\bm{u},1))_{1:2}}{(Q(\bm{u},1))_{3}}+\frac{\bm{\gamma}_{1:2}}{x_{3}(Q(\bm{u},1))_{3}},so the point moves along the fixed direction \bm{\gamma}_{1:2} as x_{3} varies. For P\in\mathcal{K}_{Q,\bm{\gamma}}, the chain rule gives \bm{\gamma}_{1:2}\cdot\nabla P(\bm{z})=0 on the same open set, hence as a polynomial identity. Such a P is a polynomial of degree at most four in the linear coordinate perpendicular to \bm{\gamma}_{1:2}, with zero constant coefficient, and these polynomials form a space of dimension four.
Part (b). We put z_{Q}(\bm{u})=(Q(\bm{u},1))_{3}=Q_{31}u_{1}+Q_{32}u_{2}+Q_{33}, an affine polynomial that is nonconstant because (Q_{31},Q_{32})\neq(0,0). The competing camera sends the line z_{Q}=0 to infinity. A nonzero P\in\mathbb{P}_{4}^{0} has a degree d_{P}\geq 1 and a nonzero leading homogeneous part P_{d_{P}}, and its composition with \operatorname{proj}_{Q,\bm{\gamma}} is a quotient with denominator z_{Q}^{d_{P}}. On the line z_{Q}=0, the numerator equals P_{d_{P}}((Q(\bm{u},1))_{1:2}). Along this line, the two coordinates (Q(\bm{u},1))_{1:2} trace an affine line not through the origin, because otherwise the invertible matrix Q would map a vector (\bm{u},1) to zero. A nonzero homogeneous polynomial cannot vanish on this entire line, because scalar multiples of the line contain an open subset of \mathbb{R}^{2}. The numerator is therefore not divisible by the irreducible polynomial z_{Q}, so the composition has a pole on the line z_{Q}=0. Subtracting the polynomial P(\bm{u}) cannot remove this pole, so the difference is not a polynomial and in particular is nonconstant.
Part (c). The third row of Q is (0,0,Q_{33}), so orthogonality gives Q_{33}=\pm 1 and Q_{13}=Q_{23}=0. Hence G=Q_{1:2,1:2}/Q_{33}\in\mathrm{O}(2). If G=I_{2}, then Q=Q_{33}I_{3}, and \det Q=1 gives Q=I_{3}. If G is a reflection, we choose orthonormal coordinates along its axis and perpendicular to it. The reflection then fixes the eight of the fourteen monomials whose exponent in the perpendicular coordinate is even and negates the other six. If G is a rotation by an angle \theta\notin 2\pi\mathbb{Z}, it multiplies the complex monomial (u_{1}+\mathrm{i}u_{2})^{a}(u_{1}-\mathrm{i}u_{2})^{b} by e^{\mathrm{i}(a-b)\theta}. A nonidentity rotation therefore changes both linear polynomials and the two cubic polynomials with a-b=\pm 1. A half-turn also changes the other two cubic polynomials, and every other rotation changes the two quadratic polynomials with a-b=\pm 2. Thus at most eight independent polynomials are unchanged by a nonidentity G. If P\notin\mathcal{K}_{G}, then P(G\bm{u})-P(\bm{u}) is nonzero, and its zero constant coefficient makes it nonconstant. ∎
For \mathcal{X}=\{\bm{x}_{j}\}_{j=1}^{N}, the difference between the competing and true moment vectors is
\begin{split}\bm{\Phi}(\mathcal{X},Q,\bm{\gamma})&=\frac{1}{N}\sum_{j=1}^{N}\bigl[\bm{\phi}_{4}(\operatorname{proj}_{Q,\bm{\gamma}}(\bm{x}_{j}))\\
&\qquad-\bm{\phi}_{4}(\operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j}))\bigr].\end{split}We consider only configurations and competing poses that make all true and competing depths positive, so \bm{\Phi} is smooth on its domain. Its zeros are those of \mathcal{P}_{\mathcal{Y}}(\xi)-\mathcal{P}_{\mathcal{Y}}(\xi^{\star}), expressed in calibrated image and transformed model coordinates. A zero with (Q,\bm{\gamma})\neq(I_{3},0) is an alternative pose. We write \partial_{\mathcal{X}}\bm{\Phi} for the 14\times 3N derivative of \bm{\Phi} with respect to the point coordinates. A coefficient vector \bm{\kappa}\in\mathbb{R}^{14} with \bm{\kappa}^{\top}\partial_{\mathcal{X}}\bm{\Phi}=0 defines the polynomial P=\bm{\kappa}\cdot\bm{\phi}_{4}. The average of P\circ\operatorname{proj}_{Q,\bm{\gamma}}-P\circ\operatorname{proj}_{\mathrm{cal}} over the points then has zero derivative with respect to every point. We show that the configurations \mathcal{X} that admit an alternative pose form a set of dimension less than 3N.
Dimension facts. We use standard facts about semialgebraic sets [2]. Sets described by finitely many polynomial equalities and inequalities, and projections of such sets, are semialgebraic. Projection does not increase dimension. A semialgebraic set has dimension at most d if each of its points has a neighborhood in which the set lies in a smooth submanifold of dimension d. A family has dimension at most its number of parameters plus the largest dimension of its solution set at fixed parameters. A nonzero polynomial in k variables has a zero set of dimension at most k-1. A semialgebraic subset of \mathbb{R}^{3N} of dimension less than 3N has Lebesgue measure zero. In each of the three cases below, a high rank of \partial_{\mathcal{X}}\bm{\Phi} bounds the dimension directly through the implicit-function theorem. If the rank is low, Lemma A2 gives a coefficient vector \bm{\kappa} whose polynomial detects the change of pose, and that polynomial yields one equation for every point.
Case 1. Distinct camera centers. We suppose \bm{\gamma}\neq 0, so the competing pose has six parameters. At a solution with \rank\partial_{\mathcal{X}}\bm{\Phi}\geq 10, ten of the equations have independent derivatives, so near this solution the solution set lies in a submanifold of dimension 3N+6-10<3N. If the rank is less than ten, the coefficient vectors \bm{\kappa} with \bm{\kappa}^{\top}\partial_{\mathcal{X}}\bm{\Phi}=0 form a space of dimension greater than four. By Lemma A2(a), we can therefore choose such a \bm{\kappa} whose polynomial P lies outside \mathcal{K}_{Q,\bm{\gamma}}, and we normalize \bm{\kappa} to the unit sphere S^{13}. We write \bm{x}_{j}=(x_{j3}\bm{u}^{\star}_{j},x_{j3}) with true projection \bm{u}^{\star}_{j} and depth x_{j3}>0. Moving a point along its true camera ray leaves \operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j}) unchanged, so the zero derivative of the average along this direction gives
\left.\frac{d}{dx_{3}}P(\operatorname{proj}_{Q,\bm{\gamma}}(x_{3}\bm{u}^{\star}_{j},x_{3}))\right|_{x_{3}=x_{j3}}=0,\quad j=1,\ldots,N.For fixed (Q,\bm{\gamma},\bm{\kappa}), the left-hand side is a rational function of \bm{x}_{j} whose denominator is a product of powers of the true and competing depths. Because P\notin\mathcal{K}_{Q,\bm{\gamma}}, it is not identically zero, so its numerator is a nonzero polynomial in the three coordinates of \bm{x}_{j}. Each point therefore lies in a set of dimension at most two. The equations involve separate points, so their joint solution set has dimension at most 2N. The six pose parameters and thirteen parameters of \bm{\kappa} give total dimension at most 2N+19, which is less than 3N exactly when N\geq 20. This case sets the bound on N in Theorem 1.
Case 2. Same center, tilted optical axis. We suppose \bm{\gamma}=0 and (Q_{31},Q_{32})\neq(0,0). These rotations form an open subset of \mathrm{SO}(3), of dimension three. When the derivative with respect to the point coordinates has full rank fourteen, the local dimension of the solution set is at most 3N+3-14<3N. Otherwise, we choose a unit vector \bm{\kappa} with \bm{\kappa}^{\top}\partial_{\mathcal{X}}\bm{\Phi}=0. The ray coordinates (\bm{u}^{\star}_{j},x_{j3}) are smooth coordinates for positive depth, and \operatorname{proj}_{Q,\bm{\gamma}}(x_{j3}\bm{u}^{\star}_{j},x_{j3})=\operatorname{proj}_{Q,\bm{\gamma}}(\bm{u}^{\star}_{j},1) because the two cameras share their center. The derivatives with respect to the two image coordinates therefore give
\nabla_{\bm{u}^{\star}_{j}}\bigl[P(\operatorname{proj}_{Q,\bm{\gamma}}(\bm{u}^{\star}_{j},1))-P(\bm{u}^{\star}_{j})\bigr]=0,\quad j=1,\ldots,N.By Lemma A2(b), the function in brackets is a nonconstant rational function of \bm{u}^{\star}_{j}, so at least one of its partial derivatives is a nonzero rational function. The numerator of that partial derivative is a nonzero polynomial in two variables, so the critical set has dimension at most one in \bm{u}^{\star}_{j}, and the free depth adds one dimension, which gives at most 2N dimensions for the point set. Adding three rotation parameters and thirteen parameters of \bm{\kappa} bounds the dimension by 2N+16<3N.
Case 3. Same center, aligned optical axis. We suppose \bm{\gamma}=0 and (Q_{31},Q_{32})=(0,0), with Q\neq I_{3}. By the proof of Lemma A2(c), Q_{33}=\pm 1. A rotation with Q_{33}=-1 gives every point the competing depth -x_{j3}<0 and is excluded. The rotations with Q_{33}=1 form a family of dimension one. A rank of at least six bounds the local dimension of the solution set by 3N+1-6<3N. Otherwise, the coefficient vectors \bm{\kappa} with \bm{\kappa}^{\top}\partial_{\mathcal{X}}\bm{\Phi}=0 form a space of dimension greater than eight, so Lemma A2(c) gives a unit \bm{\kappa} whose polynomial satisfies P\notin\mathcal{K}_{G}. The argument of Case 2 requires each \bm{u}^{\star}_{j} to be a critical point of the nonconstant polynomial \bm{u}\mapsto P(G\bm{u})-P(\bm{u}). Its critical set has dimension at most one, which again gives at most 2N dimensions for the point set. The one rotation parameter and thirteen parameters of \bm{\kappa} give total dimension at most 2N+14<3N.
Conclusion. All sets in these arguments are semialgebraic, because the rotation constraints, positive depths, coefficient normalization and rank conditions are polynomial equalities or inequalities after denominators are cleared. The conditions P\notin\mathcal{K}_{Q,\bm{\gamma}} and P\notin\mathcal{K}_{G} also have this form, because each requires at least one coefficient of the corresponding rational or polynomial identity to be nonzero. The local dimension bounds hold throughout the sets of high rank. The parameter counts of the three cases cover the remaining ranks. The finitely many unions and projections of the solution sets therefore have dimension less than 3N. For the fixed true pose, we obtain a null set \mathcal{Z} of configurations outside which no other pose with positive depths has the same moments through order four. This exceptional set is semialgebraic of dimension less than 3N, so it also lies in the zero set of a nonzero polynomial in the model coordinates. Every joint density on \mathbb{R}^{3N}, including one for dependent points, assigns probability zero to this set. ∎
Perspective stability. Theorem 1 concerns exact moments, whereas Step 2 fits moments that contain error. Uniqueness together with compactness bounds the pose error of the fit by the moment errors, through a modulus that the corollary defines but does not compute. This bound is the perspective counterpart of Eq. A21, and it concerns the moment fit before EM refinement. We hold the image map h fixed throughout the comparison, even if it was computed from the observations. We write \bm{\mu}_{\mathcal{Y}}(\xi;h) and \bm{\mu}_{\mathcal{U}}(h) for the averages of \bm{\phi}_{4}\circ h over the projections at pose \xi and over the observations. Because h does not change which poses give equal moments, Theorem 1 provides the uniqueness that the corollary assumes, for a generic model of N\geq 20 points and any compact set of poses with positive depths that contains \xi^{\star}.
Corollary A1 (Stability of the perspective pose).
We fix a 3D model and an invertible affine image map h, and write M(\xi)=\bm{\mu}_{\mathcal{Y}}(\xi;h). Let \mathcal{E}_{\xi} be a compact set of poses that contains \xi^{\star} and places every model point at positive depth, and suppose that \xi^{\star} is the unique solution of M(\xi)=M(\xi^{\star}) in \mathcal{E}_{\xi}. We fix a model length \ell_{\mathcal{Y}}>0 and use the pose distance
d_{\mathcal{Y}}(\xi,\xi^{\prime})^{2}=\lVert R-R^{\prime}\rVert^{2}+\lVert\bm{t}-\bm{t}^{\prime}\rVert^{2}/\ell_{\mathcal{Y}}^{2}.For a_{\xi}>0 with \{\xi\in\mathcal{E}_{\xi}:d_{\mathcal{Y}}(\xi,\xi^{\star})\geq a_{\xi}\} nonempty, we define \Gamma_{\xi}(a_{\xi}) as the minimum of \lVert M(\xi)-M(\xi^{\star})\rVert over that set. For an observed vector \bm{\mu}_{\mathcal{U}}(h) and a fitted pose \hat{\xi}\in\mathcal{E}_{\xi}, the observation error is \epsilon_{\mathrm{obs}}=\lVert\bm{\mu}_{\mathcal{U}}(h)-M(\xi^{\star})\rVert and the fit residual is \epsilon_{\mathrm{res}}=\lVert M(\hat{\xi})-\bm{\mu}_{\mathcal{U}}(h)\rVert. Then \Gamma_{\xi}(a_{\xi})>0, and
\epsilon_{\mathrm{obs}}+\epsilon_{\mathrm{res}}<\Gamma_{\xi}(a_{\xi})\quad\text{implies}\quad d_{\mathcal{Y}}(\hat{\xi},\xi^{\star})<a_{\xi}.In particular, if the residual of the fitted pose exceeds the residual \epsilon_{\mathrm{obs}} of the true pose by at most \epsilon_{\mathrm{fit}}\geq 0, so that \epsilon_{\mathrm{res}}\leq\epsilon_{\mathrm{obs}}+\epsilon_{\mathrm{fit}}, then 2\epsilon_{\mathrm{obs}}+\epsilon_{\mathrm{fit}}<\Gamma_{\xi}(a_{\xi}) suffices.
Positive depths make M continuous on \mathcal{E}_{\xi}. The poses of \mathcal{E}_{\xi} at distance at least a_{\xi} from \xi^{\star} form a compact set, and uniqueness makes their moment difference strictly positive, so the minimum \Gamma_{\xi}(a_{\xi}) is positive. The triangle inequality gives \lVert M(\hat{\xi})-M(\xi^{\star})\rVert\leq\epsilon_{\mathrm{res}}+\epsilon_{\mathrm{obs}}. If d_{\mathcal{Y}}(\hat{\xi},\xi^{\star})\geq a_{\xi}, the definition of \Gamma_{\xi}(a_{\xi}) gives \lVert M(\hat{\xi})-M(\xi^{\star})\rVert\geq\Gamma_{\xi}(a_{\xi}), which contradicts \epsilon_{\mathrm{res}}+\epsilon_{\mathrm{obs}}<\Gamma_{\xi}(a_{\xi}). Substituting \epsilon_{\mathrm{res}}\leq\epsilon_{\mathrm{obs}}+\epsilon_{\mathrm{fit}} gives the final assertion. ∎
On complete inputs, image noise enters through \epsilon_{\mathrm{obs}}, which Lemma A1 bounds before the map h is applied. If the observations are images of only some of the model points, the difference between their average and the average over all projections also enters \epsilon_{\mathrm{obs}}. With outliers, moment matching replaces the monomials by bounded features, which limit the influence of the outliers on the averages but need not remove their bias (Lemmas A6 and A17). When \Gamma_{\xi}(a_{\xi}) is small, a small moment discrepancy can coexist with a pose error of at least a_{\xi}. A large fit residual can indicate a failed search.
A.3 Orientation from normalized moments
On complete inputs, Step 1 also places initial cameras at orientations fitted under an affine camera of rank two, such as scaled orthography. This section shows that these orientations have errors at most proportional to the moment errors. We center both point sets and scale each to identity covariance, giving \tilde{\mathcal{Y}} and \tilde{\mathcal{U}}. Their means and covariances then agree, and only the orientation remains unknown. Complete noiseless affine observations satisfy \tilde{\mathcal{U}}=O\tilde{\mathcal{Y}} for an orientation O\in\mathcal{V}=\{O\in\mathbb{R}^{2\times 3}:OO^{\top}=I_{2}\}, the first two rows of a rotation [36]. We therefore determine the orientation from the cubic and quartic moments. Let the moment pair T\in\mathbb{R}^{25} collect the 10 cubic and 15 quartic moments of \tilde{\mathcal{Y}}, and let \mathcal{F}_{T}(O) and T_{\mathcal{U}} collect those of the projected model O\tilde{\mathcal{Y}} and of \tilde{\mathcal{U}}. For an estimate \hat{O} of the true orientation O^{\star}, the fit residual \hat{\epsilon}=\lVert\mathcal{F}_{T}(\hat{O})-T_{\mathcal{U}}\rVert measures how well the estimate fits the observed moments, and the observation error \epsilon=\lVert T_{\mathcal{U}}-\mathcal{F}_{T}(O^{\star})\rVert measures their noise.
Theorem A1 (Orientation from normalized moments).
Let both point sets have positive definite covariance. For every moment pair T outside a set of zero volume in \mathbb{R}^{25}, distinct orientations give distinct moments \mathcal{F}_{T}(O), and there is a constant \Gamma_{T}>0 such that for all O^{\star},\hat{O}\in\mathcal{V}
\lVert\hat{O}-O^{\star}\rVert\leq(\hat{\epsilon}+\epsilon)/\Gamma_{T}.A model of N\geq 34 points drawn from a joint density has such a moment pair with probability one.
Here \Gamma_{T} is the greatest lower bound of the change of the projected moments per unit change of orientation. It is zero for symmetric models such as the cube (Lemma A5) and small for nearly symmetric ones (Corollary A2). The theorem bounds the orientation error linearly by the moment errors, with the factor 1/\Gamma_{T}, before any correspondence is formed. Under perspective projection, the normalized observations are in general not the image of the normalized model under any orientation, because the depths of the model points vary. The observation error \epsilon then contains this departure from an affine camera together with the image noise. Step 1 therefore uses the affine orientations as starting values, and the perspective fit of Step 2 refines them with the individual depths. The uniqueness of the perspective moment fit bounds the pose error by the moment errors, through a modulus without an explicit form (Corollary A1). In the depth study of Tab. A19, the affine initial poses have median rotation errors of 9^{\circ} to 161^{\circ} before perspective fitting and EM, and the full solver is within 1^{\circ} on 88 of 90 poses.
Normalized point sets. We center the model points at their mean \bar{\bm{y}} and normalize them by their empirical covariance \Sigma_{\mathcal{Y}}=N^{-1}\sum_{j}(\bm{y}_{j}-\bar{\bm{y}})(\bm{y}_{j}-\bar{\bm{y}})^{\top}. This gives the normalized points \tilde{\bm{y}}_{j}=\Sigma_{\mathcal{Y}}^{-1/2}(\bm{y}_{j}-\bar{\bm{y}}), which form the normalized 3D point set \tilde{\mathcal{Y}}. We normalize the calibrated observations in the same way by their own mean and covariance, which gives \tilde{\mathcal{U}}. Both covariances are positive definite by assumption, so both normalizations are defined. The next lemma proves the reduction stated before Theorem A1, namely that, for complete noiseless affine observations, the two normalized point sets differ only by an orientation.
Lemma A3 (Affine normalization).
Suppose that the 3D point set \mathcal{Y}=\{\bm{y}_{j}\}_{j=1}^{N} has positive definite covariance \Sigma_{\mathcal{Y}}, that A\in\mathbb{R}^{2\times 3} has rank two, and that \bm{b}\in\mathbb{R}^{2} is an image translation. Let \sigma be a permutation, and let \bm{p}_{i}=A\bm{y}_{\sigma(i)}+\bm{b} be complete affine projections without measurement error, with mean \bar{\bm{p}}. Then their covariance \Sigma_{p}=A\Sigma_{\mathcal{Y}}A^{\top} is positive definite, and the normalized projections \tilde{\bm{p}}_{i}=\Sigma_{p}^{-1/2}(\bm{p}_{i}-\bar{\bm{p}}) satisfy
\tilde{\bm{p}}_{i}=O\tilde{\bm{y}}_{\sigma(i)},\qquad O=\Sigma_{p}^{-1/2}A\Sigma_{\mathcal{Y}}^{1/2},\qquad OO^{\top}=I_{2}.The permutation \sigma reorders the points, so the projections have mean A\bar{\bm{y}}+\bm{b} and covariance A\Sigma_{\mathcal{Y}}A^{\top}, and centering removes \bm{b}. For a nonzero vector \bm{r}\in\mathbb{R}^{2}, the rank of A gives A^{\top}\bm{r}\neq 0, and hence \bm{r}^{\top}\Sigma_{p}\bm{r}=(A^{\top}\bm{r})^{\top}\Sigma_{\mathcal{Y}}(A^{\top}\bm{r})>0. Substituting this covariance into OO^{\top} gives OO^{\top}=\Sigma_{p}^{-1/2}\Sigma_{p}\Sigma_{p}^{-1/2}=I_{2}. Finally, \tilde{\bm{p}}_{i}=\Sigma_{p}^{-1/2}A(\bm{y}_{\sigma(i)}-\bar{\bm{y}})=\Sigma_{p}^{-1/2}A\Sigma_{\mathcal{Y}}^{1/2}\tilde{\bm{y}}_{\sigma(i)}=O\tilde{\bm{y}}_{\sigma(i)}. ∎
Suppose that the observations are complete and noiseless and that the calibrated observations are \bm{u}_{\mathrm{cal},i}=A\bm{y}_{\sigma(i)}+\bm{b} for a matrix A\in\mathbb{R}^{2\times 3} of rank two and a vector \bm{b}\in\mathbb{R}^{2}. Lemma A3 with \bm{p}_{i}=\bm{u}_{\mathrm{cal},i} then gives the normalized observations \tilde{\bm{u}}_{i}=O^{\star}\tilde{\bm{y}}_{\sigma(i)} for a matrix O^{\star} with orthonormal rows, that is, for an orientation O^{\star}\in\mathcal{V}. Moments do not depend on the order of the points, so the correspondences \sigma drop out, and the normalized observed moments are T_{\mathcal{U}}=\mathcal{F}_{T}(O^{\star}).
Pixel & calibrated coordinates. Theorem A1 normalizes the calibrated observations. Normalizing the pixel coordinates gives the same orientation up to an orthogonal map of the image. Removing the intrinsics is an invertible affine map \bm{u}\mapsto C_{K}\bm{u}+\bm{b}_{K}, with an invertible matrix C_{K}\in\mathbb{R}^{2\times 2}, that sends a pixel \bm{u} to its calibrated point \bm{u}_{\mathrm{cal}}. If the pixel covariance \Sigma_{\mathcal{U}} is positive definite, the normalized pixel coordinates are \bm{e}_{\mathrm{pix}}=\Sigma_{\mathcal{U}}^{-1/2}(\bm{u}-\bar{\bm{u}}). The calibrated covariance is C_{K}\Sigma_{\mathcal{U}}C_{K}^{\top}, so normalization after calibration gives \tilde{\bm{u}}=Q_{K}\bm{e}_{\mathrm{pix}} with Q_{K}=(C_{K}\Sigma_{\mathcal{U}}C_{K}^{\top})^{-1/2}C_{K}\Sigma_{\mathcal{U}}^{1/2}, which is orthogonal because Q_{K}Q_{K}^{\top}=I_{2}. If \tilde{\bm{u}}_{i}=O^{\star}\tilde{\bm{y}}_{\sigma(i)}, the normalized pixel coordinates of observation i are therefore Q_{K}^{\top}O^{\star}\tilde{\bm{y}}_{\sigma(i)}, and Q_{K}^{\top}O^{\star} is again an orientation in \mathcal{V}. Perspective fitting does not need this comparison, because \mathcal{L}_{4} applies one fixed map h to the observations and to the projections.
Separation constant. The constant of Theorem A1 is the greatest lower bound of the ratio between a change of the projected moments and the change of orientation that causes it, in the Frobenius norm,
\Gamma_{T}=\inf_{\begin{subarray}{c}O,O^{\prime}\in\mathcal{V}\\
O\neq O^{\prime}\end{subarray}}\frac{\lVert\mathcal{F}_{T}(O)-\mathcal{F}_{T}(O^{\prime})\rVert}{\lVert O-O^{\prime}\rVert}.Outside the exceptional set defined in the proof, the derivative of \mathcal{F}_{T} in orientation also has rank three at every O\in\mathcal{V}. Step 4 of the proof uses this to show \Gamma_{T}>0.
Outline of the proof. The proof has four parts. First, we write each moment tensor as a homogeneous polynomial, so that \mathcal{F}_{T}(O) becomes the restriction of two polynomials to the plane spanned by the rows of O. Second, Lemma A4 counts the independent linear conditions on T under which two distinct orientations have equal moments, and those under which the derivative of \mathcal{F}_{T} vanishes in a tangent direction. Third, the proof of Theorem A1 combines these counts with the dimensions of the families of orientation pairs and tangent directions. Steps 1 to 3 of that proof show that the exceptional moment pairs T form a set of dimension at most 24 in the 25-dimensional space of moment pairs. Outside this set, compactness gives \Gamma_{T}>0 (Step 4), and the definition of \Gamma_{T} gives the error bound (Step 5). Fourth, a separate proof shows that a model of N\geq 34 points drawn from a joint density avoids the exceptional set with probability one. After the proof, Lemma A5 shows that \Gamma_{T} depends continuously on T and vanishes for symmetric models. Together, these two properties imply that nearly symmetric models have small \Gamma_{T} (Corollary A2).
Moments as forms. A symmetric tensor of order g on \mathbb{R}^{3} is equivalent to a form of degree g, which is a polynomial in three variables whose monomials all have total degree g. We use forms because restricting a polynomial to a plane is simpler to analyze than contracting a tensor. We give each form the Frobenius norm of its symmetric tensor, and a pair of forms the direct-sum norm of the two tensors, as in Theorem A1. The value of \Gamma_{T} depends on this choice, because the Frobenius norm weights each distinct entry m_{\alpha} by its multiplicity (Sec. A.1). Unweighted norms of the distinct polynomial coefficients need not give the same value. In this representation, the normalized model moment \mathcal{M}_{g}(\tilde{\mathcal{Y}}) is the form
F_{g}(\bm{\zeta})=\bigl\langle\mathcal{M}_{g}(\tilde{\mathcal{Y}}),\bm{\zeta}^{\otimes g}\bigr\rangle=\frac{1}{N}\sum_{j=1}^{N}(\bm{\zeta}\cdot\tilde{\bm{y}}_{j})^{g},\quad\bm{\zeta}\in\mathbb{R}^{3}.We write \mathcal{S}_{g} for the space of forms of degree g on \mathbb{R}^{3}, of dimension \binom{g+2}{2}, and \mathcal{H}_{g} for the space of forms of degree g on \mathbb{R}^{2}, of dimension g+1. The pair T=(F_{3},F_{4}) is then a point of \mathcal{T}=\mathcal{S}_{3}\oplus\mathcal{S}_{4}. This space has dimension 10+15=25 and is the space of moment pairs in Theorem A1.
Projected moments as restrictions. The two orthonormal rows of an orientation O\in\mathcal{V} span a plane in \mathbb{R}^{3}. We write \bm{\nu} for a unit normal of this plane, so that O\bm{\nu}=0 and O^{\top}O=I_{3}-\bm{\nu}\bm{\nu}^{\top} is the orthogonal projection onto the plane \bm{\nu}^{\perp}. For image coordinates \bm{u}\in\mathbb{R}^{2}, we have \bm{u}\cdot O\tilde{\bm{y}}_{j}=O^{\top}\bm{u}\cdot\tilde{\bm{y}}_{j}. The projected moment of order g is therefore the restriction of F_{g} to the plane, written in image coordinates,
(\mathcal{R}_{O}F_{g})(\bm{u})=F_{g}(O^{\top}\bm{u}),\quad\bm{u}\in\mathbb{R}^{2}.The cubic and quartic projected moments form the pair
\mathcal{F}_{T}(O)=\bigl(\mathcal{R}_{O}F_{3},\mathcal{R}_{O}F_{4}\bigr)\in\mathcal{H}_{3}\oplus\mathcal{H}_{4},in a space of dimension 4+5=9. The map \mathcal{F}_{T} is linear in T and polynomial in O, and it is defined for every T\in\mathcal{T}, whether or not T comes from a point set. Each restriction \mathcal{R}_{O} maps \mathcal{S}_{g} onto \mathcal{H}_{g}, because a form f\in\mathcal{H}_{g} has the extension \bm{\zeta}\mapsto f(O\bm{\zeta}), whose restriction is f. Two orientations O and O^{\prime} have equal projected moments exactly when T lies in the kernel of the linear operator \Delta_{O,O^{\prime}}:\mathcal{T}\to\mathcal{H}_{3}\oplus\mathcal{H}_{4} given by
\Delta_{O,O^{\prime}}T=\mathcal{F}_{T}(O)-\mathcal{F}_{T}(O^{\prime}).The rank of \Delta_{O,O^{\prime}} is the number of independent linear conditions on T under which the two orientations share their moments. The following lemma computes this rank. It also computes the rank of the derivative of \mathcal{F}_{T} in a tangent direction, which plays the same role for two orientations that are infinitely close.
Lemma A4 (Rank of the moment difference of two orientations).
Let O and O^{\prime} be orientations with unit normals \bm{\nu} and \bm{\nu}^{\prime}, distinct in parts (a) and (b).
(a) If \bm{\nu}^{\prime}\neq\pm\bm{\nu}, let \bm{d}_{\rm L} be a unit vector orthogonal to both normals, and put \bm{o}=O\bm{d}_{\rm L} and \bm{o}^{\prime}=O^{\prime}\bm{d}_{\rm L}. The rank of \Delta_{O,O^{\prime}} is 9 if \bm{o}^{\prime}\neq\pm\bm{o}. It is 7 if \bm{o}^{\prime}=\bm{o}, and 8 if \bm{o}^{\prime}=-\bm{o}.
(b) If \bm{\nu}^{\prime}=\pm\bm{\nu}, then O^{\prime}=GO for an orthogonal matrix G\neq I_{2}. The rank of \Delta_{O,O^{\prime}} is 4 if G is a reflection or the rotation by \pi. It is 6 if G is a rotation by \pm\pi/2 or \pm 2\pi/3, and 8 for every other rotation G\neq I_{2}.
(c) Let R_{\perp} be the rotation of the plane by \pi/2. The tangent space of \mathcal{V} at O consists of the matrices \dot{O}=\omega R_{\perp}O+\bm{q}\bm{\nu}^{\top} with \omega\in\mathbb{R} and \bm{q}\in\mathbb{R}^{2}. The derivative of \mathcal{F}_{T} at O in the direction \dot{O}, as a linear map of T, has rank 9 if \omega\neq 0\neq\bm{q}. Its rank is 7 if \omega=0\neq\bm{q}, and 8 if \bm{q}=0\neq\omega.
Each operator acts on the cubic and the quartic component of T separately. In all three parts, we therefore compute the rank for each degree g\in\{3,4\} and add the two ranks.
Part (a). The two planes are distinct and meet in the line spanned by \bm{d}_{\rm L}. We first determine which pairs (\mathcal{R}_{O}F,\mathcal{R}_{O^{\prime}}F) arise as F ranges over \mathcal{S}_{g}, and then which differences between the restrictions arise. A form F\in\mathcal{S}_{g} satisfies \mathcal{R}_{O}F=0 exactly when it vanishes on the plane \bm{\nu}^{\perp}, that is, when it is divisible by \bm{\nu}\cdot\bm{\zeta}. A form that vanishes on both planes is therefore divisible by (\bm{\nu}\cdot\bm{\zeta})(\bm{\nu}^{\prime}\cdot\bm{\zeta}). Dividing out these factors identifies the kernel of F\mapsto(\mathcal{R}_{O}F,\mathcal{R}_{O^{\prime}}F) with \mathcal{S}_{g-2}, so this map has rank \binom{g+2}{2}-\binom{g}{2}=2g+1. The restrictions \mathcal{R}_{O}F at \bm{o} and \mathcal{R}_{O^{\prime}}F at \bm{o}^{\prime} both take the value F(\bm{d}_{\rm L}), because O^{\top}\bm{o}=\bm{d}_{\rm L}=O^{\prime\top}\bm{o}^{\prime}. The image of the map is therefore contained in
\mathcal{W}_{g}=\bigl\{(f,f^{\prime})\in\mathcal{H}_{g}\times\mathcal{H}_{g}:f(\bm{o})=f^{\prime}(\bm{o}^{\prime})\bigr\}.Since \mathcal{W}_{g} also has dimension 2g+1, the image equals \mathcal{W}_{g}.
The degree-g component of \Delta_{O,O^{\prime}} subtracts the two restrictions, so its image is \{f-f^{\prime}:(f,f^{\prime})\in\mathcal{W}_{g}\}. Suppose first that some form of \mathcal{H}_{g} takes different values at \bm{o} and \bm{o}^{\prime}. The image is then all of \mathcal{H}_{g}. Indeed, given f_{0}\in\mathcal{H}_{g}, we choose f^{\prime}\in\mathcal{H}_{g} with f^{\prime}(\bm{o}^{\prime})-f^{\prime}(\bm{o})=f_{0}(\bm{o}) and put f=f_{0}+f^{\prime}, so that (f,f^{\prime})\in\mathcal{W}_{g} and f-f^{\prime}=f_{0}. Suppose now that all forms of degree g agree at \bm{o} and \bm{o}^{\prime}. Every difference then vanishes at \bm{o}, and every f with f(\bm{o})=0 is the difference between the components of (f,0)\in\mathcal{W}_{g}. The image is then defined by one linear condition, so its dimension drops by one. Because \bm{o} and \bm{o}^{\prime} are unit vectors, all forms of degree g agree at them exactly when \bm{o}^{\prime}=\bm{o}, or when \bm{o}^{\prime}=-\bm{o} and g is even. The ranks are therefore 4+5, 3+4 and 4+4 in the three cases.
Part (b). The two orientations share their plane and differ only in the image coordinates on it. The rows of O^{\prime} lie in the row space \bm{\nu}^{\perp} of O, so O^{\prime}=O^{\prime}O^{\top}O=GO with G=O^{\prime}O^{\top}. The matrix G is orthogonal because GG^{\top}=O^{\prime}(I_{3}-\bm{\nu}\bm{\nu}^{\top})O^{\prime\top}=I_{2}, and G\neq I_{2} because O^{\prime}\neq O. By Eq. A13, \mathcal{R}_{O^{\prime}}F=(\mathcal{R}_{O}F)\circ G^{\top}. Since \mathcal{R}_{O} is onto, the degree-g rank of \Delta_{O,O^{\prime}} is g+1 minus the dimension of the space of forms f\in\mathcal{H}_{g} with f\circ G^{\top}=f. It remains to count these invariant forms.
For a rotation G by an angle \theta, complex coordinates make the action diagonal. In the coordinate z=u_{1}+\mathrm{i}u_{2}, the monomials z^{j}\bar{z}^{g-j} with 0\leq j\leq g span the complex forms of degree g, and f\mapsto f\circ G^{\top} multiplies them by e^{-\mathrm{i}(2j-g)\theta}. This operator is real, so its fixed subspaces over \mathbb{R} and over \mathbb{C} have the same dimension, namely the number of indices j with (2j-g)\theta\in 2\pi\mathbb{Z}. Since G\neq I_{2}, the angle \theta is not a multiple of 2\pi. For g=3, the integers 2j-g are \pm 1 and \pm 3, so this dimension is 2 if 3\theta\in 2\pi\mathbb{Z} and 0 otherwise. For g=4, the integers are 0, \pm 2 and \pm 4, so the dimension is 1, plus 2 if 2\theta\in 2\pi\mathbb{Z}, plus 2 if 4\theta\in 2\pi\mathbb{Z}. For a reflection G, choosing coordinate axes along and perpendicular to its axis gives (u_{1},u_{2})\mapsto(u_{1},-u_{2}). The invariant forms are then those even in u_{2}, with dimensions 2 for g=3 and 3 for g=4. Subtracting these dimensions from 4+5 gives the ranks of part (b).
Part (c). A tangent vector is a first-order change of an orientation that keeps its rows orthonormal. Differentiating OO^{\top}=I_{2} shows that the tangent vectors are the matrices \dot{O} with \dot{O}O^{\top}+O\dot{O}^{\top}=0, a space of dimension three. The matrices \omega R_{\perp}O+\bm{q}\bm{\nu}^{\top} satisfy this equation because O\bm{\nu}=0 and R_{\perp}^{\top}=-R_{\perp}. They also span three dimensions, so they form the tangent space. The term \omega R_{\perp}O rotates the image coordinates within the plane, and the term \bm{q}\bm{\nu}^{\top} tilts the plane in \mathbb{R}^{3}.
To differentiate the restriction, we expand F\in\mathcal{S}_{g} in powers of the coordinate normal to the plane,
F(\bm{\zeta})=\sum_{j=0}^{g}(\bm{\nu}\cdot\bm{\zeta})^{j}F^{(j)}(O\bm{\zeta}),\quad F^{(j)}\in\mathcal{H}_{g-j}.As F ranges over \mathcal{S}_{g}, the pair (F^{(0)},F^{(1)}) ranges over \mathcal{H}_{g}\times\mathcal{H}_{g-1}. Since (O+\tau\dot{O})^{\top}\bm{u}=O^{\top}(\bm{u}+\tau\omega R_{\perp}^{\top}\bm{u})+\tau(\bm{q}\cdot\bm{u})\bm{\nu}, the derivative of the restriction is
\begin{gathered}\frac{d}{d\tau}\mathcal{R}_{O+\tau\dot{O}}F\Big|_{\tau=0}=\omega\partial_{R_{\perp}}F^{(0)}+(\bm{q}\cdot\bm{u})F^{(1)},\\
(\partial_{R_{\perp}}f)(\bm{u})=\nabla f(\bm{u})\cdot R_{\perp}^{\top}\bm{u}.\end{gathered}The first term comes from the rotation within the plane and the second from the tilt of the plane. Because F^{(0)} and F^{(1)} vary independently, the image of the derivative is the sum of the images of the two terms.
Differentiating the rotation factors of part (b) at \theta=0 shows that \partial_{R_{\perp}} has the eigenvalues -\mathrm{i}(2j-g) for 0\leq j\leq g. The operator is therefore invertible on \mathcal{H}_{3}, and its image in \mathcal{H}_{4} consists of the forms with zero mean on the unit circle, a space of dimension four. Multiplication by \bm{q}\cdot\bm{u} with \bm{q}\neq 0 is injective from \mathcal{H}_{g-1} to \mathcal{H}_{g}, so the tilt term has rank g. If \omega\neq 0\neq\bm{q}, the cubic component is onto because \partial_{R_{\perp}} is invertible on \mathcal{H}_{3}. The quartic form (\bm{q}\cdot\bm{u})^{4} lies in the image of the tilt term and has positive mean on the unit circle. It therefore supplies the direction missing from the image of \partial_{R_{\perp}}, so the quartic component is also onto and the rank is 4+5. If \omega=0\neq\bm{q}, only the tilt term remains, with rank 3+4. If \bm{q}=0\neq\omega, only the rotation term remains, with rank 4+4. ∎
- \bm{\nu}^{\prime}\neq\pm\bm{\nu}, \bm{o}^{\prime}\neq\pm\bm{o}
- 6
- 9
- 22
- \bm{\nu}^{\prime}\neq\pm\bm{\nu}, \bm{o}^{\prime}=\bm{o}
- 5
- 7
- 23
- \bm{\nu}^{\prime}\neq\pm\bm{\nu}, \bm{o}^{\prime}=-\bm{o}
- 5
- 8
- 22
- \bm{\nu}^{\prime}=\pm\bm{\nu}, rotation by \pm\pi/2 or \pm 2\pi/3
- 3
- 6
- 22
- \bm{\nu}^{\prime}=\pm\bm{\nu}, rotation by \pi
- 3
- 4
- 24
- \bm{\nu}^{\prime}=\pm\bm{\nu}, any other rotation
- 4
- 8
- 21
- \bm{\nu}^{\prime}=\pm\bm{\nu}, reflection \operatorname{diag}(1,-1)
- 3
- 4
- 24
Steps 1 to 3 show that the moment pairs T for which \mathcal{F}_{T} fails to be one-to-one, or has a derivative of rank less than three, form a set of dimension at most 24. The sets involved are semialgebraic, that is, built by finite unions and intersections from polynomial equations and inequalities. As in the proof of Theorem 1, we use three facts about their dimension [2]. First, a semialgebraic map does not increase dimension. Second, the dimension of its domain is at most the dimension of its image plus the largest dimension of a fiber, the set of points mapped to one point. Third, a semialgebraic set of smaller dimension than its ambient Euclidean space has Lebesgue measure zero and lies in the zero set of a nonzero polynomial.
Step 1. Two orientations with the same moments. Let \mathcal{T}_{\mathrm{inj}} be the set of T\in\mathcal{T} with \Delta_{O,O^{\prime}}T=0 for some O\neq O^{\prime}, so that \mathcal{F}_{T} is one-to-one exactly when T\notin\mathcal{T}_{\mathrm{inj}}. We divide the pairs of distinct orientations into the families of Tab. A2. On each family, the rank of \Delta_{O,O^{\prime}} is constant by Lemma A4. We consider the triples (O,O^{\prime},T) with (O,O^{\prime}) in a family \mathcal{D} and \Delta_{O,O^{\prime}}T=0. The fiber of these triples over a fixed pair (O,O^{\prime}) is the kernel of \Delta_{O,O^{\prime}}, of dimension 25 minus the rank, and the pairs contribute at most \dim\mathcal{D} further parameters. By the first two facts, the set of T that occur in these triples has dimension at most
\dim\mathcal{D}+25-\rank\Delta_{O,O^{\prime}}.The families are semialgebraic. We choose the normals as the cross products of the rows of O and of O^{\prime}, which are polynomial in the entries. Then \bm{\nu}^{\prime}=\pm\bm{\nu} exactly when O^{\prime}(I_{3}-O^{\top}O)=0. On the families with distinct planes, the cross product \bm{d}_{\times}=\bm{\nu}\times\bm{\nu}^{\prime} is a nonzero multiple of \bm{d}_{\rm L}, so \bm{o}^{\prime}=\pm\bm{o} exactly when O^{\prime}\bm{d}_{\times}=\pm O\bm{d}_{\times}. The dimensions of the families follow from \dim\mathcal{V}=3. All pairs form a set of dimension 6. A pair with \bm{o}^{\prime}=\pm\bm{o} is determined, up to finitely many choices, by O, the unit vector \bm{o} and the angle between the two planes about \bm{d}_{\rm L}=O^{\top}\bm{o}, which gives dimension 3+1+1=5. A pair with \bm{\nu}^{\prime}=\pm\bm{\nu} has the form (O,GO), which gives dimension 3 when G is one of finitely many rotations and 4 when G ranges over all rotations.
The reflection pairs (O,GO) also have dimension 4, and Eq. A19 would give 25 for them, so we remove one redundant parameter. Rotating the image coordinates of both orientations by the same planar rotation G_{1} preserves equal moments. Indeed, Eq. A13 gives \Delta_{G_{1}O,G_{1}GO}T=(\Delta_{O,GO}T)\circ G_{1}^{\top}, and composition with G_{1}^{\top} is invertible, so the two kernels agree. As the rotation G_{1} varies, the conjugate G_{1}GG_{1}^{-1} runs over all reflections. It therefore suffices to consider the pairs (O,\operatorname{diag}(1,-1)\,O), a family of dimension 3 with kernels of dimension 25-4. The largest bound in Tab. A2 is 24, so \dim\mathcal{T}_{\mathrm{inj}}\leq 24.
Step 2. An orientation with a degenerate derivative. Let \mathcal{T}_{\mathrm{imm}} be the set of T for which, at some orientation, the derivative of \mathcal{F}_{T} vanishes in some nonzero tangent direction \dot{O}. For T\notin\mathcal{T}_{\mathrm{imm}}, the derivative is injective on the three-dimensional tangent space at every orientation, that is, it has rank three. Step 4 needs this property, because two orientations that approach each other produce such a direction in the limit. The condition does not change when \dot{O} is multiplied by a nonzero scalar, so only the direction of \dot{O} contributes parameters. The families of orientations and tangent directions have dimension 3+2 when \omega\neq 0\neq\bm{q}, dimension 3+1 when \omega=0, and dimension 3 when \bm{q}=0. By Lemma A4(c), the corresponding derivatives have ranks 9, 7 and 8. The count of Eq. A19 gives 21, 22 and 20, so \dim\mathcal{T}_{\mathrm{imm}}\leq 22.
Step 3. A set of measure zero. The exceptional set \mathcal{T}_{\mathrm{exc}}=\mathcal{T}_{\mathrm{inj}}\cup\mathcal{T}_{\mathrm{imm}} is semialgebraic of dimension at most 24 in the 25-dimensional space \mathcal{T}. By the third fact, it has Lebesgue measure zero and lies in a proper algebraic subset of \mathcal{T}. For T\notin\mathcal{T}_{\mathrm{exc}}, the map \mathcal{F}_{T} is one-to-one on \mathcal{V} and its derivative has rank three at every orientation. The first property is the first claim of Theorem A1, and Step 4 uses the second.
Step 4. The lower bound is positive. Injectivity alone does not give \Gamma_{T}>0, because the ratio in Eq. A11 could tend to zero along pairs of distinct orientations that approach each other. Compactness of \mathcal{V} and Step 2 exclude this. We fix T\notin\mathcal{T}_{\mathrm{exc}} and suppose that \Gamma_{T}=0. There are then distinct orientations O_{i},O_{i}^{\prime}\in\mathcal{V} for i=1,2,\ldots such that
\frac{\lVert\mathcal{F}_{T}(O_{i})-\mathcal{F}_{T}(O_{i}^{\prime})\rVert}{\lVert O_{i}-O_{i}^{\prime}\rVert}\xrightarrow[i\to\infty]{}0.By compactness, we may pass to a subsequence with O_{i}\to O and O_{i}^{\prime}\to O^{\prime}. If O\neq O^{\prime}, the numerators tend to zero because \mathcal{V} is bounded, and continuity gives \mathcal{F}_{T}(O)=\mathcal{F}_{T}(O^{\prime}), which contradicts injectivity. If O=O^{\prime}, we pass to a further subsequence along which the normalized differences (O_{i}^{\prime}-O_{i})/\lVert O_{i}^{\prime}-O_{i}\rVert converge to a matrix \dot{O} of unit norm. Subtracting the equations O_{i}O_{i}^{\top}=I_{2} and O_{i}^{\prime}O_{i}^{\prime\top}=I_{2} and dividing by \lVert O_{i}^{\prime}-O_{i}\rVert gives \dot{O}O^{\top}+O\dot{O}^{\top}=0 in the limit, so \dot{O} is tangent at O. The map \mathcal{F}_{T} extends to a polynomial, hence continuously differentiable, map on \mathbb{R}^{2\times 3}. The moment difference therefore equals the derivative at O applied to O_{i}^{\prime}-O_{i}, up to a remainder of order o(\lVert O_{i}^{\prime}-O_{i}\rVert). By Eq. A20, the derivative at O vanishes in the direction \dot{O}, which contradicts Step 2. Hence \Gamma_{T}>0.
Step 5. The error bound. Let T\notin\mathcal{T}_{\mathrm{exc}}, and let O^{\star} and \hat{O} lie in \mathcal{V}. The definition of \Gamma_{T} gives \Gamma_{T}\lVert\hat{O}-O^{\star}\rVert\leq\lVert\mathcal{F}_{T}(\hat{O})-\mathcal{F}_{T}(O^{\star})\rVert. The triangle inequality through T_{\mathcal{U}} bounds the right-hand side by \hat{\epsilon}+\epsilon, and dividing by \Gamma_{T}>0 proves the bound
\lVert\hat{O}-O^{\star}\rVert\leq\frac{\hat{\epsilon}+\epsilon}{\Gamma_{T}}of Theorem A1. For complete noiseless affine observations, T_{\mathcal{U}}=\mathcal{F}_{T}(O^{\star}) by the normalization above, so \epsilon=0. Any orientation \hat{O} that fits the observed moments exactly has \hat{\epsilon}=0 and therefore equals O^{\star}, so these observations determine the normalized orientation. ∎
Step 3 of the proof above shows that \mathcal{T}_{\mathrm{exc}} has measure zero among moment pairs. A model, however, is a point of \mathbb{R}^{3N}, and a set of measure zero among moment pairs need not have a preimage of measure zero among models. We therefore show that the map from point coordinates to T is a submersion at almost every point set, meaning that its derivative maps onto the space of moment pairs. The pair T depends on the point set through its 34 power sums, one sum over j for each monomial of degree one to four in the three coordinates, and we treat the map to the power sums and the map from them to T in turn.
Step 1. From the point set to its power sums. The Jacobian of the power-sum map has one row per monomial, and the row of a monomial lists its gradients at \bm{y}_{1},\dots,\bm{y}_{N}. These rows are linearly dependent exactly when a nonzero linear combination of the 34 monomials has zero gradient at every \bm{y}_{j}. Such a combination is a nonconstant polynomial, so the set where its gradient vanishes is a proper algebraic subset of \mathbb{R}^{3}, of dimension at most two. Up to scale, these combinations form a family of dimension 33. Allowing each of the N points to lie in the corresponding set gives a semialgebraic set of dimension at most 33+2N, which contains every point set at which the Jacobian loses rank. This set has measure zero in \mathbb{R}^{3N} because 33+2N<3N.
Step 2. From the power sums to T. The derivative of the map from power sums to moment pairs has full row rank wherever the covariance is positive definite. With the sums of degrees one and two held fixed, normalization is a fixed invertible affine map of \mathbb{R}^{3}, and (F_{3},F_{4}) is an invertible affine function of the sums of degrees three and four.
Step 3. Conclusion. For N\geq 34, the covariance is positive definite with probability one. By Steps 1 and 2, the map to T is a submersion on an open set whose complement has measure zero. After smooth changes of coordinates, a submersion acts locally as a coordinate projection, so the preimage of the null set \mathcal{T}_{\mathrm{exc}} is null [43]. The distribution of the point set has a density on \mathbb{R}^{3N}, so it assigns probability zero to this preimage. ∎
Corollary A2 uses two further properties of \Gamma_{T}, which the next lemma proves.
Lemma A5 (Continuity of the lower bound and symmetric models).
There is a constant C such that \lvert\Gamma_{T}-\Gamma_{T^{\prime}}\rvert\leq C\lVert T-T^{\prime}\rVert for all moment pairs T and T^{\prime}. If T=(F_{3},F_{4}) satisfies F_{3}\circ Q_{\rm s}=F_{3} and F_{4}\circ Q_{\rm s}=F_{4} for an orthogonal matrix Q_{\rm s}\neq I_{3}, then \Gamma_{T}=0 and T\in\mathcal{T}_{\mathrm{exc}}.
Continuity. The map \mathcal{F}_{T}(O) is linear in T and polynomial in O, and \mathcal{V} is bounded. There is therefore a constant C such that \lVert\mathcal{F}_{T}(O)-\mathcal{F}_{T}(O^{\prime})\rVert\leq C\lVert T\rVert\lVert O-O^{\prime}\rVert for all orientations and all T. Applying this bound to T-T^{\prime}, and the triangle inequality to the definition of \Gamma_{T}, gives \lvert\Gamma_{T}-\Gamma_{T^{\prime}}\rvert\leq C\lVert T-T^{\prime}\rVert. In particular, the set \{T:\Gamma_{T}>0\} is open.
Symmetry. We choose an orientation O with OQ_{\rm s}\neq O, which exists because Q_{\rm s}\neq I_{3}. The matrix OQ_{\rm s} is also an orientation. The forms are invariant under Q_{\rm s}^{\top}=Q_{\rm s}^{-1} as well, so \mathcal{R}_{OQ_{\rm s}}F_{g}(\bm{u})=F_{g}(Q_{\rm s}^{\top}O^{\top}\bm{u})=F_{g}(O^{\top}\bm{u}). Hence \mathcal{F}_{T}(OQ_{\rm s})=\mathcal{F}_{T}(O), so \mathcal{F}_{T} is not one-to-one and \Gamma_{T}=0. The invariance holds when Q_{\rm s} maps the normalized model to itself, and a symmetry of the model gives such a matrix. Suppose that an invertible matrix L\neq I_{3} and a permutation \pi satisfy L(\bm{y}_{j}-\bar{\bm{y}})=\bm{y}_{\pi(j)}-\bar{\bm{y}} for every j. A mirror plane or a nontrivial rotational symmetry of the model has this form, because an isometry that maps a finite set to itself fixes its centroid. Reordering the points does not change their covariance, so L\Sigma_{\mathcal{Y}}L^{\top}=\Sigma_{\mathcal{Y}}. The conjugate Q_{\rm s}=\Sigma_{\mathcal{Y}}^{-1/2}L\Sigma_{\mathcal{Y}}^{1/2} is therefore orthogonal, because Q_{\rm s}Q_{\rm s}^{\top}=\Sigma_{\mathcal{Y}}^{-1/2}L\Sigma_{\mathcal{Y}}L^{\top}\Sigma_{\mathcal{Y}}^{-1/2}=I_{3}. It differs from I_{3} and maps \tilde{\bm{y}}_{j} to \tilde{\bm{y}}_{\pi(j)}. Its inverse Q_{\rm s}^{\top} also permutes the normalized points, so Eq. A12 gives F_{g}\circ Q_{\rm s}=F_{g}, and the moment pair of the model lies in \mathcal{T}_{\mathrm{exc}}. ∎
Depth variation & affine initial poses. The affine initial poses of Step 1 replace the depth of every model point by a common reference depth z_{\mathrm{ref}}>0, which adds a feature error before perspective fitting. To bound it, we write the camera coordinates of model point j as (\bm{x}_{j}^{\rm lat},z_{\mathrm{ref}}(1+\vartheta_{j})), with lateral coordinates \bm{x}_{j}^{\rm lat}\in\mathbb{R}^{2} and relative depth deviation \vartheta_{j}. The affine projection of the point in calibrated coordinates is \bm{p}^{\rm aff}_{j}=\bm{x}_{j}^{\rm lat}/z_{\mathrm{ref}}. We assume that |\vartheta_{j}|\leq\vartheta_{\max}<1 and \lVert\bm{p}^{\rm aff}_{j}\rVert\leq\rho_{\rm cal} for every j, so that \rho_{\rm cal} bounds the radius of the calibrated affine projections. The perspective projection of the point is \bm{p}^{\rm aff}_{j}/(1+\vartheta_{j}), so the two are at most \rho_{\rm cal}\vartheta_{\max}/(1-\vartheta_{\max}) apart. For a fixed feature map \bm{\phi} with Lipschitz constant \mathrm{Lip}(\bm{\phi}) on the line segments joining these pairs, Lipschitz continuity and averaging give
\left\lVert\frac{1}{N}\sum_{j}\left[\bm{\phi}\!\left(\frac{\bm{p}^{\rm aff}_{j}}{1+\vartheta_{j}}\right)-\bm{\phi}(\bm{p}^{\rm aff}_{j})\right]\right\rVert\leq\frac{\mathrm{Lip}(\bm{\phi})\,\rho_{\rm cal}\vartheta_{\max}}{1-\vartheta_{\max}}.Monomial features composed with a fixed affine image map, and the Fourier features of Sec. 4.1, have finite Lipschitz constants on every bounded region of the image, so the bound applies to both. The bound concerns the feature averages at a fixed pose and grows with the relative depth deviation \vartheta_{\max}. Perspective fitting uses the individual depths, so on complete noiseless inputs it has no error from the affine approximation at the true pose. Tab. A19 compares the affine initial poses with the full solver as the depth variation changes.
A.4 Near-symmetry & bounded features
This section proves two facts that the main text uses. Corollary A2 shows that \Gamma_{T} is small when the moment pair of a model is close to that of a symmetric model, so the bound of Eq. A21 is weak for nearly symmetric models. Lemma A6 proves that, at the true pose, the expected feature averages over the observations and over the projections differ by \eta(\bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}), the term that moment matching with outliers subtracts in Definition 1.
Near-symmetry. A model with a symmetry has two distinct orientations with the same projected moments, so its moment pair lies in the exceptional set of Theorem A1 (Lemma A5). The next corollary shows that moment pairs near such a pair have a small constant \Gamma_{T}, and hence weak orientation bounds.
Corollary A2 (Near-symmetric models).
Let T_{0} be a moment pair for which two distinct orientations give identical projected moments. Then \Gamma_{T_{0}}=0, and every moment pair T satisfies \Gamma_{T}\leq C\lVert T-T_{0}\rVert with the constant C of Lemma A5.
At T_{0}, the two orientations give a zero numerator in the definition of \Gamma_{T_{0}} in Eq. A11, so \Gamma_{T_{0}}=0. Lemma A5 shows that \lvert\Gamma_{T}-\Gamma_{T^{\prime}}\rvert\leq C\lVert T-T^{\prime}\rVert for all moment pairs T and T^{\prime}, and the choice T^{\prime}=T_{0} gives the bound. ∎
Bounded features with outliers. Moment matching with outliers (Definition 1) uses the fact that, at the true pose, the inliers contribute equally to the average over the observations and to the average over the projections, so the two averages differ through the outliers alone. The next lemma states this identity for the feature means of two distributions. It also bounds the change of a feature average when a fraction of the points is replaced. Without a bound on the features, one replaced point could change the average arbitrarily, so moment matching uses bounded features when outliers may be present.
Lemma A6 (Bounded features with outliers).
Let \bm{\phi}:\mathbb{R}^{2}\to\mathbb{R}^{d_{\phi}} be a measurable feature map with \sup_{\bm{u}\in\mathbb{R}^{2}}\lVert\bm{\phi}(\bm{u})\rVert\leq 1. Replacing a fraction 0\leq\eta\leq 1 of the points of a nonempty finite collection of 2D points by other 2D points changes the average of \bm{\phi} over the collection by at most 2\eta. Consider two distributions on \mathbb{R}^{2}, each a mixture of an inlier component with weight 1-\eta and an outlier component with weight \eta. Let the two inlier components have the same feature mean \bm{\phi}_{\mathrm{in}}, and let the outlier components have feature means \bm{\mu}_{\mathcal{U},0} and \bm{\mu}_{\mathcal{Y},0}. Then the feature means \bm{\mu}_{1} and \bm{\mu}_{2} of the two distributions satisfy
\displaystyle\bm{\mu}_{1} \\ \displaystyle=(1-\eta)\bm{\phi}_{\mathrm{in}}+\eta\bm{\mu}_{\mathcal{U},0}, \\ \displaystyle\bm{\mu}_{2} \\ \displaystyle=(1-\eta)\bm{\phi}_{\mathrm{in}}+\eta\bm{\mu}_{\mathcal{Y},0}, \\ \displaystyle\bm{\mu}_{1}-\bm{\mu}_{2} \\ \displaystyle=\eta(\bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}).Each replaced point changes the feature sum by a vector of norm at most two, so division by the size of the collection gives 2\eta. Each mixture mean is the weighted average of its inlier and outlier means, and subtracting the two cancels the common inlier term. ∎
If both point sets undergo replacements, the difference of their feature averages changes by at most twice the sum of the replaced fractions. These bounds hold for a fixed feature map and a fixed image normalization, and they do not shrink as the number of points grows. Lemma A17 gives a bound that does shrink when the outlier model points have the projected distribution of the inliers.
A.5 Poisson reference for the association level
Definition 2 compares the distance from each observation to its nearest projection with the local spacing of the projections. This section proves that, if the projections around an observation form a homogeneous Poisson process independent of it, the statistic E_{i} has a unit exponential distribution at every intensity. The association level compares the observed statistics with this reference, as Sec. B.1 specifies.
Lemma A7 (Exponential nearest-neighbor statistic).
Let a 2D point be chosen independently of a homogeneous Poisson process of positive intensity on \mathbb{R}^{2}. For an integer \ell\geq 1, let d_{1}\leq\cdots\leq d_{\ell+1} be the distances from this point to its \ell+1 nearest points of the process. Then
E=-\ell\log(1-d_{1}^{2}/d_{\ell+1}^{2})\ \sim\ \operatorname{Exp}(1).Conditional on d_{\ell+1}, the \ell nearer points of a homogeneous Poisson process are independent and uniform in the disk of radius d_{\ell+1} about the fixed point. The fraction of the area of that disk within distance d of its center is d^{2}/d_{\ell+1}^{2}, so the ratios d_{j}^{2}/d_{\ell+1}^{2} for 1\leq j\leq\ell are the order statistics of \ell independent uniform random variables on [0,1], whatever the intensity. For x\geq 0, their minimum exceeds 1-e^{-x/\ell} with probability (e^{-x/\ell})^{\ell}=e^{-x}, and this event is \{E>x\}. ∎
The lemma concerns one point chosen independently of the Poisson process. In MomentPnP, we estimate the pose from the observations, and the neighborhoods of different observations can share projections. Sums of these statistics therefore need not follow a Gamma distribution, and Sec. B.1 compares the association level with fixed thresholds.
A.6 Finite Fourier matching with uniform outliers
Lemma A6 controls the contribution of outliers at the true pose. We now show that, under its mixture model with uniform outliers, finitely many of the method’s Fourier features determine the pose and the outlier fraction, and we bound the error caused by finitely many sampled outliers. The results concern the objective of Definition 1, before EM refinement. We first fix the setting and restate Theorem 2 in its notation.
Coordinates and features. We work in the box coordinates \bm{z} of Sec. B.1, defined by the image rectangle D_{\rm F} of positive area. As defined there, the taper is W_{F}(\bm{z})=W_{F,1}(z_{1})W_{F,2}(z_{2}). Each factor W_{F,r} vanishes outside the interval [-h_{F,r}-\delta_{F},\,h_{F,r}+\delta_{F}] given by the half-width h_{F,r} of D_{\rm F} and the padding \delta_{F}, and it rises linearly over a distance \tau_{F} from each end. The weights are a_{\bm{k}}=\exp(-\zeta_{F}^{2}\lVert\bm{k}\rVert^{2}/2) with spectral width \zeta_{F}, and \mathrm{F}(K_{F}) contains one vector from each pair \pm\bm{k} of nonzero vectors \bm{k}\in\frac{\pi}{2}\mathbb{Z}^{2} with \lVert\bm{k}\rVert\leq\frac{\pi}{2}K_{F}. Throughout, D_{\rm F}, the box normalization, the taper W_{F} and the weights a_{\bm{k}} are fixed data. The method takes D_{\rm F} to be the bounding rectangle of the calibrated observations. Holding it fixed matches the method when D_{\rm F} is the bounding rectangle of the inlier observations, because image outliers drawn on it leave it unchanged. The same holds for the bounding box of the model points. For a pose \xi, the map p_{\xi}:\mathbb{R}^{3}\to\mathbb{R}^{2} sends a model point at positive depth to its projection in box coordinates, that is, the pixel projection of Tab. A1 followed by calibration and the box normalization. In this section only, \bm{p}_{j}(\xi)=p_{\xi}(\bm{y}_{j}) denotes this box projection. For a cutoff K_{F}, let \mathrm{F}(K_{F}) be the frequency set of Sec. B.1, let B_{K_{F}}=(\sum_{\bm{k}\in\mathrm{F}(K_{F})}a_{\bm{k}}^{2})^{1/2}, and let \bm{\phi}_{F} be the feature map, read as a function of box coordinates, with n_{\phi}=2|\mathrm{F}(K_{F})| real coordinates. The sets \mathrm{F}(K_{F}) grow with K_{F}, every weight a_{\bm{k}} is positive, and every nonzero \bm{k}\in\frac{\pi}{2}\mathbb{Z}^{2} or its negative lies in \mathrm{F}(K_{F}) once K_{F} is large enough. The spectral width \zeta_{F}, and hence every weight, stays fixed when K_{F} varies. The quantities below depend on K_{F}, and a subscript K_{F} marks this dependence where two cutoffs are compared.
Population model. Let \bm{y}_{1},\ldots,\bm{y}_{m} be the inlier model points, and let \mathcal{B} be their bounding box, which has positive volume and is held fixed. Let U be the uniform distribution on D_{\rm F}, expressed in box coordinates. At a pose \xi, the inlier projections have the empirical distribution P^{\rm in}_{\xi}, which puts mass 1/m at each \bm{p}_{j}(\xi), and P^{\mathcal{B}}_{\xi} is the distribution of p_{\xi}(\bm{y}) for \bm{y} uniform in \mathcal{B}. Let \mathcal{E} be a compact set of poses that contains \xi^{\star} and under which every point of \mathcal{B} has positive depth, and let \mathcal{I}\subset[0,1) be a compact interval. A parameter is a pair \theta=(\xi,\eta)\in\mathcal{E}\times\mathcal{I} of a pose and an outlier fraction. For the true parameter \theta^{\star}=(\xi^{\star},\eta^{\star}) with \eta^{\star}\in\mathcal{I}, we use the pose distance d_{\mathcal{Y}} of Corollary A1 and put
d(\theta,\theta^{\star})^{2}=d_{\mathcal{Y}}(\xi,\xi^{\star})^{2}+|\eta-\eta^{\star}|^{2}.If both point sets contain the fraction \eta^{\star} of uniform outliers, the observations have the population distribution P^{\rm obs}=(1-\eta^{\star})P^{\rm in}_{\xi^{\star}}+\eta^{\star}U, and the model points projected at \xi have the distribution (1-\eta^{\star})P^{\rm in}_{\xi}+\eta^{\star}P^{\mathcal{B}}_{\xi}. The population residual corresponding to Eq. 2 is therefore
\displaystyle\bm{r}_{K_{F}}(\xi,\eta)={} \\ \displaystyle(1-\eta^{\star})\bigl(\bm{\mu}^{\rm in}(\xi^{\star})-\bm{\mu}^{\rm in}(\xi)\bigr) \\ \displaystyle+(\eta^{\star}-\eta)\bigl(\bm{\mu}^{U}-\bm{\mu}^{\mathcal{B}}(\xi)\bigr),where the feature means are \bm{\mu}^{\rm in}(\xi)=\int\bm{\phi}_{F}\,dP^{\rm in}_{\xi} for the inliers, \bm{\mu}^{U}=\int\bm{\phi}_{F}\,dU for the image outliers and \bm{\mu}^{\mathcal{B}}(\xi)=\int\bm{\phi}_{F}\,dP^{\mathcal{B}}_{\xi} for the model outliers. The residual vanishes at \theta^{\star}.
Geometric assumptions. We fix \xi^{\star} before choosing the inlier model of m\geq 20 points. The model lies outside the exceptional set of Theorem 1 for N=m and outside the set on which the 2m\times 6 matrix of the derivatives of the projections \bm{p}_{j} at \xi^{\star} has rank less than six. Both sets have measure zero, the second by the paragraph on the rank condition in the proof of Theorem A2. The support of W_{F} lies strictly inside (-2,2)^{2}, which holds for the taper of Sec. B.1 when h_{F,r}+\delta_{F}<2 for r=1,2. The true projections \bm{z}_{j}^{\star}=\bm{p}_{j}(\xi^{\star}) are distinct, the taper is positive at each of them, and none lies on a line where a factor W_{F,r} changes slope, so W_{F} is differentiable at each of them. Finally, the two outlier distributions differ after weighting by W_{F}:
W_{F}(U-P^{\mathcal{B}}_{\xi^{\star}})\neq 0.Here W_{F}\mu denotes a measure \mu weighted by the function W_{F}. This condition makes the outlier fraction identifiable. Without it, the residual at the true pose stays zero when the fraction changes.
Finitely many outliers. The observations are n points with box coordinates \bm{z}_{1},\ldots,\bm{z}_{n}, and the model has N points. For the analysis, we number the points so that observation i\leq m images the inlier model point \bm{y}_{i}, possibly with noise. The other n_{\rm out}=n-m observations are image outliers drawn uniformly on D_{\rm F}, and the other N_{\rm out}=N-m model points are model outliers drawn uniformly in \mathcal{B}. All outliers are independent of each other and of the inlier observations, which we hold fixed. Either number of outliers may be zero. The outlier fractions are \eta_{U}=n_{\rm out}/n and \eta_{Y}=N_{\rm out}/N, and we set \eta^{\star}=\eta_{U}. With the midpoint quadratures \bm{\mu}_{\mathcal{U},0} of \bm{\mu}^{U} and \bm{\mu}_{\mathcal{Y},0}(\xi) of \bm{\mu}^{\mathcal{B}}(\xi) from Sec. B.1, the empirical residual is the vector of Eq. 2,
\widehat{\bm{r}}_{K_{F}}(\theta)=\bm{\mu}_{\mathcal{U},F}-\bm{\mu}_{\mathcal{Y},F}(\xi)-\eta\bigl(\bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}(\xi)\bigr),so that \lVert\widehat{\bm{r}}_{K_{F}}(\theta)\rVert^{2}=\mathcal{L}_{F}(\xi,\eta).
Error terms. The projection p_{\xi}(\bm{y}) is smooth in (\xi,\bm{y}) near the compact set \mathcal{E}\times\mathcal{B}, and \bm{\phi}_{F} is Lipschitz, so there is a finite L_{\xi}\geq 0 such that every \bm{y}\in\mathcal{B} and all poses \xi,\xi^{\prime}\in\mathcal{E} satisfy
\|\bm{\phi}_{F}(p_{\xi}(\bm{y}))-\bm{\phi}_{F}(p_{\xi^{\prime}}(\bm{y}))\|\leq L_{\xi}\,d_{\mathcal{Y}}(\xi,\xi^{\prime}).We fix \epsilon_{\rm net}>0 and N_{\rm net} poses of \mathcal{E} such that every pose of \mathcal{E} lies within d_{\mathcal{Y}}-distance \epsilon_{\rm net} of one of them. For 0<\delta<1, we put
\displaystyle\Delta_{U} \\ \displaystyle=2\sqrt{\frac{\log(4n_{\phi}/\delta)}{n_{\rm out}}}, \\ \displaystyle\Delta_{Y} \\ \displaystyle=2\sqrt{\frac{\log(4n_{\phi}N_{\rm net}/\delta)}{N_{\rm out}}}+2L_{\xi}\epsilon_{\rm net}, \\ \displaystyle\Delta_{\delta} \\ \displaystyle=\eta_{U}\Delta_{U}+\eta_{Y}\Delta_{Y}+2|\eta_{U}-\eta_{Y}| \\ \displaystyle+\eta_{\max}(q_{U}+q_{Y})+\epsilon_{\rm im},where \eta_{\max}=\max\mathcal{I}. When n_{\rm out}=0, we set \eta_{U}\Delta_{U}=0, and likewise \eta_{Y}\Delta_{Y}=0 when N_{\rm out}=0. The quadrature errors satisfy \lVert\bm{\mu}_{\mathcal{U},0}-\bm{\mu}^{U}\rVert\leq q_{U} and \lVert\bm{\mu}_{\mathcal{Y},0}(\xi)-\bm{\mu}^{\mathcal{B}}(\xi)\rVert\leq q_{Y} for every \xi\in\mathcal{E}. The image noise of the inliers enters through \epsilon_{\rm im}\geq\lVert n^{-1}\sum_{i=1}^{m}(\bm{\phi}_{F}(\bm{z}_{i})-\bm{\phi}_{F}(\bm{z}_{i}^{\star}))\rVert.
Fix \xi^{\star} and m\geq 20, and let the inlier model lie outside the null set of the geometric assumptions. Assume the remaining geometric assumptions and the sampling model above, with \eta_{U}\in\mathcal{I}. There is a cutoff K_{0} such that every cutoff K_{F}\geq K_{0} admits a constant \gamma_{K_{F}}>0 with the following property. The constant depends on the inlier model, \xi^{\star}, \eta_{U}, \mathcal{E}, \mathcal{I}, D_{\rm F}, \mathcal{B}, the taper, the weights and K_{F}, and not on the outlier positions, the noise or \delta. For every \delta\in(0,1) and every net fixed before the draws, with probability at least 1-\delta over the outlier positions, every \theta=(\xi,\eta)\in\mathcal{E}\times\mathcal{I} satisfies
d(\theta,\theta^{\star})\leq\frac{\sqrt{\mathcal{L}_{F}(\xi,\eta)}+\Delta_{\delta}}{\gamma_{K_{F}}},\qquad\theta^{\star}=(\xi^{\star},\eta_{U}).Here \mathcal{L}_{F} uses the cutoff K_{F}, and \eta_{U} is the fraction of image outliers.
Theorem A2 provides K_{0} and \gamma_{K_{F}} for the population residual, and Theorem A3 gives the bound with probability at least 1-\delta. The constant C_{F} of the main text is 1/\gamma_{K_{F}}, its distance \operatorname{dist} is d(\theta,\theta^{\star}), with translations in units of \ell_{\mathcal{Y}}, its error term is \Delta_{\delta} of Eq. A27, and its compact set \Theta lies in such a product \mathcal{E}\times\mathcal{I} of compact sets of poses and fractions. Only \Delta_{U} and \Delta_{Y} depend on \delta. The minimizer bound of the main text is the case \epsilon_{\rm fit}=0 of Theorem A3.
Theorem A2 (Finite Fourier identification).
Under the geometric assumptions, let \eta^{\star}\in\mathcal{I}. There is a finite cutoff K_{0} such that every cutoff K_{F}\geq K_{0} admits a constant \gamma_{K_{F}}>0 satisfying
\|\bm{r}_{K_{F}}(\theta)\|\geq\gamma_{K_{F}}\,d(\theta,\theta^{\star}),\qquad\theta\in\mathcal{E}\times\mathcal{I}.Consequently, \theta^{\star} is the unique zero of \bm{r}_{K_{F}} on \mathcal{E}\times\mathcal{I}. Both K_{0} and \gamma_{K_{F}} may depend on all fixed data, including \eta^{\star}.
The proof first identifies the parameter from all Fourier coefficients and then shows that finitely many suffice, both near the truth and away from it.
Fourier coefficients. The square (-2,2)^{2} is a fundamental cell of the torus \mathbb{T}=\mathbb{R}^{2}/4\mathbb{Z}^{2}, so we view measures supported inside it as measures on \mathbb{T}. The characters of \mathbb{T} are \chi_{\bm{k}}(\bm{z})=\exp(\mathrm{i}\bm{k}^{\top}\bm{z}) for \bm{k}\in\frac{\pi}{2}\mathbb{Z}^{2}, and a finite signed measure \nu has the coefficients \hat{\nu}(\bm{k})=\int\chi_{\bm{k}}\,d\nu. For \theta\in\mathcal{E}\times\mathcal{I}, we define the signed measure
\nu_{\theta}=W_{F}\big[(1-\eta^{\star})P^{\rm in}_{\xi}+(\eta^{\star}-\eta)P^{\mathcal{B}}_{\xi}+\eta U\big],which is supported in the support of W_{F}, and \nu_{\theta^{\star}}=W_{F}P^{\rm obs}. By Eq. A25, \bm{r}_{K_{F}}(\theta) is the integral of \bm{\phi}_{F} against P^{\rm obs} minus its integral against (1-\eta^{\star})P^{\rm in}_{\xi}+(\eta^{\star}-\eta)P^{\mathcal{B}}_{\xi}+\eta U. For every measure \mu, the integral \int\bm{\phi}_{F}\,d\mu lists the real and imaginary parts of \widehat{W_{F}\mu}(\bm{k}) for \bm{k}\in\mathrm{F}(K_{F}), each multiplied by a_{\bm{k}}/B_{K_{F}}. Hence \bm{r}_{K_{F}}(\theta) lists the scaled real and imaginary parts of \widehat{W_{F}P^{\rm obs}}(\bm{k})-\hat{\nu}_{\theta}(\bm{k}). Real measures satisfy \hat{\nu}(-\bm{k})=\overline{\hat{\nu}(\bm{k})}, so \bm{r}_{K_{F}}(\theta)=0 for every cutoff exactly when \hat{\nu}_{\theta}(\bm{k})=\widehat{W_{F}P^{\rm obs}}(\bm{k}) for every nonzero \bm{k}.
Identification from all coefficients. Suppose that these coefficients agree. A finite signed measure on \mathbb{T} whose coefficients vanish at every nonzero frequency is a constant multiple of the uniform measure [38]. The difference \nu_{\theta}-W_{F}P^{\rm obs} vanishes on the complement of the support of W_{F}, a nonempty open subset of \mathbb{T}, so the multiple is zero and \nu_{\theta}=W_{F}P^{\rm obs}. The measures U and P^{\mathcal{B}}_{\xi} have densities. For P^{\mathcal{B}}_{\xi}, the change of camera coordinates (u_{1},u_{2},x_{3})\mapsto(x_{3}u_{1},x_{3}u_{2},x_{3}) has volume element x_{3}^{2}\,du_{1}\,du_{2}\,dx_{3}, integration over positive depth gives a density of the calibrated projection, and the invertible box normalization preserves it. The atomic parts of the two sides therefore coincide. After division by (1-\eta^{\star})/m>0, the atomic part on the left puts mass W_{F}(\bm{p}_{j}(\xi)) at each \bm{p}_{j}(\xi), with the masses of coinciding points added. The atomic part on the right puts mass W_{F}(\bm{z}_{j}^{\star})>0 at each of the m distinct points \bm{z}_{j}^{\star}. The left side has at most m points of positive mass, so the \bm{p}_{j}(\xi) are distinct, each lies where W_{F} is positive, and they are the points \bm{z}_{j}^{\star}. Thus P^{\rm in}_{\xi}=P^{\rm in}_{\xi^{\star}}, so the inlier projections agree as multisets in calibrated coordinates as well. Theorem 1, applied to the m inlier points, which have positive depth under \xi and \xi^{\star}, gives \xi=\xi^{\star}. Then \nu_{\theta}-W_{F}P^{\rm obs}=(\eta^{\star}-\eta)W_{F}(P^{\mathcal{B}}_{\xi^{\star}}-U), and Eq. A26 gives \eta=\eta^{\star}. Every point with positive mass lies in the same fundamental cell, so no point is confused with a translate by a period.
Derivative at the truth. We use local pose coordinates (\bm{\omega},\bm{\tau})\in\mathbb{R}^{6} for the poses obtained from \xi^{\star} by the camera motion \bm{x}\mapsto\exp([\bm{\omega}]_{\times})\bm{x}+\bm{\tau}, and write a direction as \dot{\theta}=(\dot{\xi},\dot{\eta})\in\mathbb{R}^{6}\times\mathbb{R}. Let \partial\bm{p}_{j}\in\mathbb{R}^{2\times 6} be the derivative of \bm{p}_{j} at \xi^{\star} in these coordinates. For a smooth function f on \mathbb{T}, let F_{f}(\theta)=\int f\,d\nu_{\theta}. Its atomic term is differentiable at \theta^{\star} because W_{F} is differentiable at each \bm{z}_{j}^{\star}, and its uniform term is linear in \eta. Its box term (\eta^{\star}-\eta)\int W_{F}f\,dP^{\mathcal{B}}_{\xi} is the product of a factor that vanishes at \theta^{\star} and a function of \xi that is continuous by dominated convergence, because W_{F}f is bounded and continuous and depths stay positive on \mathcal{E}. This term is therefore differentiable at \theta^{\star} with derivative -\dot{\eta}\int W_{F}f\,dP^{\mathcal{B}}_{\xi^{\star}}, without differentiating the box integral. With \nu^{\rm out}=W_{F}(U-P^{\mathcal{B}}_{\xi^{\star}}), the derivative of F_{f} at \theta^{\star} in the direction \dot{\theta} is
\displaystyle\Upsilon_{\dot{\theta}}(f)={} \\ \displaystyle\frac{1-\eta^{\star}}{m}\sum_{j=1}^{m}\nabla(W_{F}f)(\bm{z}_{j}^{\star})^{\top}\partial\bm{p}_{j}\,\dot{\xi} \\ \displaystyle+\dot{\eta}\int f\,d\nu^{\rm out}.The same argument shows that \bm{r}_{K_{F}} is differentiable at \theta^{\star}. Its derivative in the direction \dot{\theta} lists, with the opposite sign and the factors a_{\bm{k}}/B_{K_{F}}, the real and imaginary parts of \Upsilon_{\dot{\theta}}(\chi_{\bm{k}}) for \bm{k}\in\mathrm{F}(K_{F}).
Injectivity. Suppose that \Upsilon_{\dot{\theta}}(\chi_{\bm{k}})=0 for every nonzero \bm{k}. Linearity then gives \Upsilon_{\dot{\theta}}(f)=\Upsilon_{\dot{\theta}}(1)\langle f\rangle for every trigonometric polynomial f, where \langle f\rangle=\frac{1}{16}\int_{(-2,2)^{2}}f(\bm{z})\,d\bm{z} is the mean over a period. To remove the atomic terms, we use a trigonometric polynomial that vanishes together with its gradient at every true projection. On \mathbb{T}, let
\displaystyle b_{j}(\bm{z}) \\ \displaystyle=2-\cos\!\left(\tfrac{\pi}{2}(z_{1}-z_{j1}^{\star})\right)-\cos\!\left(\tfrac{\pi}{2}(z_{2}-z_{j2}^{\star})\right), \\ \displaystyle f_{0}(\bm{z}) \\ \displaystyle=\prod_{j=1}^{m}b_{j}(\bm{z})^{2}.Each b_{j} is nonnegative and vanishes on \mathbb{T} exactly at \bm{z}_{j}^{\star}, so f_{0} is nonnegative and vanishes, together with its gradient, exactly at the true projections. For every trigonometric polynomial f, the product f_{0}f also vanishes with its gradient there, so the atomic terms of \Upsilon_{\dot{\theta}}(f_{0}f) vanish. Hence \dot{\eta}\int f_{0}f\,d\nu^{\rm out}=\Upsilon_{\dot{\theta}}(1)\langle f_{0}f\rangle for every trigonometric polynomial f. The finite signed measures \dot{\eta}f_{0}\nu^{\rm out} and \frac{1}{16}\Upsilon_{\dot{\theta}}(1)f_{0}\,d\bm{z} therefore have the same coefficients and are equal [38]. Outside the support of W_{F}, the measure \nu^{\rm out} vanishes and f_{0} is positive, so \Upsilon_{\dot{\theta}}(1)=0. Hence \dot{\eta}f_{0}\nu^{\rm out}=0. The measure \nu^{\rm out} has a density, which is nonzero on a set of positive measure by Eq. A26, and f_{0} vanishes only at finitely many points. The density of f_{0}\nu^{\rm out} is therefore nonzero on a set of positive measure, and \dot{\eta}=0.
It remains to show that \dot{\xi}=0. We now have \Upsilon_{\dot{\theta}}(f)=0 for every trigonometric polynomial f, and only the atomic terms remain. For a point index i and a coordinate a\in\{1,2\}, let
f_{i,a}(\bm{z})=\sin\!\left(\tfrac{\pi}{2}(z_{a}-z_{ia}^{\star})\right)\prod_{j\neq i}b_{j}(\bm{z})^{2}.This function vanishes at every true projection, its gradient vanishes at \bm{z}_{j}^{\star} for j\neq i, and its gradient at \bm{z}_{i}^{\star} is \frac{\pi}{2}\prod_{j\neq i}b_{j}(\bm{z}_{i}^{\star})^{2} times the ath coordinate vector. This factor is positive because the true projections are distinct points of the cell. Hence \Upsilon_{\dot{\theta}}(f_{i,a}) equals (1-\eta^{\star})W_{F}(\bm{z}_{i}^{\star})/m times this factor times (\partial\bm{p}_{i}\,\dot{\xi})_{a}, and all factors except the last are positive. Thus (\partial\bm{p}_{i}\,\dot{\xi})_{a}=0 for every i and a, and the stacked derivatives have rank six, which gives \dot{\xi}=0.
The complex linear functionals \dot{\theta}\mapsto\Upsilon_{\dot{\theta}}(\chi_{\bm{k}}) on \mathbb{R}^{7}, for nonzero \bm{k}, therefore have no common nonzero kernel vector. Their kernels are subspaces of \mathbb{R}^{7} with zero intersection, so finitely many of them already intersect in zero. Let K_{1} be a cutoff for which \mathrm{F}(K_{1}) contains each of these frequencies or its negative. The derivative of \bm{r}_{K_{1}} at \theta^{\star} is then injective, with least singular value \sigma_{1}>0 in the coordinates (\bm{\omega},\bm{\tau},\eta).
Rank condition. The rank condition on the projections is generic. At the identity camera, with \bm{u}=\bm{x}_{1:2}/x_{3} for a camera point \bm{x}, the derivatives with respect to (\bm{\omega},\bm{\tau}) are
\displaystyle\partial u_{1} \\ \displaystyle=(-u_{1}u_{2},1+u_{1}^{2},-u_{2},x_{3}^{-1},0,-u_{1}/x_{3}), \\ \displaystyle\partial u_{2} \\ \displaystyle=(-(1+u_{2}^{2}),u_{1}u_{2},u_{1},0,x_{3}^{-1},-u_{2}/x_{3}).For the camera points (0,0,1), (2,0,2) and (0,3,3), the six rows form a matrix with determinant 29/36. The 6\times 6 minor formed by the rows of three points is a rational function of their coordinates whose denominator is a power of their positive depths. Its numerator is a nonzero polynomial, so it vanishes only on a set of measure zero in \mathbb{R}^{9}. Rank less than six forces this minor to vanish, so the configurations of m\geq 3 points with rank less than six form a null set. Expressing the points in the camera coordinates of \xi^{\star} is an invertible affine change of the model coordinates, and the box normalization multiplies each \partial\bm{p}_{j} by the same invertible matrix. The exceptional set of inlier models is therefore null as well.
Local bound. Differentiability at \theta^{\star} gives \|\bm{r}_{K_{1}}(\theta)\|\geq\frac{1}{2}\sigma_{1}|\dot{\theta}| for every \theta in a neighborhood of \theta^{\star} with coordinates \dot{\theta}. The chart is smooth, so d(\theta,\theta^{\star})\leq c_{1}|\dot{\theta}| near \theta^{\star} for a constant c_{1}. There is therefore an open neighborhood \mathcal{O}_{1} of \theta^{\star} in \mathcal{E}\times\mathcal{I} on which \|\bm{r}_{K_{1}}(\theta)\|\geq\gamma_{1}d(\theta,\theta^{\star}) with \gamma_{1}=\sigma_{1}/(2c_{1}).
Away from the truth. The set \mathcal{O}_{1}^{\rm c}=(\mathcal{E}\times\mathcal{I})\setminus\mathcal{O}_{1} is compact. For each \theta\in\mathcal{O}_{1}^{\rm c}, the identification step gives a nonzero frequency \bm{k}_{\theta} with \hat{\nu}_{\theta}(\bm{k}_{\theta})\neq\widehat{W_{F}P^{\rm obs}}(\bm{k}_{\theta}). The coefficient \hat{\nu}_{\theta}(\bm{k}) is continuous in \theta, the atomic part because W_{F}\chi_{\bm{k}} is continuous and the box part by dominated convergence. The inequality therefore holds on an open neighborhood of \theta, and finitely many of these neighborhoods cover \mathcal{O}_{1}^{\rm c}. Let K_{0}\geq K_{1} be a cutoff for which \mathrm{F}(K_{0}) contains each of the selected frequencies or its negative.
Every cutoff K_{F}\geq K_{0}. The sets satisfy \mathrm{F}(K_{1})\subset\mathrm{F}(K_{F}), and only the normalizing constant changes, so the coordinates of \bm{r}_{K_{F}} include those of \bm{r}_{K_{1}} multiplied by B_{K_{1}}/B_{K_{F}}>0. Hence \|\bm{r}_{K_{F}}(\theta)\|\geq(B_{K_{1}}/B_{K_{F}})\gamma_{1}d(\theta,\theta^{\star}) on \mathcal{O}_{1}. If \mathcal{O}_{1}^{\rm c} is empty, this bound proves Eq. A28. Otherwise, \bm{r}_{K_{F}} is continuous on \mathcal{O}_{1}^{\rm c}, and it is nonzero there because \mathrm{F}(K_{F}) contains each selected frequency or its negative, so its norm has a positive minimum \underline{r}_{K_{F}} there. With d_{\max}>0 the largest value of d(\theta,\theta^{\star}) on \mathcal{E}\times\mathcal{I}, every \theta\in\mathcal{O}_{1}^{\rm c} satisfies \|\bm{r}_{K_{F}}(\theta)\|\geq(\underline{r}_{K_{F}}/d_{\max})\,d(\theta,\theta^{\star}). Taking \gamma_{K_{F}} as the smaller of the two constants proves Eq. A28. Because d is a metric, \bm{r}_{K_{F}}(\theta)=0 forces \theta=\theta^{\star}. ∎
Theorem A3 (Finite-sample Fourier pose bound).
Assume the setting above with \eta^{\star}=\eta_{U}\in\mathcal{I}, and let K_{F}\geq K_{0} and \gamma_{K_{F}} be as in Theorem A2. Fix \epsilon_{\rm net}>0, a net of N_{\rm net} poses as above, and \delta\in(0,1). With probability at least 1-\delta over the outlier draws, the empirical residual satisfies, simultaneously for every \theta\in\mathcal{E}\times\mathcal{I},
d(\theta,\theta^{\star})\leq\frac{\|\widehat{\bm{r}}_{K_{F}}(\theta)\|+\Delta_{\delta}}{\gamma_{K_{F}}}.On the same event, every parameter \hat{\theta} whose residual norm exceeds the infimum over \mathcal{E}\times\mathcal{I} by at most \epsilon_{\rm fit}\geq 0 satisfies d(\hat{\theta},\theta^{\star})\leq(2\Delta_{\delta}+\epsilon_{\rm fit})/\gamma_{K_{F}}.
Each real coordinate of \bm{\phi}_{F} belongs to one frequency \bm{k} and lies in [-a_{\bm{k}}/B_{K_{F}},a_{\bm{k}}/B_{K_{F}}], because the taper is at most one. Each frequency contributes a cosine and a sine with the same amplitude, so the squared amplitudes of all coordinates sum to 2. Let X_{1},\ldots,X_{n_{\rm s}} be the values of one coordinate, with amplitude a_{\bm{k}}/B_{K_{F}}, at n_{\rm s} independent outliers, and let \bar{X} be their mean. For \alpha>0, Hoeffding’s inequality [33] gives
\Pr\bigl\{|\bar{X}-\mathbb{E}X_{1}|>\alpha\,a_{\bm{k}}/B_{K_{F}}\bigr\}\leq 2e^{-n_{\rm s}\alpha^{2}/2}.When every coordinate satisfies the opposite inequality, the squared norm of the vector error is at most 2\alpha^{2}. Let \widehat{\bm{\mu}}^{U} be the average of \bm{\phi}_{F} over the image outliers and \widehat{\bm{\mu}}^{\mathcal{B}}(\xi) the average of \bm{\phi}_{F}\circ p_{\xi} over the model outliers. A union bound over the n_{\phi} coordinates, with 2n_{\phi}e^{-n_{\rm out}\alpha^{2}/2}=\delta/2, gives \lVert\widehat{\bm{\mu}}^{U}-\bm{\mu}^{U}\rVert\leq\sqrt{2}\,\alpha=\Delta_{U} with probability at least 1-\delta/2. A union bound over the n_{\phi} coordinates and the N_{\rm net} net poses gives \lVert\widehat{\bm{\mu}}^{\mathcal{B}}(\xi^{\prime})-\bm{\mu}^{\mathcal{B}}(\xi^{\prime})\rVert\leq\Delta_{Y}-2L_{\xi}\epsilon_{\rm net} at every net pose \xi^{\prime} with probability at least 1-\delta/2. The same model-outlier sample is used at every pose, and the union bound needs no independence between coordinates or between net poses. Both \widehat{\bm{\mu}}^{\mathcal{B}} and \bm{\mu}^{\mathcal{B}} are L_{\xi}-Lipschitz in the pose, so moving from the nearest net pose to any \xi\in\mathcal{E} adds at most 2L_{\xi}\epsilon_{\rm net}. Both events hold with probability at least 1-\delta. An event is not needed when the corresponding number of outliers is zero.
On these events, we compare \widehat{\bm{r}}_{K_{F}} with \bm{r}_{K_{F}} at \eta^{\star}=\eta_{U}. We split the feature average over the observations into the contributions of the inliers and the image outliers, and the feature average over the model points into those of the inliers and the model outliers. Because 1-\eta_{U}=m/n and 1-\eta_{Y}=m/N, this gives
\displaystyle\widehat{\bm{r}}_{K_{F}} \\ \displaystyle(\theta)-\bm{r}_{K_{F}}(\theta)=\frac{1}{n}\sum_{i=1}^{m}\bigl(\bm{\phi}_{F}(\bm{z}_{i})-\bm{\phi}_{F}(\bm{z}_{i}^{\star})\bigr) \\ \displaystyle+\eta_{U}\bigl(\widehat{\bm{\mu}}^{U}-\bm{\mu}^{U}\bigr)-\eta_{Y}\bigl(\widehat{\bm{\mu}}^{\mathcal{B}}(\xi)-\bm{\mu}^{\mathcal{B}}(\xi)\bigr) \\ \displaystyle+(\eta_{Y}-\eta_{U})\bigl(\bm{\mu}^{\rm in}(\xi)-\bm{\mu}^{\mathcal{B}}(\xi)\bigr) \\ \displaystyle-\eta\bigl[(\bm{\mu}_{\mathcal{U},0}-\bm{\mu}^{U})-(\bm{\mu}_{\mathcal{Y},0}(\xi)-\bm{\mu}^{\mathcal{B}}(\xi))\bigr].The five terms have norms at most \epsilon_{\rm im}, \eta_{U}\Delta_{U}, \eta_{Y}\Delta_{Y}, 2|\eta_{Y}-\eta_{U}| and \eta_{\max}(q_{U}+q_{Y}), where the fourth bound uses \lVert\bm{\phi}_{F}\rVert\leq 1. The triangle inequality therefore gives
\sup_{\theta\in\mathcal{E}\times\mathcal{I}}\|\widehat{\bm{r}}_{K_{F}}(\theta)-\bm{r}_{K_{F}}(\theta)\|\leq\Delta_{\delta}.Eq. A28 and this inequality give \gamma_{K_{F}}d(\theta,\theta^{\star})\leq\|\bm{r}_{K_{F}}(\theta)\|\leq\|\widehat{\bm{r}}_{K_{F}}(\theta)\|+\Delta_{\delta}, which is Eq. A30. Because \bm{r}_{K_{F}}(\theta^{\star})=0, the empirical residual at \theta^{\star} has norm at most \Delta_{\delta}. A parameter \hat{\theta} as in the theorem therefore has residual norm at most \Delta_{\delta}+\epsilon_{\rm fit}, and Eq. A30 at \hat{\theta} gives the final bound. ∎
Finite quadrature bounds. We bound q_{U}, q_{Y} and \epsilon_{\rm im} for the midpoint rules used by the method. With \beta_{\bm{k}}=a_{\bm{k}}/B_{K_{F}}, the feature map \bm{\phi}_{F} is Lipschitz in box coordinates with constant
L_{\phi}\leq\frac{2\sqrt{2}}{\tau_{F}}+\Bigl(\sum_{\bm{k}}\beta_{\bm{k}}^{2}\|\bm{k}\|^{2}\Bigr)^{1/2}.Each factor W_{F,r} is a product of two functions with values in [0,1] and Lipschitz constant 1/\tau_{F}, so the gradient of W_{F} has norm at most 2\sqrt{2}/\tau_{F}. The untapered feature vector has norm one, and the inequality |e^{\mathrm{i}\vartheta}-e^{\mathrm{i}\vartheta^{\prime}}|\leq|\vartheta-\vartheta^{\prime}| for real \vartheta and \vartheta^{\prime} bounds its Lipschitz constant by the second term. Let L_{\rm proj} bound the norm of the derivative of \bm{y}\mapsto p_{\xi}(\bm{y}) on \mathcal{E}\times\mathcal{B}, which is finite by compactness and positive depths. For an image rectangle with side lengths w_{U,r} in box coordinates and J_{U,r} midpoint cells along axis r, and a model box with side lengths w_{Y,r} and J_{Y,r} cells, the bounds are
\displaystyle q_{U} \\ \displaystyle\leq\frac{L_{\phi}}{2}\Bigl(\sum_{r=1}^{2}(w_{U,r}/J_{U,r})^{2}\Bigr)^{1/2}, \\ \displaystyle q_{Y} \\ \displaystyle\leq\frac{L_{\phi}L_{\rm proj}}{2}\Bigl(\sum_{r=1}^{3}(w_{Y,r}/J_{Y,r})^{2}\Bigr)^{1/2}.Every point of a cell lies within half the cell diagonal of its midpoint, and the box is convex, so the integrand differs from its midpoint value by at most L_{\phi}, or L_{\phi}L_{\rm proj}, times that distance. Averaging over each cell and summing proves these bounds. Likewise, \epsilon_{\rm im}\leq L_{\phi}n^{-1}\sum_{i=1}^{m}\|\bm{z}_{i}-\bm{z}_{i}^{\star}\|.
Relation to the fitted fraction. The method sets the fraction at each pose to the least-squares value \hat{\eta}(\xi) of Step 2 in App. B, clipped to [0,0.75]. The theorems cover this choice with \mathcal{I}=[0,0.75] and \eta_{\max}=0.75 whenever \eta_{U}\leq 0.75, because their bounds hold for every \theta\in\mathcal{E}\times\mathcal{I}. At the population level, Eq. A25 reads \bm{r}_{K_{F}}(\xi,\eta)=\bm{r}_{K_{F}}(\xi,\eta^{\star})+(\eta^{\star}-\eta)\bm{\mu}^{\rm out}(\xi). Here \bm{\mu}^{\rm out}(\xi)=\bm{\mu}^{U}-\bm{\mu}^{\mathcal{B}}(\xi) is the population value of the difference \bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}(\xi) used by the method. For K_{F}\geq K_{0}, the vector \bm{\mu}^{\rm out}(\xi^{\star}) is nonzero, because -\bm{\mu}^{\rm out}(\xi^{\star}) is the derivative of \bm{r}_{K_{F}} with respect to \eta at \theta^{\star}, a column of an injective derivative. Where \bm{\mu}^{\rm out}(\xi)\neq 0, the population version of \hat{\eta}(\xi) is \eta^{\rm pr}(\xi)=\eta^{\star}+\langle\bm{r}_{K_{F}}(\xi,\eta^{\star}),\bm{\mu}^{\rm out}(\xi)\rangle/\lVert\bm{\mu}^{\rm out}(\xi)\rVert^{2}. The profiled residual is \bm{r}^{\rm pr}(\xi)=\bm{r}_{K_{F}}(\xi,\eta^{\rm pr}(\xi))=\Pi^{\perp}_{\bm{\mu}^{\rm out}(\xi)}\bm{r}_{K_{F}}(\xi,\eta^{\star}), where \Pi^{\perp} with a vector as subscript denotes the orthogonal projection onto the orthogonal complement of that vector. If 0<\eta^{\star}<0.75, the continuity of \eta^{\rm pr} at \xi^{\star}, where it equals \eta^{\star}, makes the clipping inactive near \xi^{\star}. Because \bm{r}_{K_{F}}(\cdot,\eta^{\star}) vanishes and is differentiable at \xi^{\star}, and \bm{\mu}^{\rm out} is continuous there, the profiled residual has the derivative
-(1-\eta^{\star})\Pi^{\perp}_{\bm{\mu}^{\rm out}(\xi^{\star})}\,\partial\bm{\mu}^{\rm in}(\xi^{\star})at \xi^{\star}. This derivative has rank six. Indeed, a direction \dot{\xi} in its kernel makes \partial\bm{\mu}^{\rm in}(\xi^{\star})\dot{\xi} a multiple of \bm{\mu}^{\rm out}(\xi^{\star}), and the injective derivative of \bm{r}_{K_{F}} then gives \dot{\xi}=0. Pose changes therefore remain distinguishable after the fraction is fitted, and the squared norm of the profiled residual grows at least quadratically in the pose error near \xi^{\star}. If, in addition, \bm{r}^{\rm pr} is continuously differentiable with a Lipschitz derivative near \xi^{\star}, the local convergence theory of Gauss–Newton for zero-residual problems with an injective derivative applies [57]. Theorem A3 bounds the error of every returned parameter by its residual, so it does not require the search to attain the global minimum.
Scope. The theorems hold for each fixed set of weights, that is, for each fixed spectral width \zeta_{F}. The schedule of the method pairs each cutoff with its own spectral width (Tab. A3), so the theorems apply to each stage of the schedule separately. The error terms of Eq. A27 account for finite samples and the grid approximation.
A.7 Ambiguous poses
Step 4 refines seven alternatives to the accepted pose, obtained by half-turns about the principal axes of the model points and about the optical axis (Sec. 4.2). This section shows why these are the poses to test. Under scaled orthography, the accepted pose and its seven alternatives give images with the same mean and covariance for every model (Lemma A8(a)). An alternative gives the same scaled-orthographic image as the accepted pose when the model has the corresponding symmetry (part (b)). For a planar model, the alternative that mirrors the depths about the centroid does so (part (c)). A final bound shows that, under perspective projection, mirroring the depths moves each image point by at most an amount that grows with the depth variation of the model, so the two images stay close for shallow models.
Setting. We use calibrated image coordinates, with K=I_{3}, and state the results for a 3D model \mathcal{Y}. Step 4 applies them to all model points on complete inputs and to the model points matched at the accepted pose when outliers may be present. Let \bar{\bm{y}} and \Sigma_{\mathcal{Y}} be the centroid and covariance of the model points, and let \bm{e}_{1},\bm{e}_{2},\bm{e}_{3} be an orthonormal basis of eigenvectors of \Sigma_{\mathcal{Y}}, the principal axes. The half-turn about the kth principal axis is H_{k}=2\bm{e}_{k}\bm{e}_{k}^{\top}-I_{3} for k=1,2,3, and H_{0}=I_{3}. The half-turn about the optical axis is D=\operatorname{diag}(-1,-1,1), and -D=\operatorname{diag}(1,1,-1) reverses depth. A pose (R,\bm{t}) maps \bm{y}_{j} to \bm{x}_{j}=R\bm{y}_{j}+\bm{t} in camera coordinates and the centroid to \bar{\bm{x}}=R\bar{\bm{y}}+\bm{t}, with positive depth \bar{x}_{3}. The scaled-orthographic image of \bm{x}_{j} is (x_{j1},x_{j2})/\bar{x}_{3}, and its pinhole image is \operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j})=(x_{j1},x_{j2})/x_{j3} when x_{j3}>0. The eight poses of Step 4 are the accepted pose and its seven alternatives. For k=0,\dots,3, they are
\begin{gathered}R_{k}^{+}=RH_{k},\quad R_{k}^{-}=DRH_{k},\\
\bm{t}_{k}^{\pm}=\bar{\bm{x}}-R_{k}^{\pm}\bar{\bm{y}},\end{gathered}where each translation keeps the centroid at \bar{\bm{x}}. They combine the four choices of H_{k} with the presence or absence of D.
Lemma A8 (Second-order ambiguous poses and model symmetries).
(a) Each R_{k}^{\pm} is a rotation, each of the eight poses maps the centroid to \bar{\bm{x}}, and the scaled-orthographic images of the eight poses have the same mean and the same covariance.
(b) Suppose that the eigenvalues of \Sigma_{\mathcal{Y}} are distinct. Then every orthogonal matrix Q_{\rm s} that maps the centered model to itself, as a multiset, is one of \pm H_{k}. If H_{k} is such a symmetry, the pose (R_{k}^{+},\bm{t}_{k}^{+}) gives the same multiset of points in camera coordinates as (R,\bm{t}), and hence the same image. If -H_{k} is such a symmetry, the pose (R_{k}^{-},\bm{t}_{k}^{-}) gives the multiset \{\bar{\bm{x}}-D(\bm{x}_{j}-\bar{\bm{x}})\}. These are the points produced by (R,\bm{t}) with their depths mirrored about \bar{x}_{3}, so the scaled-orthographic image is the same.
(c) If the model lies in a plane, we number the principal axes so that \bm{e}_{3} is its unit normal. The reflection I_{3}-2\bm{e}_{3}\bm{e}_{3}^{\top}=-H_{3} in the plane then fixes every centered model point. The pose (R_{3}^{-},\bm{t}_{3}^{-}) maps each \bm{y}_{j} to \bar{\bm{x}}-D(\bm{x}_{j}-\bar{\bm{x}}) and hence gives the same scaled-orthographic image as (R,\bm{t}), whether or not the eigenvalues are distinct.
The translations keep the centroid fixed, so every part reduces to how H_{k} and D act on the centered points.
Part (a). Each H_{k} is either the identity or a symmetric orthogonal matrix with eigenvalues 1,-1,-1, so it is a rotation. The matrix D is also a rotation, and so is every product R_{k}^{\pm}. By the choice of \bm{t}_{k}^{\pm}, the pose (R_{k}^{\pm},\bm{t}_{k}^{\pm}) maps the model points to
\bar{\bm{x}}+R_{k}^{\pm}(\bm{y}_{j}-\bar{\bm{y}}),with centroid \bar{\bm{x}} and covariance R_{k}^{\pm}\Sigma_{\mathcal{Y}}(R_{k}^{\pm})^{\top}. A half-turn about a principal axis negates two principal coordinates and preserves their variances, because H_{k}\bm{e}_{i}=\pm\bm{e}_{i} and H_{k}\Sigma_{\mathcal{Y}}H_{k}=\Sigma_{\mathcal{Y}}. For R_{k}^{+}, the covariance is therefore R\Sigma_{\mathcal{Y}}R^{\top}, and for R_{k}^{-} it is DR\Sigma_{\mathcal{Y}}R^{\top}D. The scaled-orthographic image keeps the first two coordinates, divided by the common depth \bar{x}_{3}. The matrix D negates both, which leaves their covariance unchanged. The image covariance is therefore the upper-left 2\times 2 block of R\Sigma_{\mathcal{Y}}R^{\top}/\bar{x}_{3}^{2} in all eight cases, and the image mean is (\bar{x}_{1},\bar{x}_{2})/\bar{x}_{3}.
Part (b). The multiset \{Q_{\rm s}(\bm{y}_{j}-\bar{\bm{y}})\} has covariance Q_{\rm s}\Sigma_{\mathcal{Y}}Q_{\rm s}^{\top}, so a symmetry satisfies Q_{\rm s}\Sigma_{\mathcal{Y}}Q_{\rm s}^{\top}=\Sigma_{\mathcal{Y}} and commutes with \Sigma_{\mathcal{Y}}. A matrix that commutes with \Sigma_{\mathcal{Y}} maps each eigenspace of \Sigma_{\mathcal{Y}} to itself. Distinct eigenvalues make every eigenspace a line, so the orthogonal matrix Q_{\rm s} satisfies Q_{\rm s}\bm{e}_{i}=\pm\bm{e}_{i}. Thus Q_{\rm s} is diagonal in the principal-axis basis with entries \pm 1, which gives the eight matrices \pm H_{k}. If H_{k} is a symmetry, then by Eq. A32 the pose (R_{k}^{+},\bm{t}_{k}^{+}) gives the multiset
\{\bar{\bm{x}}+RH_{k}(\bm{y}_{j}-\bar{\bm{y}})\}=\{\bar{\bm{x}}+R(\bm{y}_{j}-\bar{\bm{y}})\}=\{\bm{x}_{j}\}.If -H_{k} is a symmetry, the pose (R_{k}^{-},\bm{t}_{k}^{-}) gives the multiset
\displaystyle\{\bar{\bm{x}}+DRH_{k}(\bm{y}_{j}-\bar{\bm{y}})\} \\ \displaystyle=\{\bar{\bm{x}}-DR(-H_{k})(\bm{y}_{j}-\bar{\bm{y}})\} \\ \displaystyle=\{\bar{\bm{x}}-DR(\bm{y}_{j}-\bar{\bm{y}})\}=\{\bar{\bm{x}}-D(\bm{x}_{j}-\bar{\bm{x}})\}.The matrix -D negates the third coordinate and keeps the first two, so the scaled-orthographic image is unchanged.
Part (c). The unit normal of the model plane is an eigenvector of \Sigma_{\mathcal{Y}} with eigenvalue zero, so we can choose it as \bm{e}_{3}. For a planar model, \bm{e}_{3}\cdot(\bm{y}_{j}-\bar{\bm{y}})=0 for every j. Hence (I_{3}-2\bm{e}_{3}\bm{e}_{3}^{\top})(\bm{y}_{j}-\bar{\bm{y}})=\bm{y}_{j}-\bar{\bm{y}}, and H_{3}(\bm{y}_{j}-\bar{\bm{y}})=-(\bm{y}_{j}-\bar{\bm{y}}). By Eq. A32, the pose (R_{3}^{-},\bm{t}_{3}^{-}) maps \bm{y}_{j} to \bar{\bm{x}}+DRH_{3}(\bm{y}_{j}-\bar{\bm{y}})=\bar{\bm{x}}-D(\bm{x}_{j}-\bar{\bm{x}}). As in part (b), the matrix -D leaves the scaled-orthographic image unchanged. ∎
Part (b) requires distinct eigenvalues of \Sigma_{\mathcal{Y}}. A model with repeated eigenvalues can have further symmetries, and parts (a) and (c) still hold.
Perspective projection. A pinhole camera divides by the depth of each point, so mirroring the depths can change the image. We bound this change when the depths of the model points vary little compared with the depth of their centroid. By parts (b) and (c), the alternative (R_{k}^{-},\bm{t}_{k}^{-}) maps the model points onto the multiset of the points \bm{x}^{\prime}_{j}=\bar{\bm{x}}-D(\bm{x}_{j}-\bar{\bm{x}}) when -H_{k} is a symmetry of the model, or when the model is planar and k=3. The point \bm{x}^{\prime}_{j} keeps the first two coordinates of \bm{x}_{j} and has depth 2\bar{x}_{3}-x_{j3}. Let \zeta=\max_{j}\lvert x_{j3}-\bar{x}_{3}\rvert be the largest deviation of a depth from that of the centroid, and assume \zeta<\bar{x}_{3}. Every \bm{x}^{\prime}_{j} then has positive depth, and the pinhole image of the alternative is the multiset of the points \operatorname{proj}_{\mathrm{cal}}(\bm{x}^{\prime}_{j}), which satisfy
\displaystyle\lVert\operatorname{proj}_{\mathrm{cal}}(\bm{x}^{\prime}_{j})-\operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j})\rVert \\ \displaystyle=\lVert\operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j})\rVert\frac{2\lvert x_{j3}-\bar{x}_{3}\rvert}{2\bar{x}_{3}-x_{j3}} \\ \displaystyle\leq\lVert\operatorname{proj}_{\mathrm{cal}}(\bm{x}_{j})\rVert\frac{2\zeta}{\bar{x}_{3}-\zeta}.If the accepted pose fits the observations and this displacement is small compared with the spacing of the observations in calibrated image units, the mirrored pose also places projections near the observations. A test of the accepted pose alone then cannot exclude it, so Step 4 refines both poses by EM and compares their likelihoods.
A.8 Matching under an accurate pose
At the selected pose, MomentPnP labels each observation with its nearest projection. We bound the probability that any of these labels is wrong when every projection is predicted within a tolerance \epsilon_{\rm pred}. The bound grows with the density of the projections and with the number of points, which makes precise the remark of Sec. 5 that each correspondence depends on the spacing between nearby projections. It tends to zero as Ns and N\epsilon_{\rm pred} tend to zero, and Sec. A.9 compares this with the noise that a joint search over the camera and the correspondences tolerates.
Setting. We consider complete inputs with n=N\geq 2 in which every model point lies at positive depth at the true pose \xi^{\star}. We number the observations so that the true correspondence is the identity. Then \bm{u}_{i}=\bm{p}_{i}+\bm{w}_{i} with \bm{p}_{i}=\bm{p}_{i}(\xi^{\star}). We assume that the projections \bm{p}_{i}\in\mathbb{R}^{2} are independent, each with a density bounded by f_{\max}, that they are jointly independent of the errors \bm{w}_{1},\dots,\bm{w}_{N}, and that \mathbb{E}\lVert\bm{w}_{i}\rVert^{2}=2s^{2}. The bound uses no other property of the projection, so it holds for any camera model. A prediction \hat{\bm{p}}_{j} of \bm{p}_{j} is any measurable function of the data. For an estimated pose (\hat{R},\hat{\bm{t}}) that places every model point at positive depth, the prediction is \hat{\bm{p}}_{j}=\operatorname{proj}(\hat{R}\bm{y}_{j}+\hat{\bm{t}}). The predictions have maximum error \hat{\delta}=\max_{j}\lVert\hat{\bm{p}}_{j}-\bm{p}_{j}\rVert. Nearest-projection matching assigns to observation i a label \hat{\sigma}(i) that minimizes \lVert\bm{u}_{i}-\hat{\bm{p}}_{j}\rVert over j, with ties resolved by a fixed measurable rule.
Lemma A9 (Matching error under an accurate pose).
Under the assumptions above, every fixed tolerance \epsilon_{\rm pred}\geq 0 on the prediction error satisfies
\displaystyle\Pr\bigl[\hat{\sigma}\neq\mathrm{id}\ \text{and}\ \hat{\delta}\leq\epsilon_{\rm pred}\bigr] \\ \displaystyle\leq 8\pi f_{\max}N(N-1)(2s^{2}+\epsilon_{\rm pred}^{2}).We show that an observation can receive a wrong label only if another projection lies close to its own. We then bound the probability of such a close pair by the density bound.
Step 1. A well-separated observation is labeled correctly. We put d_{i}=\min_{j\neq i}\lVert\bm{p}_{i}-\bm{p}_{j}\rVert, and let \Omega_{i}=\{d_{i}>2(\lVert\bm{w}_{i}\rVert+\epsilon_{\rm pred})\} be the event that observation i is well separated. On \Omega_{i}\cap\{\hat{\delta}\leq\epsilon_{\rm pred}\}, every j\neq i satisfies
\displaystyle\lVert\bm{u}_{i}-\hat{\bm{p}}_{j}\rVert \\ \displaystyle\geq\lVert\bm{p}_{i}-\bm{p}_{j}\rVert-\lVert\bm{w}_{i}\rVert-\lVert\hat{\bm{p}}_{j}-\bm{p}_{j}\rVert \\ \displaystyle\geq d_{i}-\lVert\bm{w}_{i}\rVert-\epsilon_{\rm pred} \\ \displaystyle>\lVert\bm{w}_{i}\rVert+\epsilon_{\rm pred}\geq\lVert\bm{u}_{i}-\hat{\bm{p}}_{i}\rVert.The first line is the triangle inequality, and the last uses \bm{u}_{i}-\hat{\bm{p}}_{i}=\bm{w}_{i}+\bm{p}_{i}-\hat{\bm{p}}_{i}. Observation i is therefore strictly closest to prediction i, and \hat{\sigma}(i)=i whatever the tie rule. Hence a wrong label with \hat{\delta}\leq\epsilon_{\rm pred} requires at least one \Omega_{i} to fail.
Step 2. Probability of a close pair. We condition on \bm{p}_{i} and \bm{w}_{i}, since the other projections are independent of them. A disk of radius d has area \pi d^{2}, so by the density bound each other projection falls in the disk of radius d about \bm{p}_{i} with probability at most \pi f_{\max}d^{2}. Taking d=2(\lVert\bm{w}_{i}\rVert+\epsilon_{\rm pred}) and using (\lVert\bm{w}_{i}\rVert+\epsilon_{\rm pred})^{2}\leq 2\lVert\bm{w}_{i}\rVert^{2}+2\epsilon_{\rm pred}^{2}, we obtain
\displaystyle\Pr[\Omega_{i}^{c}] \\ \displaystyle\leq(N-1)\pi f_{\max}\mathbb{E}\bigl[4(\lVert\bm{w}_{i}\rVert+\epsilon_{\rm pred})^{2}\bigr] \\ \displaystyle\leq 8\pi f_{\max}(N-1)(2s^{2}+\epsilon_{\rm pred}^{2}).A union bound over the N observations gives Eq. A36. At the true pose, the predictions equal the projections, so \hat{\delta}=0 and Step 2 applies with \epsilon_{\rm pred}=0 and \mathbb{E}[4\lVert\bm{w}_{i}\rVert^{2}]=8s^{2}. Nearest-projection matching then errs with probability at most 8\pi f_{\max}N(N-1)s^{2}. ∎
A.9 Exact affine matching threshold
Shuffled regression estimates a linear map without known input-output pairings [75], and moment-based methods recover this map by comparing averages [74, 47]. Exact recovery of every pairing in shuffled regression [50, 81] and geometric planted matching [41, 67] requires the noise to stay below a threshold. We examine when every correspondence can be recovered. We compare estimating the correspondences after estimating the camera with a joint search over both.
MomentPnP estimates the pose first and then labels each observation with its nearest projection (Sec. 4.2). Theorem A4 concerns a joint least-squares search over an affine camera and all permutations of the model points, which differs from the perspective fitting and EM of MomentPnP. For random model points, it shows that this search recovers every correspondence with probability tending to one when Ns\to 0, and that no estimator does so when Ns does not tend to zero, even with the camera known. For fixed noise s>0, exact recovery of the correspondences therefore fails as the point sets grow. Lemma A9 gives the corresponding statement for nearest-projection matching. Under its assumptions, which do not depend on the camera model, nearest-projection matching recovers every label with probability tending to one if Ns\to 0 and if the largest error \hat{\delta} of the predicted projections satisfies \Pr[\hat{\delta}\leq\epsilon_{\rm pred}]\to 1 for tolerances \epsilon_{\rm pred} with N\epsilon_{\rm pred}\to 0. Given an accurate pose, labeling after pose estimation therefore tolerates noise of the same order as the joint search. Under the random model of Theorem A4, no estimator tolerates noise of a larger order.
Theorem A4 (Exact affine matching threshold).
Fix a distribution on \mathbb{R}^{3} that either has a bounded density on a bounded set or is a nondegenerate Gaussian, and fix an affine camera \bm{y}\mapsto A\bm{y}+\bm{b} with A\in\mathbb{R}^{2\times 3} of rank two and \bm{b}\in\mathbb{R}^{2}. Draw N model points \bm{y}_{1},\dots,\bm{y}_{N} independently from this distribution, and observe \bm{u}_{i}=A\bm{y}_{\sigma(i)}+\bm{b}+\bm{w}_{i} for i=1,\dots,N and an unknown permutation \sigma. The noise vectors \bm{w}_{i}\sim\mathcal{N}(0,s^{2}I_{2}) are independent of each other and of the model. The noise level s=s_{N}\geq 0 may depend on N as N\to\infty. If Ns\to 0, the correspondence that minimizes the least-squares reprojection error jointly with the unknown camera is \sigma with probability tending to one. In the bounded case, once Ns is below a constant, this probability is at least 1-C_{\rm th}(N^{2}s^{2}+e^{-c_{\rm th}N}), where the constants C_{\rm th},c_{\rm th}>0 depend on the distribution and the camera. If \limsup Ns>0, no estimator recovers a uniformly random \sigma with probability tending to one, even when the camera is known.
Scope. If the projections have unit variance per coordinate, the signal-to-noise ratio is \mathrm{SNR}=1/s^{2}. The threshold in Theorem A4 then lies at \mathrm{SNR} of order N^{2}, and exact recovery requires \mathrm{SNR}/N^{2}\to\infty. The theorem assumes a fixed model dimension, two image coordinates, Gaussian noise and outlier-free point sets under an affine camera. It concerns the event that every label is correct, whose probability Fig. A15 measures. One wrong label makes this event fail. Fig. A11 measures the percentage of wrong labels, which grows with N because each label depends on the density of the projections near it (Lemma A9). Over the same range of point counts, pose accuracy keeps improving up to one million points (Fig. 8). This behavior is consistent with moments averaging over all points, and it motivates estimating the pose before the correspondences.
Outline of the proof. Least squares selects the true correspondence when every incorrect correspondence fits worse after the noise is added. We therefore first show that, without noise, every incorrect correspondence leaves a loss that no affine camera removes, and then that noise rarely cancels this loss. The argument depends on how many points the correspondence moves. When it moves few points, its loss is at least half its total squared displacement, because each point has little influence on the fitted camera (Lemmas A10 and A11). When it moves many points, its loss exceeds a fixed constant, because a fixed affine map rarely fits it. A count of permutations and a finite covering of the affine maps extend this bound to all maps at once (Lemmas A12, A13 and A14). Lemma A15 combines the two cases, and Lemma A16 bounds the probability that noise cancels the loss of one correspondence. Theorems A5 and A6 treat bounded and Gaussian model points. Each averages these probabilities over the model points and sums them over all correspondences, using the second bound of Lemma A12 for correspondences that move few points. Theorem A7 proves the converse from a close pair of projections that noise of order 1/N confuses. The proof of Theorem A4 combines the three theorems.
Setting. The proof allows model points in \mathbb{R}^{q} for any dimension q\geq 2, with q=3 in Theorem A4. For N\geq 2, the model points \bm{y}_{1},\dots,\bm{y}_{N}\in\mathbb{R}^{q} are independent and identically distributed. The camera is an affine map (A,\bm{b}) with A\in\mathbb{R}^{2\times q} of rank two and \bm{b}\in\mathbb{R}^{2}, fixed independently of the sample. Scaled orthography is the case in which A is a positive multiple of a matrix with orthonormal rows. The dimension, the distribution and the camera stay fixed as N grows. The true projections are \bm{p}_{i}=A\bm{y}_{i}+\bm{b}. We relabel the observations so that the true correspondence is the identity \mathrm{id}, which gives
\bm{u}_{i}=\bm{p}_{i}+\bm{w}_{i},\quad\bm{w}_{i}\sim\mathcal{N}(0,s^{2}I_{2}),with noise vectors that are independent of each other and of the model. From here on, \sigma denotes any candidate correspondence, that is, any permutation of \{1,\dots,N\}.
Least-squares losses. We score a candidate correspondence \sigma by its least-squares loss over affine maps,
L(\sigma)=\min_{A^{\prime},\bm{b}^{\prime}}\sum_{i=1}^{N}\lVert\bm{u}_{i}-A^{\prime}\bm{y}_{\sigma(i)}-\bm{b}^{\prime}\rVert^{2},and its noiseless loss L_{0}(\sigma) is the same minimum with \bm{p}_{i} in place of \bm{u}_{i}. The joint least-squares correspondence minimizes L over all permutations. The proof also covers restricted camera families. Let \mathcal{F}_{\mathrm{cam}} be a family of affine maps that contains the true map (A,\bm{b}), such as scaled orthography when the true camera has this form. The restricted loss L^{\mathcal{F}_{\mathrm{cam}}}(\sigma) is the infimum of the sum in Eq. A40 over the family. Theorem A4 takes all affine maps as the family. To measure how far \sigma moves the points, we write \supp(\sigma)=\{i:\sigma(i)\neq i\} for the indices that \sigma moves and k(\sigma)=\lvert\supp(\sigma)\rvert for their number. The total squared displacement of \sigma and the smallest distance between two true projections are
\displaystyle S_{\sigma} \\ \displaystyle=\sum_{i=1}^{N}\lVert\bm{p}_{i}-\bm{p}_{\sigma(i)}\rVert^{2}, \\ \displaystyle d_{\min} \\ \displaystyle=\min_{i\neq j}\lVert\bm{p}_{i}-\bm{p}_{j}\rVert.None of these quantities depends on \bm{b}.
Definition A1 (Bounded model).
The model is bounded if (i) \lVert\bm{y}_{i}\rVert\leq Y_{\max} almost surely, (ii) the covariance of \bm{y}_{i} is positive definite and (iii) \bm{p}_{i} has a density on \mathbb{R}^{2} bounded by f_{\max}.
The bounded distributions of Theorem A4 satisfy these conditions. If \bm{y}_{i} has a density bounded by a constant and supported in the ball of radius Y_{\max}, then (i) and (ii) hold. Condition (iii) then holds with f_{\max} the product of the bound on the density of \bm{y}_{i}, the volume of the unit ball in \mathbb{R}^{q-2} and Y_{\max}^{q-2}/\det(AA^{\top})^{1/2}. A sample from a surface need not satisfy (iii), because its projection can have an unbounded density at the contour. In the bounds below, all constants depend on the distribution and on A.
Least squares in matrix form. Writing the data as matrices turns each loss into a squared distance to a column space. We put \bm{y}_{i}^{+}=(\bm{y}_{i}^{\top},1)^{\top}\in\mathbb{R}^{q+1} and let Z\in\mathbb{R}^{N\times(q+1)} have rows \bm{y}_{i}^{+\top}. The N\times 2 matrices P^{\star}, U and W have rows \bm{p}_{i}^{\top}, \bm{u}_{i}^{\top} and \bm{w}_{i}^{\top}, so that U=P^{\star}+W. A subscript \sigma reorders matrix rows, so that row i of Z_{\sigma} is \bm{y}_{\sigma(i)}^{+\top} and row i of P^{\star}_{\sigma} is \bm{p}_{\sigma(i)}^{\top}. An affine map is the matrix \Theta^{\prime}=[A^{\prime}\ \bm{b}^{\prime}]\in\mathbb{R}^{2\times(q+1)}, and the points it predicts under \sigma are the rows of Z_{\sigma}\Theta^{\prime\top}. The true map \Theta=[A\ \bm{b}] gives P^{\star}=Z\Theta^{\top}. Let \Pi and \Pi_{\sigma} be the orthogonal projections onto the column spaces of Z and Z_{\sigma}. For each image coordinate, least squares projects the observations onto the column space of Z_{\sigma}, and the loss is the squared Frobenius norm of the residual,
\displaystyle L(\sigma) \\ \displaystyle=\lVert(I-\Pi_{\sigma})U\rVert^{2}, \\ \displaystyle L_{0}(\sigma) \\ \displaystyle=\lVert(I-\Pi_{\sigma})P^{\star}\rVert^{2}.The diagonal entries of \Pi, called leverages, measure the influence of each point on the fit. We write \Pi_{\max}=\max_{i}\Pi_{ii} for the largest, and we have (\Pi_{\sigma})_{ii}=\Pi_{\sigma(i)\sigma(i)} because Z_{\sigma} reorders the rows of Z.
Constants. The bounds use the augmented second-moment matrix \Sigma_{+}=\mathbb{E}[\bm{y}_{i}^{+}\bm{y}_{i}^{+\top}]. It is positive definite under (ii), because for (\bm{a}_{\rm th},a_{{\rm th},0})\neq 0 its quadratic form \operatorname{Var}(\bm{a}_{\rm th}\cdot\bm{y}_{i})+(\bm{a}_{\rm th}\cdot\mathbb{E}\bm{y}_{i}+a_{{\rm th},0})^{2} is positive. We use the quantities
\displaystyle\lambda_{\Sigma} \\ \displaystyle=\tfrac{1}{2}\lambda_{\min}(\Sigma_{+}), \\ \displaystyle\Lambda \\ \displaystyle=\sqrt{Y_{\max}^{2}+1}, \\ \displaystyle\alpha_{\rm th} \\ \displaystyle=\lambda_{\Sigma}/(2\Lambda^{2}), \\ \displaystyle\rho \\ \displaystyle=Y_{\max}\lVert A\rVert_{\mathrm{op}}, \\ \displaystyle\beta_{\rm th} \\ \displaystyle=256\pi f_{\max}s^{2}, \\ \displaystyle d_{0} \\ \displaystyle=\min\Bigl\{1,\frac{\alpha_{\rm th}^{2}}{1024e^{2}\pi f_{\max}}\Bigr\}.All of them except \beta_{\rm th}, which is proportional to s^{2}, are constants. With high probability, Z^{\top}Z\succeq N\lambda_{\Sigma}I_{q+1}, and the leverage argument then applies to permutations that move at most \alpha_{\rm th}N points (Lemma A11). Also with high probability, permutations that move more points have noiseless loss above d_{0} (Lemma A14). The quantity \beta_{\rm th} enters the final sum over permutations. By construction, \lVert\bm{y}_{i}^{+}\rVert\leq\Lambda and \lVert\bm{p}_{i}-\bm{b}\rVert\leq\rho. The last diagonal entry of \Sigma_{+} is one and \Lambda\geq 1, so \lambda_{\Sigma}\leq\frac{1}{2} and \alpha_{\rm th}\leq\frac{1}{4}.
Lemma A10 (Noiseless loss and permutation displacement).
Let x_{+}=\max\{x,0\} denote the positive part of a real number x. For every sample and every \sigma, we have
L_{0}(\sigma)\geq\bigl(1-k(\sigma)\Pi_{\max}\bigr)_{+}S_{\sigma}.In particular, if k(\sigma)\Pi_{\max}\leq\frac{1}{2}, then L_{0}(\sigma)\geq S_{\sigma}/2\geq k(\sigma)d_{\min}^{2}/2.
The true camera maps the reordered model to the reordered projections P^{\star}_{\sigma}, so L_{0}(\sigma) is the squared norm of the part of P^{\star}-P^{\star}_{\sigma} that remains after the affine map is refitted. The columns of P^{\star}_{\sigma}=Z_{\sigma}\Theta^{\top} lie in the column space of Z_{\sigma}, so (I-\Pi_{\sigma})P^{\star}_{\sigma}=0, and Eq. A42 gives
\displaystyle L_{0}(\sigma) \\ \displaystyle=\lVert(I-\Pi_{\sigma})(P^{\star}-P^{\star}_{\sigma})\rVert^{2} \\ \displaystyle=S_{\sigma}-\tr\bigl((P^{\star}-P^{\star}_{\sigma})^{\top}\Pi_{\sigma}(P^{\star}-P^{\star}_{\sigma})\bigr).The rows of P^{\star}-P^{\star}_{\sigma} are (\bm{p}_{i}-\bm{p}_{\sigma(i)})^{\top}. They vanish outside \supp(\sigma), and \lVert P^{\star}-P^{\star}_{\sigma}\rVert^{2}=S_{\sigma}. Only the block of \Pi_{\sigma} indexed by \supp(\sigma) therefore contributes to the trace, which is at most the largest eigenvalue of that block times S_{\sigma}. The block is positive semidefinite, so its largest eigenvalue is at most its trace,
\displaystyle\sum_{i\in\supp(\sigma)}(\Pi_{\sigma})_{ii} \\ \displaystyle=\sum_{i\in\supp(\sigma)}\Pi_{\sigma(i)\sigma(i)} \\ \displaystyle\leq k(\sigma)\Pi_{\max},where the equality holds because Z_{\sigma} reorders the rows of Z. This bound and L_{0}(\sigma)\geq 0 give Eq. A43. Finally, each of the k(\sigma) rows of P^{\star}-P^{\star}_{\sigma} indexed by \supp(\sigma) has norm at least d_{\min}, because \sigma(i)\neq i for these rows, so S_{\sigma}\geq k(\sigma)d_{\min}^{2}. ∎
Lemma A11 (Design matrix concentration).
For a bounded model (Definition A1), the event \Omega_{\mathrm{cond}}=\{Z^{\top}Z\succeq N\lambda_{\Sigma}I_{q+1}\} satisfies
\Pr[\Omega_{\mathrm{cond}}^{c}]\leq 2(q+1)^{2}\exp\Bigl(-\frac{N\lambda_{\Sigma}^{2}}{2(q+1)^{2}\Lambda^{4}}\Bigr).On \Omega_{\mathrm{cond}}, we have \Pi_{\max}\leq\Lambda^{2}/(N\lambda_{\Sigma}), and every \sigma with k(\sigma)\leq\alpha_{\rm th}N has L_{0}(\sigma)\geq S_{\sigma}/2.
We compare \frac{1}{N}Z^{\top}Z with \Sigma_{+} entry by entry and then bound the leverages. Each entry of \bm{y}_{i}^{+}\bm{y}_{i}^{+\top} lies in [-\Lambda^{2},\Lambda^{2}]. By Hoeffding’s inequality [76], an entry of \frac{1}{N}Z^{\top}Z-\Sigma_{+} exceeds \lambda_{\Sigma}/(q+1) in absolute value with probability at most 2\exp(-N\lambda_{\Sigma}^{2}/(2(q+1)^{2}\Lambda^{4})), and there are (q+1)^{2} entries. If no entry exceeds this threshold, the Frobenius norm of the difference is at most \lambda_{\Sigma}, so \lambda_{\min}(\frac{1}{N}Z^{\top}Z)\geq 2\lambda_{\Sigma}-\lambda_{\Sigma}. On \Omega_{\mathrm{cond}}, every leverage satisfies \Pi_{ii}=\bm{y}_{i}^{+\top}(Z^{\top}Z)^{-1}\bm{y}_{i}^{+}\leq\Lambda^{2}/(N\lambda_{\Sigma}). If k(\sigma)\leq\alpha_{\rm th}N, then k(\sigma)\Pi_{\max}\leq\frac{1}{2}, and Lemma A10 applies. ∎
Lemma A11 gives no bound when \sigma moves more than \alpha_{\rm th}N points, because the factor (1-k(\sigma)\Pi_{\max})_{+} in Eq. A43 can then vanish. For these permutations, we show that a fixed affine map rarely fits an incorrect correspondence (Lemma A12), count permutations by their moved indices and cycles (Lemma A13), and cover all relevant affine maps by finitely many fixed maps (Lemma A14). For \sigma\neq\mathrm{id}, we let \cyc(\sigma) be the number of cycles of \sigma of length at least two and put r(\sigma)=k(\sigma)-\cyc(\sigma). Every such cycle has at least two elements, so r(\sigma)\geq k(\sigma)/2.
Lemma A12 (Residual bound for a fixed incorrect permutation).
Suppose that the \bm{y}_{i} are independent and that each \bm{p}_{i} has a density bounded by f_{\max}. Fix an affine map (A^{\prime},\bm{b}^{\prime}) and a permutation \sigma\neq\mathrm{id}, and let r=r(\sigma). Then, for every \tau_{\rm th}>0, the residuals of (A^{\prime},\bm{b}^{\prime}) satisfy the first bound below, and the residuals \bm{p}_{i}-\bm{p}_{\sigma(i)} of the true map, whose squared norms sum to S_{\sigma}, satisfy the second:
\displaystyle\Pr\Bigl[\sum_{i=1}^{N}\lVert\bm{p}_{i}-A^{\prime}\bm{y}_{\sigma(i)}-\bm{b}^{\prime}\rVert^{2}\leq\tau_{\rm th}\Bigr] \\ \displaystyle\leq\frac{(\pi f_{\max}\tau_{\rm th})^{r}}{r!}, \\ \displaystyle\mathbb{E}\exp(-S_{\sigma}/\tau_{\rm th}) \\ \displaystyle\leq(\pi f_{\max}\tau_{\rm th})^{r}.We write \bm{\varepsilon}_{i}=\bm{p}_{i}-A^{\prime}\bm{y}_{\sigma(i)}-\bm{b}^{\prime} for the residual of observation i. A moved model point enters two residuals, so the residuals are not independent. We therefore drop one residual from each cycle of length at least two and integrate the remaining r residuals one at a time, each against a model point that no later residual involves.
Step 1. Choice of residuals. We write a cycle of \sigma of length at least two as i_{0}\to i_{1}\to\dots\to i_{0}, with \sigma(i_{a})=i_{a+1}. We discard the residual at i_{0} and order the remaining residuals of the cycle as i_{1},i_{2},\ldots. Repeating this for every cycle retains r residuals. For a\geq 1, the point \bm{y}_{i_{a}} enters the residual \bm{\varepsilon}_{i_{a}} through \bm{p}_{i_{a}}, the residual \bm{\varepsilon}_{i_{a-1}} through A^{\prime}\bm{y}_{i_{a}}, and no other residual. The residual at i_{a-1} is either discarded or earlier in the order. The retained residuals after \bm{\varepsilon}_{i_{a}} therefore do not depend on \bm{y}_{i_{a}}.
Step 2. Integration. We denote the retained residuals, in this order, by \bm{\varepsilon}_{(1)},\dots,\bm{\varepsilon}_{(r)}. We claim that every measurable \chi\geq 0 on (\mathbb{R}^{2})^{r} satisfies
\mathbb{E}\chi\bigl(\bm{\varepsilon}_{(1)},\dots,\bm{\varepsilon}_{(r)}\bigr)\leq f_{\max}^{r}\int_{(\mathbb{R}^{2})^{r}}\chi.We condition on all model points except the one with the first retained index. By Step 1, the residuals \bm{\varepsilon}_{(2)},\dots,\bm{\varepsilon}_{(r)} are then fixed, and \bm{\varepsilon}_{(1)} is a translate of the corresponding \bm{p}_{i}. The model points are independent, so the conditional density of this \bm{p}_{i} is bounded by f_{\max}. The conditional expectation of \chi is therefore at most f_{\max}\int_{\mathbb{R}^{2}}\chi(\bm{\varepsilon}_{(1)},\bm{\varepsilon}_{(2)},\dots,\bm{\varepsilon}_{(r)})\,d\bm{\varepsilon}_{(1)}, which by Tonelli’s theorem [61] is a nonnegative measurable function of the remaining residuals. Repeating the argument for the remaining retained indices in order proves Eq. A49.
Step 3. The two bounds. The sum of the squared norms of all residuals is at least the sum over the retained residuals. Taking for \chi the indicator of the ball of radius \sqrt{\tau_{\rm th}} in \mathbb{R}^{2r}, whose volume is \pi^{r}\tau_{\rm th}^{r}/r!, gives Eq. A47. For Eq. A48, we take (A^{\prime},\bm{b}^{\prime})=(A,\bm{b}), so that \bm{\varepsilon}_{i}=\bm{p}_{i}-\bm{p}_{\sigma(i)}. We also take \chi(\bm{\varepsilon})=\exp(-\lVert\bm{\varepsilon}\rVert^{2}/\tau_{\rm th}), whose integral over \mathbb{R}^{2r} is (\pi\tau_{\rm th})^{r}. ∎
Lemma A13 (Number of permutations by moved points and cycles).
For integers 2\leq k\leq N and 1\leq j\leq\lfloor k/2\rfloor, the number N_{N,k,j} of permutations with k(\sigma)=k and \cyc(\sigma)=j satisfies N_{N,k,j}\leq N^{k}2^{k}/j!. Consequently, for 0<\varpi\leq 1 we have
N_{N,k,j}\frac{\varpi^{k-j}}{(k-j)!}\leq\Bigl(\frac{4eN\sqrt{\varpi}}{k}\Bigr)^{k}.We can choose an ordered list of k distinct indices in at most N^{k} ways. We can cut the list into j consecutive blocks of length at least two in fewer than 2^{k} ways and read each block as a cycle. Every permutation with k(\sigma)=k and \cyc(\sigma)=j arises in this way at least j! times, once for each ordering of its cycles, and dividing by this multiplicity gives the first bound. For the second, we use j!\,(k-j)!=k!/\binom{k}{j}\geq k!/2^{k}, then \varpi^{k-j}\leq\varpi^{k/2}, which holds because k-j\geq k/2 and \varpi\leq 1, and finally k!\geq(k/e)^{k}. ∎
Lemma A14 (Uniform loss bound for permutations moving many points).
For a bounded model, let \Omega_{\mathrm{dense}} be the event that every \sigma with k(\sigma)>\alpha_{\rm th}N has L_{0}(\sigma)>d_{0}. Then
\displaystyle\Pr[\Omega_{\mathrm{cond}}\setminus\Omega_{\mathrm{dense}}] \\ \displaystyle\leq 4^{-\alpha_{\rm th}N}N^{2}N_{\mathrm{net}}, \\ \displaystyle N_{\mathrm{net}} \\ \displaystyle=\Bigl(1+\frac{2(\rho+1)\Lambda\sqrt{N}}{\sqrt{\lambda_{\Sigma}d_{0}}}\Bigr)^{2(q+1)}.The noiseless loss is a minimum over all affine maps, whereas Lemma A12 applies to one fixed map. We therefore first show that every map with a small residual is bounded, and then approximate each bounded map by one of finitely many fixed maps. Neither L_{0} nor \Omega_{\mathrm{cond}} depends on \bm{b}, so we take \bm{b}=0, which gives \lVert P^{\star}\rVert\leq\rho\sqrt{N}.
Step 1. The minimizer is bounded. On \Omega_{\mathrm{cond}}, suppose that some \sigma with k(\sigma)>\alpha_{\rm th}N has L_{0}(\sigma)\leq d_{0}\leq 1, and let \Theta^{\prime} attain this minimum. Since Z_{\sigma}^{\top}Z_{\sigma}=Z^{\top}Z\succeq N\lambda_{\Sigma}I_{q+1}, we obtain
\sqrt{N\lambda_{\Sigma}}\,\lVert\Theta^{\prime}\rVert\leq\lVert Z_{\sigma}\Theta^{\prime\top}\rVert\leq\lVert P^{\star}\rVert+\sqrt{d_{0}}\leq\rho\sqrt{N}+1,so \lVert\Theta^{\prime}\rVert\leq(\rho+1)/\sqrt{\lambda_{\Sigma}}, uniformly in \sigma.
Step 2. Finite approximation of the affine maps. We choose a finite subset \mathcal{G} of the ball of radius (\rho+1)/\sqrt{\lambda_{\Sigma}} in \mathbb{R}^{2\times(q+1)} such that every point of the ball lies within \sqrt{d_{0}}/(\Lambda\sqrt{N}) of \mathcal{G}. Such a covering set, called a net, needs at most N_{\mathrm{net}} points [76] and can be fixed before sampling. We replace \Theta^{\prime} by its nearest point \Theta^{\prime\prime}\in\mathcal{G}. This replacement changes the matrix of predicted points by at most \lVert Z\rVert_{\mathrm{op}}\lVert\Theta^{\prime}-\Theta^{\prime\prime}\rVert\leq\Lambda\sqrt{N}\cdot\sqrt{d_{0}}/(\Lambda\sqrt{N})=\sqrt{d_{0}}, so the residual of \Theta^{\prime\prime} has norm at most 2\sqrt{d_{0}}. Hence, if \Omega_{\mathrm{cond}} holds and \Omega_{\mathrm{dense}} fails, there are a point \Theta^{\prime\prime}\in\mathcal{G} and a permutation \sigma with k(\sigma)>\alpha_{\rm th}N such that
\sum_{i=1}^{N}\lVert\bm{p}_{i}-\Theta^{\prime\prime}\bm{y}_{\sigma(i)}^{+}\rVert^{2}\leq 4d_{0}.Step 3. Union bound. The points of \mathcal{G} do not depend on the sample, so Lemma A12 applies to each of them. Fix \Theta^{\prime\prime} and \sigma. By Eq. A47 with \tau_{\rm th}=4d_{0}, the event of Eq. A53 has probability at most \varpi^{r(\sigma)}/r(\sigma)!, where \varpi=4\pi f_{\max}d_{0}. The choice of d_{0} gives \sqrt{\varpi}\leq\alpha_{\rm th}/(16e)\leq 1. By Eq. A50, the permutations with k(\sigma)=k and \cyc(\sigma)=j contribute at most (4eN\sqrt{\varpi}/k)^{k} in total. For k>\alpha_{\rm th}N, this is at most (4e\sqrt{\varpi}/\alpha_{\rm th})^{k}\leq 4^{-k}\leq 4^{-\alpha_{\rm th}N}. Summing over the at most N^{2} pairs (k,j) and the at most N_{\mathrm{net}} points of \mathcal{G} gives Eq. A51. ∎
Lemma A15 (Lower bounds on noiseless loss).
For a bounded model, let \Omega_{\mathrm{sep}}=\Omega_{\mathrm{cond}}\cap\Omega_{\mathrm{dense}}. Then
\displaystyle\Pr[\Omega_{\mathrm{sep}}^{c}] \\ \displaystyle\leq p_{\mathrm{des}}, \\ \displaystyle p_{\mathrm{des}} \\ \displaystyle=2(q+1)^{2}\exp\Bigl(-\frac{N\lambda_{\Sigma}^{2}}{2(q+1)^{2}\Lambda^{4}}\Bigr) \\ \displaystyle+4^{-\alpha_{\rm th}N}N^{2}N_{\mathrm{net}},and p_{\mathrm{des}}\leq C_{\rm des}e^{-c_{\rm th}N} for constants C_{\rm des},c_{\rm th}>0. On \Omega_{\mathrm{sep}}, every \sigma\neq\mathrm{id} satisfies L_{0}(\sigma)\geq S_{\sigma}/2\geq k(\sigma)d_{\min}^{2}/2 if k(\sigma)\leq\alpha_{\rm th}N, and L_{0}(\sigma)>d_{0} otherwise.
The complement of \Omega_{\mathrm{sep}} is contained in the union of \Omega_{\mathrm{cond}}^{c} and \Omega_{\mathrm{cond}}\setminus\Omega_{\mathrm{dense}}, so its probability is at most the sum of the bounds in Eqs. A46 and A51. This sum is exponentially small because N^{2}N_{\mathrm{net}} grows polynomially in N. On \Omega_{\mathrm{sep}}, the first claim follows from Lemmas A11 and A10 and the second from the definition of \Omega_{\mathrm{dense}}. ∎
Lemma A16 (Noise perturbation of the loss).
Let s>0. For every fixed model sample and every \sigma, the probability over the noise satisfies
\displaystyle\Pr\bigl[L(\sigma)-\lVert W\rVert^{2}<L_{0}(\sigma)/2\bigr] \\ \displaystyle\leq\bigl(1+2^{q+1}\bigr)\exp\Bigl(-\frac{L_{0}(\sigma)}{128s^{2}}\Bigr).By Eq. A42 and U=P^{\star}+W, we have
\displaystyle L(\sigma)-\lVert W\rVert^{2} \\ \displaystyle=L_{0}(\sigma)+2\bigl\langle(I-\Pi_{\sigma})P^{\star},W\bigr\rangle \\ \displaystyle-\lVert\Pi_{\sigma}W\rVert^{2}.The middle term is linear in the noise, and the last term is the reduction in loss obtained by fitting the noise. The middle term is a centered Gaussian variable with variance 4s^{2}L_{0}(\sigma), so it is below -L_{0}(\sigma)/4 with probability at most \exp(-L_{0}(\sigma)/(128s^{2})). The variable \lVert\Pi_{\sigma}W\rVert^{2}/s^{2} is chi-square with at most 2(q+1) degrees of freedom, and its moment generating function at \frac{1}{4} is at most 2^{q+1}. By Markov’s inequality, \lVert\Pi_{\sigma}W\rVert^{2} exceeds L_{0}(\sigma)/4 with probability at most 2^{q+1}\exp(-L_{0}(\sigma)/(16s^{2})). When neither deviation occurs, the loss difference is at least L_{0}(\sigma)/2. Since e^{-L_{0}(\sigma)/(16s^{2})}\leq e^{-L_{0}(\sigma)/(128s^{2})}, the sum of the two probabilities is at most the bound in Eq. A55. ∎
Theorem A5 (Exact recovery for bounded model points).
For a bounded model with s>0 and N\beta_{\rm th}<1, let
\displaystyle\Omega_{\mathrm{rec}}=\bigl\{ \\ \displaystyle L^{\mathcal{F}_{\mathrm{cam}}}(\sigma)-L^{\mathcal{F}_{\mathrm{cam}}}(\mathrm{id})\geq L_{0}(\sigma)/2>0 \\ \displaystyle\text{for all }\sigma\neq\mathrm{id}\text{ and all }\mathcal{F}_{\mathrm{cam}}\ni(A,\bm{b})\bigr\}.Then \Omega_{\mathrm{rec}}\cap\Omega_{\mathrm{sep}} has probability at least
\displaystyle 1-p_{\mathrm{des}}-\bigl(1+2^{q+1}\bigr)\Bigl[ \\ \displaystyle\exp\Bigl(\frac{N^{2}\beta_{\rm th}}{2(1-N\beta_{\rm th})}\Bigr)-1 \\ \displaystyle+N!\,e^{-d_{0}/(128s^{2})}\Bigr].Consequently, there are constants c_{1},C_{\rm th},c_{\rm th}>0 such that, for all N and all 0<s^{2}\leq c_{1}/N^{2}, we have
\Pr[\Omega_{\mathrm{rec}}\cap\Omega_{\mathrm{sep}}]\geq 1-C_{\rm th}N^{2}s^{2}-C_{\rm th}e^{-c_{\rm th}N}.On \Omega_{\mathrm{rec}}, the identity is the unique minimizer of L^{\mathcal{F}_{\mathrm{cam}}}, so the least-squares correspondence is the true one.
We bound the probability that some incorrect correspondence has a loss too close to or below the true loss. Bounding each such probability through d_{\min} alone would add a logarithmic factor to the required signal-to-noise ratio, giving order N^{2}\log N. We avoid this factor by averaging each error probability over the model before summing over the N!-1 incorrect correspondences, and by counting permutations by their cycles.
Step 1. Reduction to the unrestricted loss. Restricting the family of affine maps cannot decrease the loss, so L^{\mathcal{F}_{\mathrm{cam}}}(\sigma)\geq L(\sigma). Evaluating at the true map gives L^{\mathcal{F}_{\mathrm{cam}}}(\mathrm{id})\leq\lVert W\rVert^{2}. It therefore suffices to bound the probability that L(\sigma)-\lVert W\rVert^{2}<L_{0}(\sigma)/2 for some \sigma\neq\mathrm{id}. Almost surely d_{\min}>0, so on \Omega_{\mathrm{sep}} every L_{0}(\sigma) with \sigma\neq\mathrm{id} is positive by Lemma A15.
Step 2. Conditioning on the model. The noise is independent of the model, so we apply Lemma A16 with the model fixed and then average the conditional bound over the model. A union bound shows that the probability that \Omega_{\mathrm{sep}} fails, or that some \sigma\neq\mathrm{id} has L(\sigma)-\lVert W\rVert^{2}<L_{0}(\sigma)/2, is at most
p_{\mathrm{des}}+\bigl(1+2^{q+1}\bigr)\sum_{\sigma\neq\mathrm{id}}\mathbb{E}\Bigl[\mathbf{1}_{\Omega_{\mathrm{sep}}}e^{-L_{0}(\sigma)/(128s^{2})}\Bigr].Step 3. Correspondences that move many points. For k(\sigma)>\alpha_{\rm th}N, we have L_{0}(\sigma)>d_{0} on \Omega_{\mathrm{sep}}, so the summand is at most e^{-d_{0}/(128s^{2})}. There are fewer than N! such \sigma.
Step 4. Correspondences that move few points. For k(\sigma)\leq\alpha_{\rm th}N, we have L_{0}(\sigma)\geq S_{\sigma}/2 on \Omega_{\mathrm{sep}}. We use this inequality, drop the indicator and apply Eq. A48 with \tau_{\rm th}=256s^{2}, which gives
\displaystyle\mathbb{E}\Bigl[\mathbf{1}_{\Omega_{\mathrm{sep}}}e^{-L_{0}(\sigma)/(128s^{2})}\Bigr] \\ \displaystyle\leq\mathbb{E}e^{-S_{\sigma}/(256s^{2})} \\ \displaystyle\leq\beta_{\rm th}^{r(\sigma)}.Step 5. Sum over cycle types. To sum \beta_{\rm th}^{r(\sigma)} over all \sigma\neq\mathrm{id}, which include those of Step 4, we group the permutations by their cycle lengths. A permutation with \mu_{a} cycles of length a for each a\geq 2 has k=\sum_{a}a\mu_{a} and r=\sum_{a}(a-1)\mu_{a}. By Cauchy’s formula for cycle types, the number of such permutations is N!/((N-k)!\prod_{a}a^{\mu_{a}}\mu_{a}!)\leq\prod_{a}(N^{a}/a)^{\mu_{a}}/\mu_{a}!. A cycle type is a choice of \mu_{2},\dots,\mu_{N}\geq 0, not all zero. We allow every such choice, even when the cycles would use more than N indices. The added terms are nonnegative, and the sum then factors over a. Subtracting the term of the identity, for which every \mu_{a} is zero, gives
\displaystyle\sum_{\sigma\neq\mathrm{id}}\beta_{\rm th}^{r(\sigma)} \\ \displaystyle\leq\prod_{a=2}^{N}\sum_{\mu\geq 0}\frac{1}{\mu!}\Bigl(\frac{N^{a}\beta_{\rm th}^{a-1}}{a}\Bigr)^{\mu}-1 \\ \displaystyle=\exp\Bigl(\sum_{a=2}^{N}\frac{N^{a}\beta_{\rm th}^{a-1}}{a}\Bigr)-1 \\ \displaystyle\leq\exp\Bigl(\frac{N^{2}\beta_{\rm th}}{2(1-N\beta_{\rm th})}\Bigr)-1.Together with p_{\mathrm{des}} from Step 2 and the bound of Step 3, this bound proves Eq. A58.
Step 6. The rate. Let c_{1}=\min\{1/(512\pi f_{\max}),d_{0}/256\} and suppose that s^{2}\leq c_{1}/N^{2}. Then N^{2}\beta_{\rm th}\leq\frac{1}{2} and N\beta_{\rm th}\leq\frac{1}{4}, so the exponent in Eq. A58 is at most N^{2}\beta_{\rm th}. Since e^{x}-1\leq 2x on [0,1], the first term in the bracket is at most 512\pi f_{\max}N^{2}s^{2}. For the second term, the function s^{2}\mapsto e^{-d_{0}/(128s^{2})}/s^{2} is increasing for s^{2}\leq d_{0}/128. Its value is therefore at most its value at s^{2}=c_{1}/N^{2}, where d_{0}/(128s^{2})\geq 2N^{2}. Hence N!\,e^{-d_{0}/(128s^{2})}\leq(N^{2}s^{2}/c_{1})\exp(N\log N-2N^{2})\leq N^{2}s^{2}/c_{1}. Eq. A58 and the bound p_{\mathrm{des}}\leq C_{\rm des}e^{-c_{\rm th}N} of Lemma A15 give Eq. A59 with C_{\rm th}=\max\{C_{\rm des},(1+2^{q+1})(512\pi f_{\max}+1/c_{1})\}. ∎
Theorem A6 (Exact recovery for Gaussian model points).
Suppose that the \bm{y}_{i} are independent and identically distributed Gaussian vectors with a positive definite covariance \Sigma, and that A has rank two. There are constants c_{1},C_{\rm th}>0 such that, for all N\geq 2 and all 0<s^{2}\leq c_{1}/N^{2}, the event \Omega_{\mathrm{rec}} of Eq. A57 has probability at least 1-C_{\rm th}\,N^{2}s^{2}-C_{\rm th}/N.
A Gaussian distribution has unbounded support, so Theorem A5 does not apply directly. We repeat its proof on an event on which every sampled point lies within a deterministic radius that grows slowly with N. The losses and d_{\min} do not change when the model is translated, so we suppose that the \bm{y}_{i} have zero mean. Then \bm{p}_{i} is Gaussian with covariance A\Sigma A^{\top}, its density is at most f_{\max}=(2\pi)^{-1}\det(A\Sigma A^{\top})^{-1/2}, and \Sigma_{+}=\operatorname{diag}(\Sigma,1).
Step 1. Truncation. We put Y_{N}^{2}=(2q+6\log N)\lVert\Sigma\rVert_{\mathrm{op}}, \Lambda_{N}^{2}=Y_{N}^{2}+1, \rho_{N}=Y_{N}\lVert A\rVert_{\mathrm{op}}, \alpha_{{\rm th},N}=\lambda_{\Sigma}/(2\Lambda_{N}^{2}) and d_{0,N}=\min\{1,\alpha_{{\rm th},N}^{2}/(1024e^{2}\pi f_{\max})\}. Let \Omega_{\mathrm{cond},N} be the event that \max_{i}\lVert\bm{y}_{i}\rVert\leq Y_{N} and Z^{\top}Z\succeq N\lambda_{\Sigma}I_{q+1}. By the chi-square tail bound of Laurent and Massart [42], each \lVert\bm{y}_{i}\rVert^{2} exceeds Y_{N}^{2} with probability at most N^{-2}, so the first condition fails with probability at most 1/N. The entries of \bm{y}_{i}^{+}\bm{y}_{i}^{+\top} have finite moment generating functions near zero. By the Chernoff bound, each entry of \frac{1}{N}Z^{\top}Z-\Sigma_{+} therefore exceeds \lambda_{\Sigma}/(q+1) in absolute value with probability at most 2e^{-c_{\rm G}N} for some c_{\rm G}>0. Hence \Pr[\Omega_{\mathrm{cond},N}^{c}]\leq 1/N+2(q+1)^{2}e^{-c_{\rm G}N}.
Step 2. Separation. Apart from the concentration of Z^{\top}Z, which Step 1 replaces, the proofs of Lemmas A11 and A14 use Y_{\max} only through three bounds, namely \lVert\bm{y}_{i}^{+}\rVert\leq\Lambda for the leverages, \lVert P^{\star}\rVert\leq\rho\sqrt{N} for the minimizer and \lVert Z\rVert_{\mathrm{op}}\leq\Lambda\sqrt{N} for the net. On \Omega_{\mathrm{cond},N}, all three hold with (Y_{\max},\Lambda,\alpha_{\rm th},d_{0},\rho) replaced by the deterministic quantities (Y_{N},\Lambda_{N},\alpha_{{\rm th},N},d_{0,N},\rho_{N}). Lemma A12 needs only the independence of the model points and the density bound, which hold without truncation. Thus, on \Omega_{\mathrm{cond},N}, every \sigma with k(\sigma)\leq\alpha_{{\rm th},N}N satisfies L_{0}(\sigma)\geq S_{\sigma}/2. The event that \Omega_{\mathrm{cond},N} holds and some \sigma with k(\sigma)>\alpha_{{\rm th},N}N has L_{0}(\sigma)\leq d_{0,N} has probability at most 4^{-\alpha_{{\rm th},N}N}N^{2}N_{\mathrm{net},N}, where N_{\mathrm{net},N} is N_{\mathrm{net}} with the same replacements. We define \Omega_{\mathrm{sep},N} by removing this event from \Omega_{\mathrm{cond},N}. Since \log N\geq\log 2 for N\geq 2, there is a constant a_{\rm G}>0 such that \alpha_{{\rm th},N}\geq a_{\rm G}/\log N and d_{0,N}\geq a_{\rm G}/\log^{2}N for every N\geq 2. Hence N_{\mathrm{net},N}, in which \rho_{N} and \Lambda_{N} grow like \sqrt{\log N}, is at most a polynomial in N, and 4^{-\alpha_{{\rm th},N}N}\leq\exp(-a_{\rm G}N\log 4/\log N). The probability of the removed event, multiplied by N, therefore tends to zero and is bounded over N\geq 2. With Step 1, this gives a constant C_{\rm G} such that \Pr[\Omega_{\mathrm{sep},N}^{c}]\leq C_{\rm G}/N for every N\geq 2.
Step 3. Sum over the correspondences. Steps 1 to 5 of the proof of Theorem A5 apply with \Omega_{\mathrm{sep},N} in place of \Omega_{\mathrm{sep}} and \Pr[\Omega_{\mathrm{sep},N}^{c}] in place of p_{\mathrm{des}}. The correspondences with k(\sigma)\leq\alpha_{{\rm th},N}N contribute at most (1+2^{q+1})[\exp(N^{2}\beta_{\rm th}/(2(1-N\beta_{\rm th})))-1], which is at most a multiple of N^{2}s^{2} as in Step 6 of that proof. The others contribute at most (1+2^{q+1})\,N!\,e^{-d_{0,N}/(128s^{2})}. We choose c_{1}\leq\min\{1/(512\pi f_{\max}),\ \inf_{N\geq 2}N^{2}d_{0,N}/256\}, where the infimum is positive because every term is positive and N^{2}d_{0,N}\to\infty. Then s^{2}\leq c_{1}/N^{2}\leq d_{0,N}/128, and the monotonicity argument of Step 6 gives
N!\,e^{-d_{0,N}/(128s^{2})}\leq\frac{N^{2}s^{2}}{c_{1}}\exp\Bigl(N\log N-\frac{N^{2}d_{0,N}}{128c_{1}}\Bigr).The exponent tends to -\infty because N^{2}d_{0,N}\geq a_{\rm G}N^{2}/\log^{2}N. The exponential therefore tends to zero and is bounded over N\geq 2, so this contribution is also at most a multiple of N^{2}s^{2}. Adding \Pr[\Omega_{\mathrm{sep},N}^{c}]\leq C_{\rm G}/N gives the bound of the theorem. ∎
Theorem A7 (No exact recovery above the noise threshold).
Suppose that the true projections \bm{p}_{1},\dots,\bm{p}_{N} are independent with a common density f_{\rm p} on \mathbb{R}^{2} bounded by f_{\max}, and let I_{\rm p}=\int f_{\rm p}^{2} be the squared L^{2} norm of this density. The observations are \bm{u}_{i}=\bm{p}_{\sigma(i)}+\bm{w}_{i}, where \sigma is the true correspondence and the noise vectors \bm{w}_{i}\sim\mathcal{N}(0,s^{2}I_{2}) are independent of each other and of the model. Suppose that \sigma is uniformly distributed over all permutations and independent of the model and the noise, and let the estimator know the model and the camera (A,\bm{b}). For every c_{0}>0 there is an N_{0}(f_{\rm p},c_{0}) such that, whenever N\geq N_{0} and Ns\geq c_{0}, every measurable estimator errs with probability at least
\Phi\bigl(-1/\sqrt{2}\bigr)\cdot\frac{(\pi c_{0}^{2}I_{\rm p}/8)^{2}}{\pi f_{\max}c_{0}^{2}/2+\tfrac{1}{4}\pi^{2}f_{\max}^{2}c_{0}^{4}}>0,where \Phi is the standard normal distribution function. The same bound holds for the worst case over the true correspondence.
With probability bounded away from zero, two true projections lie within c_{0}/N of each other. At noise level s\geq c_{0}/N, an estimator confuses this pair with positive probability even when it knows all other labels.
Step 1. A close pair occurs with probability bounded away from zero. Let N_{\mathrm{close}} be the number of unordered pairs with \lVert\bm{p}_{i}-\bm{p}_{j}\rVert\leq c_{0}/N. For d>0, let f_{{\rm p},d}(\bm{u}_{\rm d}) be the average of f_{\rm p} over the disk of radius d about \bm{u}_{\rm d}, so that f_{{\rm p},d}\leq f_{\max} and \Pr[\lVert\bm{p}_{1}-\bm{p}_{2}\rVert\leq d]=\pi d^{2}\int f_{\rm p}f_{{\rm p},d}. By the Lebesgue differentiation theorem [61], f_{{\rm p},d}\to f_{\rm p} almost everywhere as d\to 0. Since f_{\rm p}f_{{\rm p},d}\leq f_{\max}f_{\rm p}, dominated convergence gives \int f_{\rm p}f_{{\rm p},d}\to I_{\rm p}>0. For N\geq N_{0}, therefore,
\frac{\pi c_{0}^{2}I_{\rm p}}{8}\leq\mathbb{E}N_{\mathrm{close}}\leq\binom{N}{2}\pi f_{\max}\frac{c_{0}^{2}}{N^{2}}\leq\frac{\pi f_{\max}c_{0}^{2}}{2}.Two distinct pairs are both close with probability at most (\pi f_{\max}c_{0}^{2}/N^{2})^{2}. For disjoint pairs this follows from independence, and for pairs that share a point it follows by conditioning on that point. There are fewer than N^{4}/4 ordered choices of two distinct pairs, so \mathbb{E}N_{\mathrm{close}}^{2}\leq\mathbb{E}N_{\mathrm{close}}+\frac{1}{4}\pi^{2}f_{\max}^{2}c_{0}^{4}. By the second-moment method, which is the Cauchy–Schwarz inequality, \Pr[N_{\mathrm{close}}>0]\geq(\mathbb{E}N_{\mathrm{close}})^{2}/\mathbb{E}N_{\mathrm{close}}^{2}. This is at least the fraction that multiplies \Phi(-1/\sqrt{2}) in Eq. A64.
Step 2. A close pair forces a positive error probability. We choose \{i,j\} as a closest pair of true projections, with the choice determined by the model. We reveal to the estimator the true correspondence of every other model point, together with the unordered pair of observations generated by \bm{p}_{i} and \bm{p}_{j}. Given the revealed labels, the two remaining assignments have equal prior probabilities. Under each assignment, the ordered pair of observations is Gaussian in \mathbb{R}^{4} with covariance s^{2}I_{4}. The two means are distinct almost surely and lie \sqrt{2}\,d_{\min} apart. With equal priors and a common isotropic covariance, the nearest-mean test is optimal. Projection onto the line through the means gives its error probability \Phi(-d_{\min}/(\sqrt{2}s)), which is at least \Phi(-1/\sqrt{2}) when d_{\min}\leq c_{0}/N\leq s, that is, on \{N_{\mathrm{close}}>0\}. An estimator without the revealed information cannot do better, so it errs with at least this probability on \{N_{\mathrm{close}}>0\}. Integrating over the model gives Eq. A64. The worst-case error over the true correspondence is at least the average. ∎
We combine the three preceding theorems for a fixed distribution and camera, using the constants of each. For 0<s^{2}\leq c_{1}/N^{2}, the probability that the least-squares correspondence is wrong is at most C_{\rm th}(N^{2}s^{2}+e^{-c_{\rm th}N}) for a bounded model by Theorem A5, and at most C_{\rm th}(N^{2}s^{2}+1/N) for Gaussian model points by Theorem A6. For s=0, the loss L equals L_{0}, which vanishes at the identity. When d_{\min}>0, which holds almost surely, every \sigma\neq\mathrm{id} has positive noiseless loss on \Omega_{\mathrm{sep}} for a bounded model (Lemma A15) and on \Omega_{\mathrm{sep},N} for Gaussian model points (proof of Theorem A6). The error probability is then at most C_{\rm des}e^{-c_{\rm th}N} or C_{\rm G}/N, respectively. Since the proof of Theorem A5 takes C_{\rm th}\geq C_{\rm des}, the bounded case gives the stated bound whenever Ns\leq\sqrt{c_{1}}. If Ns\to 0, then eventually s^{2}\leq c_{1}/N^{2}, and all these bounds tend to zero. If \limsup Ns>0, Theorem A7 applies along a subsequence in both models, so no estimator recovers a uniformly distributed correspondence with probability tending to one, even when the camera is known. If ties among minimizing correspondences are broken uniformly, relabeling the input relabels the output distribution in the same way. The error probability of least squares is then the same for every true correspondence, so it does not recover any fixed true correspondence with probability tending to one either. ∎
A.10 Outliers on the structure of the inliers
Moment matching models outliers as uniform. Real outliers often lie on the same structure as the inliers (Sec. 5), and we treat this case for the model points. Suppose that the outlier model points project with the same image distribution as the inliers. Including them then changes the feature average of the projections by at most 1/\sqrt{m} in root mean square, which is small when the number m of inliers is large. Sec. C.7 tests the method when outliers among the 2D points lie on the scene structure.
The assumption concerns the distribution of the projections in the image. Model points on the same physical surface need not have a common projected distribution, for example when visibility or sampling density differs between them.
Lemma A17 (Inliers & outliers from a common distribution).
We fix a measurable feature map \bm{\phi}:\mathbb{R}^{2}\to\mathbb{R}^{d_{\phi}} with \lVert\bm{\phi}(\bm{p})\rVert\leq 1 for every \bm{p}\in\mathbb{R}^{2}. We fix integers 1\leq m\leq N and draw the projections \bm{p}_{1},\dots,\bm{p}_{N} independently from one image distribution. We designate the first m projections as inliers, independently of their sampled positions. Then, in expectation over these samples,
\mathbb{E}\,\Bigl\lVert\frac{1}{N}\sum_{i\leq N}\bm{\phi}(\bm{p}_{i})-\frac{1}{m}\sum_{i\leq m}\bm{\phi}(\bm{p}_{i})\Bigr\rVert^{2}\leq\frac{1}{m}.We write N_{\mathrm{out}}=N-m for the number of outliers. When N_{\mathrm{out}}\geq 1, we define the inlier and outlier feature averages
\bar{\bm{\phi}}_{\mathrm{in}}=\frac{1}{m}\sum_{i\leq m}\bm{\phi}(\bm{p}_{i}),\qquad\bar{\bm{\phi}}_{\mathrm{out}}=\frac{1}{N_{\mathrm{out}}}\sum_{i>m}\bm{\phi}(\bm{p}_{i}).We write the difference in the lemma as a multiple of the difference between these two averages, which are independent and have the same expectation.
Step 1. Decomposition. If N_{\mathrm{out}}=0, the two averages in the lemma coincide. Otherwise, the average over all N points is (m\bar{\bm{\phi}}_{\mathrm{in}}+N_{\mathrm{out}}\bar{\bm{\phi}}_{\mathrm{out}})/N, so the difference in the lemma equals
\frac{1}{N}\sum_{i\leq N}\bm{\phi}(\bm{p}_{i})-\bar{\bm{\phi}}_{\mathrm{in}}=\frac{N_{\mathrm{out}}}{N}\bigl(\bar{\bm{\phi}}_{\mathrm{out}}-\bar{\bm{\phi}}_{\mathrm{in}}\bigr).Step 2. Two independent averages. We put \bm{\mu}=\mathbb{E}\,\bm{\phi}(\bm{p}_{1}) and v=\mathbb{E}\,\lVert\bm{\phi}(\bm{p}_{1})-\bm{\mu}\rVert^{2}\leq\mathbb{E}\,\lVert\bm{\phi}(\bm{p}_{1})\rVert^{2}\leq 1. The two averages use disjoint sets of independent points, so they are independent and both have expectation \bm{\mu}. The mean squares of their deviations from \bm{\mu} are v/m and v/N_{\mathrm{out}}. The cross term vanishes by independence, so
\mathbb{E}\,\lVert\bar{\bm{\phi}}_{\mathrm{out}}-\bar{\bm{\phi}}_{\mathrm{in}}\rVert^{2}=v\Bigl(\frac{1}{m}+\frac{1}{N_{\mathrm{out}}}\Bigr)\leq\frac{N}{m\,N_{\mathrm{out}}}.Step 3. Conclusion. Multiplying by (N_{\mathrm{out}}/N)^{2} gives the exact mean square v\,N_{\mathrm{out}}/(N\,m)\leq N_{\mathrm{out}}/(N\,m)\leq 1/m. ∎
Outliers from another distribution. Without the common distribution, Eq. A68 and \lVert\bm{\phi}\rVert\leq 1 give the deterministic bound 2N_{\mathrm{out}}/N, as in Lemma A6. For a fixed fraction N_{\mathrm{out}}/N of outliers, this bound does not decrease as the number of points grows. Suppose that the projections are independent, with the inliers drawn from one distribution with feature mean \bm{\mu} and the outliers from another with feature mean \bm{\mu}_{\mathrm{out}}. The computation of Steps 2 and 3 then shows that the difference in the lemma lies within 1/\sqrt{m} of (N_{\mathrm{out}}/N)(\bm{\mu}_{\mathrm{out}}-\bm{\mu}) in root mean square. For a fixed outlier fraction and \bm{\mu}_{\mathrm{out}}\neq\bm{\mu}, this vector is nonzero and does not change as the point sets grow. Differences in visibility or sampling density between the inlier and the outlier model points can produce this case, even when the outliers lie on the same structure as the inliers.
A.11 Camera initialization
Camera pose can be estimated by aligning point distributions [6]. We initialize the camera position and orientation from observations \mathcal{U}, a 3D model \mathcal{Y} and known intrinsics K. Model points outside the observed view may have no image counterparts. We search for poses whose projections concentrate near the observations and select the model points that project into the observed image region. These points form the model for refining the pose by expectation–maximization (EM) and for the alignment check.
Camera centers and orientations. We parameterize a pose by its rotation R and camera center \bm{c}, with \bm{t}=-R\bm{c}. We form a box from the 1st and 99th percentiles of the model coordinates along the principal axes of the model. The diagonal of this box defines the scene extent, and we enlarge the box by half of each side length on both sides. Three full grids cover the enlarged box with maximum cell side lengths of 20%, 10% and 5% of the scene extent. Along a box axis of length L_{k}, a level with cell-size limit \Delta_{\rm c} has \lceil L_{k}/\Delta_{\rm c}\rceil intervals of equal length. We test the center of every resulting 3D cell. At each center, we test 11,520 rotations, using 640 viewing directions distributed over the sphere and 18 roll angles separated by 20^{\circ}. The box bounds the initial grid, but local refinement can move the center beyond it.
Projection densities. The calibrated observation \bm{u}_{{\rm cal},i} consists of the first two coordinates of K^{-1}(\bm{u}_{i}^{\top},1)^{\top}. At a pose \xi=(R,\bm{t}), let \bm{p}_{{\rm cal},j}(\xi) be the first two coordinates of R(\bm{y}_{j}-\bm{c}) divided by its depth. We use a narrow and a broad Gaussian bandwidth 0<\tau_{\rm n}<\tau_{\rm b}. Let \mathcal{J}_{\rm cam}(\xi) contain the indices of model points at positive depth whose projections lie in the bounding rectangle of the calibrated observations, extended by 4.25\tau_{\rm b} on each side. For a bandwidth \tau>0, the smoothed projection density is
f_{\tau}(\bm{z};\xi)=\sum_{j\in\mathcal{J}_{\rm cam}(\xi)}\frac{\exp\!\big(-\lVert\bm{z}-\bm{p}_{{\rm cal},j}(\xi)\rVert^{2}/(2\tau^{2})\big)}{2\pi\tau^{2}}.The density ratio at observation i is
q_{{\rm s},i}(\xi)=\frac{f_{\tau_{\rm n}}(\bm{u}_{{\rm cal},i};\xi)}{f_{\tau_{\rm b}}(\bm{u}_{{\rm cal},i};\xi)+\varepsilon_{\rm cam}},where \varepsilon_{\rm cam}>0 prevents division by zero. Each Gaussian kernel has unit integral, so the ratio compares concentration at an observation with concentration in its neighborhood. We jointly vary the rotation and camera center to minimize
\mathcal{L}_{\rm cam}(\xi)=-\frac{1}{n}\sum_{i=1}^{n}\log\big(1-\alpha+\alpha q_{{\rm s},i}(\xi)\big),with fixed \alpha=0.1.
Numerical evaluation. We approximate the densities by bilinear rasterization, normalized Gaussian convolution and bilinear evaluation at the observations. The raster stores projected counts without division by their total, and we add \varepsilon_{\rm cam}=10^{-12} to the broad density in raster-count units. At each smoothing stage, the raster covers the extended rectangle that defines \mathcal{J}_{\rm cam}. We discard poses with fewer than eight projected points contributing to the raster. The coarse stage evaluates a fixed random sample of at most 65,536 model points, and the medium and fine stages evaluate one of at most 262,144.
Local refinement. At each center, we keep up to eight of the 64 rotations of lowest coarse objective, at pairwise angles above 20^{\circ}. We refine the kept candidates of a level in order of increasing objective, at most 2,048, 4,096 and 8,192 of them at the three full grids and 2,048 at each further level, in batches of 256. Refinement uses the quasi-Newton method of Broyden, Fletcher, Goldfarb and Shanno (BFGS) [57], jointly updating the rotation and camera center through three smoothing stages. The coarse, medium and fine stages use narrow widths \tau_{\rm n}=0.04, 0.015 and 0.00375 and broad widths \tau_{\rm b}=0.16, 0.08 and 0.08 on rasters of 128\times 128, 256\times 256 and 1{,}024\times 1{,}024, respectively. They run 15, 20 and 20 iterations, and the fine stage refines the 32 candidates of a batch with the lowest medium objective. These widths are in calibrated image coordinates, while the center grid uses model-coordinate units scaled by the scene extent.
Three-point correction. For the four candidates of a batch with the lowest fine objective, we pair every observation with its nearest projected model point in the observed image region. We take the 24 closest pairs with distinct model points and solve the three-point problem [39] for every triple of them. We rank the solutions by the medium objective and evaluate the best eight by the fine objective. The best of these replaces the candidate when it lowers the fine objective.
Refinement by EM. The observed image region is the rectangle spanned by the 0.5th and 99.5th percentiles of the calibrated observations, enlarged by 5% of each side length on both sides. Each candidate selects the model points at positive depth whose projections lie inside this region. At most 262,144 of these points, drawn at random, form the model for EM and the alignment check, and at least eight are required. EM in its form with outliers then refines the pose twice, from noise levels of 0.03 and then 0.01 in calibrated image coordinates, each time with the CPU refinement of Tab. A3, before the alignment check of Sec. B.1.
Acceptance and finer grids. After EM, we accept a pose when it passes the alignment check and at least \max\{8,0.3\min(n,N)\} observations are matched, where N counts all model points of the scene. A pose with this many matches is also accepted when the fraction of observations within 10^{-3} of a projected model point in the observed image region, in calibrated image coordinates, exceeds by at least 0.2 its largest value at 32 random poses. These random poses have centers drawn uniformly from the enlarged box and rotations drawn from the rotation grid. The search stops at the first accepted pose and otherwise moves to the next candidate. If no pose is accepted after the three full grids, up to three further levels halve the cell size but subdivide only the 512 cells with the best scan scores. If all levels are used, the search returns the pose with the most matched 2D points and reports that it was not accepted.
A.12 Coverage of the camera-center grid
Camera search supplies the initial poses that EM refines (Sec. A.11). It places candidate camera centers at the centers of a grid of cells in a box around the 3D model. We show how fine the grid must be for some candidate to lie within a given distance of the true camera center, and how many candidates this requires.
Lemma A18 (Coverage of the camera-center grid).
Let \Delta_{\mathrm{c}}>0, and for k=1,2,3 let a_{k}\in\mathbb{R} and L_{k}>0. We divide side k of the box \prod_{k=1}^{3}[a_{k},a_{k}+L_{k}] into N_{k}=\lceil L_{k}/\Delta_{\mathrm{c}}\rceil intervals of equal length L_{k}/N_{k}\leq\Delta_{\mathrm{c}}, and the products of these intervals form the cells. Then every point of the box is within \sqrt{3}\,\Delta_{\mathrm{c}}/2 of a cell center, and the number of centers is
N_{1}N_{2}N_{3}\leq\prod_{k=1}^{3}\Bigl(\frac{L_{k}}{\Delta_{\mathrm{c}}}+1\Bigr).Since L_{k}>0 and \Delta_{\mathrm{c}}>0, every N_{k} is positive. The N_{k} intervals along side k have length L_{k}/N_{k} and midpoints a_{k}+(i+\tfrac{1}{2})L_{k}/N_{k} for 0\leq i<N_{k}. A cell center consists of one midpoint per coordinate, so we can bound the distance to the nearest center one coordinate at a time.
Step 1. One coordinate. Let \bm{c} be a point of the box. Its coordinate c_{k} lies in one of the intervals along side k, within half the interval length of the midpoint of that interval. Since N_{k}\geq L_{k}/\Delta_{\mathrm{c}}, the interval length is at most \Delta_{\mathrm{c}}.
Step 2. Three coordinates. Choosing such a midpoint in each coordinate gives a grid center \bm{c}_{\mathrm{grid}} with \lVert\bm{c}-\bm{c}_{\mathrm{grid}}\rVert^{2}=\sum_{k}(c_{k}-c_{\mathrm{grid},k})^{2}\leq 3\Delta_{\mathrm{c}}^{2}/4.
Step 3. Count. The centers are the N_{1}N_{2}N_{3} triples of midpoints, and N_{k}<L_{k}/\Delta_{\mathrm{c}}+1 by the definition of the ceiling. ∎
Let r_{\rm c}>0, and let the viewing distance d_{\rm v} be the median depth of the model points observed in the image. Suppose that the true camera center \bm{c}^{\star} lies in the box. Suppose also that the rotation grid contains a rotation R_{0} such that refinement converges to the true pose from the rotation R_{0} together with every camera center within distance r_{\rm c}d_{\rm v} of \bm{c}^{\star}. By Lemma A18, the choice \Delta_{\mathrm{c}}=2r_{\rm c}d_{\rm v}/\sqrt{3} places a grid center within this distance, so refinement from this center and R_{0} converges to the true pose. Whether the search refines this candidate also depends on its ranking. Sec. C.6 uses this choice of \Delta_{\mathrm{c}} to bound the cost of the search.
Appendix B Implementation details
B.1 Search, refinement & acceptance
Hardware. The implementation requires one Intel Xeon (Cascade Lake) central processing unit (CPU), 128 GB of random-access memory (RAM) and one RTX 4090 graphics processing unit (GPU).
This appendix details the four steps of Sec. 4.2 and then the complete search of Algorithm 2, with its settings and complexity. Steps 1 and 2 work in calibrated image coordinates, and Steps 3 and 4 measure residuals, distances and noise in pixels. The solver also takes as input whether outliers may be present. This choice selects one of two searches, each organized in stages. In a GPU stage, the GPU generates initial camera poses and fits them by moment matching. It then runs EM on a batch of candidates, and the CPU reruns EM on at most three of them. Without outliers, a CPU search follows the GPU stages if none of their fits is accepted. Sec. B.2 adapts the steps to edge observations.
Camera initialization. When the observations cover an unknown part of a scene reconstruction, Step 1 searches over camera centers and orientations for the initial poses. Each candidate pose selects the model points that project into the observed image region, and these points form the model for Steps 3 and 4; further details in Sec. A.11.
Monomial features. On outlier-free inputs, the monomial feature map is \bm{\phi}_{4}\circ h, where h is the fixed image normalization of Sec. 4.1. For a point \bm{z}=(z_{1},z_{2}), the monomial vector lists the fourteen monomials of degrees one to four,
\displaystyle\bm{\phi}_{4}(\bm{z})=\big( \\ \displaystyle z_{1},\,z_{2},\,z_{1}^{2},\,z_{1}z_{2},\,z_{2}^{2},\,z_{1}^{3},\,z_{1}^{2}z_{2},\,z_{1}z_{2}^{2},\,z_{2}^{3}, \\ \displaystyle z_{1}^{4},\,z_{1}^{3}z_{2},\,z_{1}^{2}z_{2}^{2},\,z_{1}z_{2}^{3},\,z_{2}^{4}\big),so its average over a point set contains the fourteen distinct entries of the moments \mathcal{M}_{1} to \mathcal{M}_{4} of Eq. A1. The averages over the observations and over the projections at a pose \xi are
\bm{\mu}_{\mathcal{U}}=\frac{1}{n}\sum_{i=1}^{n}\bm{\phi}_{4}(h(\bm{u}_{i})),\kern 5.0pt\bm{\mu}_{\mathcal{Y}}(\xi)=\frac{1}{N}\sum_{j=1}^{N}\bm{\phi}_{4}(h(\bm{p}_{j}(\xi))),and their squared distance is \mathcal{L}_{4} of Definition 1. If all observations coincide, their root-mean-square radius is zero, and we set r_{\rm cal}=1 in h.
Fourier features with outliers. With outliers, a few distant points can dominate the fourth-order moments, so moment matching uses bounded Fourier features. Let the bounding rectangle D_{\rm F}\subset\mathbb{R}^{2} of the calibrated observations have positive area, midpoint \bm{b}_{F} and larger half-width q_{F}. We evaluate the features at the box coordinates \bm{z}=(\bm{u}_{\mathrm{cal}}-\bm{b}_{F})/q_{F}, in which D_{\rm F} becomes a rectangle with half-widths \bm{h}_{F}=(h_{F,1},h_{F,2}), those of D_{\rm F} divided by q_{F}. Each feature is multiplied by the spatial taper W_{F}(\bm{z})=W_{F,1}(z_{1})W_{F,2}(z_{2}). With \operatorname{Clip}(t)=\min\{1,\max\{0,t\}\}, padding \delta_{F} and taper width \tau_{F}>0, each factor is
W_{F,r}(t)=\operatorname{Clip}\!\left(\frac{t+h_{F,r}+\delta_{F}}{\tau_{F}}\right)\!\operatorname{Clip}\!\left(\frac{h_{F,r}+\delta_{F}-t}{\tau_{F}}\right).Along each axis, W_{F,r} vanishes outside the padded interval [-h_{F,r}-\delta_{F},\,h_{F,r}+\delta_{F}] and rises linearly over a distance \tau_{F} from each of its ends. Projections far outside D_{\rm F} therefore contribute nothing, and the linear rise keeps each feature continuous as a projection crosses the ends of the interval.
For a cutoff K_{F}, the frequency set \mathrm{F} contains the vectors \bm{k}\in\frac{\pi}{2}\mathbb{Z}^{2} with \lVert\bm{k}\rVert\leq\frac{\pi}{2}K_{F} whose first coordinate is positive, or zero with a positive second coordinate. The set thus excludes \bm{k}=0, and no frequency appears together with its negative. Each frequency contributes the cosine and sine pair a_{\bm{k}}W_{F}(\bm{z})\big(\cos(\bm{k}^{\top}\bm{z}),\sin(\bm{k}^{\top}\bm{z})\big). The amplitude a_{\bm{k}}=\exp(-\zeta_{F}^{2}\lVert\bm{k}\rVert^{2}/2) with spectral width \zeta_{F}>0 damps high frequencies. The concatenated pairs form a vector of norm at most B=(\sum_{\bm{k}}a_{\bm{k}}^{2})^{1/2}. Evaluating this vector at the box coordinates of an image point \bm{u} and dividing it by B gives the feature map \bm{\phi}_{F}(\bm{u}), with \lVert\bm{\phi}_{F}\rVert\leq 1 as Lemmas A17 and A6 require. The division scales \mathcal{L}_{F} by the positive constant B^{-2}, so it changes neither the minimizing poses at each frequency cutoff nor the estimate \hat{\eta} below.
The Fourier feature averages of Definition 1 are \bm{\mu}_{\mathcal{U},F}=\frac{1}{n}\sum_{i}\bm{\phi}_{F}(\bm{u}_{i}) and \bm{\mu}_{\mathcal{Y},F}(\xi)=\frac{1}{N}\sum_{j}\bm{\phi}_{F}(\bm{p}_{j}(\xi)). In the second average, a model point at nonpositive depth contributes a zero vector but still counts in the denominator N. The outlier model places uniform image outliers on D_{\rm F} with density 1/|D_{\rm F}| and model outliers on the bounding box \mathcal{B}\subset\mathbb{R}^{3} of the model points with density 1/\operatorname{vol}(\mathcal{B}). The box must have positive volume. We compute the image average \bm{\mu}_{\mathcal{U},0} once by midpoint quadrature on D_{\rm F}. The image of a uniform distribution on \mathcal{B} depends on the pose and is generally not uniform, so we recompute \bm{\mu}_{\mathcal{Y},0}(\xi) at each pose from the projections of a midpoint lattice of \mathcal{B}. Lattice points at nonpositive depth also contribute zero. Lemma A6 gives the identity behind Eq. 2. When the inlier observations equal their projections and both point sets contain the same fraction \eta of uniform outliers, the expected feature averages at the true pose \xi differ by \eta(\bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}(\xi)). Noise and unequal outlier fractions add a further residual at the true pose. EM then refines the pose from the individual observations and re-estimates their outlier fraction.
Camera initialization and moment matching. On the point-set benchmarks, Step 1 places initial cameras at the orientations of a rotation grid, with translations from the centroids and spreads as described below, and scores them by \mathcal{L}_{F} at the lowest cutoff. Whole-scene queries use the camera search of Sec. A.11. Step 2 proceeds as in Sec. 4.2. Moment matching minimizes \mathcal{L}_{F} of Definition 1 with outliers and its special case \mathcal{L}_{4} on complete inputs. To initialize the translation at a grid rotation, we match the projected centroid and root-mean-square radius to those of the observations, in closed form under scaled orthography [29] and then by Gauss–Newton [57] under perspective, keeping every model point in front of the camera. Scaled orthography provides these starting values, and all objectives and refinements use the pinhole projection of Sec. 3. Tab. A3 gives the grid sizes, the numbers of retained poses and their minimum separations. With outliers, we set the outlier fraction at each pose to the least-squares value
\displaystyle\hat{\eta}(\xi) \\ \displaystyle=\frac{\langle\bm{d},\bm{d}_{0}\rangle}{\lVert\bm{d}_{0}\rVert^{2}}, \\ \displaystyle\bm{d} \\ \displaystyle=\bm{\mu}_{\mathcal{U},F}-\bm{\mu}_{\mathcal{Y},F}(\xi), \\ \displaystyle\bm{d}_{0} \\ \displaystyle=\bm{\mu}_{\mathcal{U},0}-\bm{\mu}_{\mathcal{Y},0}(\xi),clipped to [0,0.75]. We score each pose by the residual \lVert\bm{d}-\hat{\eta}\bm{d}_{0}\rVert^{2} that remains after subtracting the estimated outlier contribution. Uniform outliers shift the centroids and root-mean-square radii from which we solve for the translation at a grid rotation. Before solving, we therefore subtract the expected contribution of a fraction \eta_{0} of uniform outliers on D_{\rm F} from the moments of the observations. We make the same correction to the moments of the model points using the midpoint lattice of \mathcal{B}. Uniform outliers fill every cell of a 5\times 5 grid on D_{\rm F}, so the emptiest cells contain mainly outliers. We set \eta_{0} to 25/n times the mean count of the four emptiest cells, clipped to [0,0.75]. If the fitted fraction at the best pose differs from \eta_{0} by more than 0.05, we repeat the search from that fraction. The fits then proceed through increasing frequency cutoffs K_{F}. If no fit is accepted, the search with outliers repeats this fitting from the further starting fractions of Tab. A3. It finally obtains further camera poses from the rotation grid, optimizes their features and refines them by EM.
Affine initial poses. On outlier-free inputs, the CPU search begins from the affine initial poses of Theorem A1. We write \mathcal{U}_{\mathrm{cal}}=\{\bm{u}_{\mathrm{cal},i}\} for the calibrated observations, with mean \bar{\bm{u}}_{\mathrm{cal}} and covariance \Sigma_{\mathcal{U}_{\mathrm{cal}}}. The model points have mean \bar{\bm{y}} and covariance \Sigma_{\mathcal{Y}}. When both covariances are positive definite, the normalized points are \tilde{\bm{u}}_{i}=\Sigma_{\mathcal{U}_{\mathrm{cal}}}^{-1/2}(\bm{u}_{\mathrm{cal},i}-\bar{\bm{u}}_{\mathrm{cal}}) and \tilde{\bm{y}}_{j}=\Sigma_{\mathcal{Y}}^{-1/2}(\bm{y}_{j}-\bar{\bm{y}}). For complete noiseless affine projections, they are related by an orientation O\in\mathcal{V} (Lemma A3). We identify a normalized point \tilde{\bm{u}}=(\tilde{u}_{1},\tilde{u}_{2}) with the complex number w=\tilde{u}_{1}+\mathrm{i}\tilde{u}_{2}. For N_{c}>0 complex numbers w_{1},\ldots,w_{N_{c}} and integers a\geq b\geq 0, the complex moments are c_{a,b}=N_{c}^{-1}\sum_{i=1}^{N_{c}}|w_{i}|^{2b}w_{i}^{a-b}.
We fit nine real values, the real and imaginary parts of c_{3,0} and c_{2,1} and of c_{4,0} and c_{3,1}, together with the real value c_{2,2}, the average of |w|^{4}. These values are invertible linear combinations of the distinct entries (\bm{m}_{3},\bm{m}_{4}) of \mathcal{M}_{3} and \mathcal{M}_{4}, so matching them matches the cubic and quartic moments of Theorem A1. Starting from a grid of orientations, we fit the values of the projected normalized model O\tilde{\mathcal{Y}} to those of the normalized observations by batched Levenberg–Marquardt refinement [57]. We rank the resulting orientations by their residuals. Undoing the normalization converts an orientation O into the affine camera
A=\Sigma_{\mathcal{U}_{\mathrm{cal}}}^{1/2}O\Sigma_{\mathcal{Y}}^{-1/2},\qquad\bm{b}=\bar{\bm{u}}_{\mathrm{cal}}-A\bar{\bm{y}}.The thin singular-value decomposition of A is A=U_{A}\operatorname{diag}(\kappa_{1},\kappa_{2})V_{A}^{\top}, where U_{A}\in\mathbb{R}^{2\times 2} and V_{A}\in\mathbb{R}^{3\times 2} have orthonormal columns and \kappa_{1}\geq\kappa_{2}>0. We set O_{0}=U_{A}V_{A}^{\top} and \bar{\kappa}=(\kappa_{1}+\kappa_{2})/2. The initial rotation has O_{0} as its first two rows and their cross product as its third, and the initial translation is \bm{t}_{0}=(b_{1},b_{2},1)^{\top}/\bar{\kappa}. From this initial pose, we fit the six pose parameters to \mathcal{L}_{4}, with the same normalization h for the observations and the projections.
The fit weights the nine real values equally, whereas Theorem A1 measures moment differences in the norm of the full symmetric tensors. For two normalized 2D point sets, the differences of their tensors and the differences \Delta c_{a,b} of their complex moments are related by
\displaystyle\lVert\Delta\mathcal{M}_{3}\rVert^{2} \\ \displaystyle=\tfrac{1}{4}|\Delta c_{3,0}|^{2}+\tfrac{3}{4}|\Delta c_{2,1}|^{2}, \\ \displaystyle\lVert\Delta\mathcal{M}_{4}\rVert^{2} \\ \displaystyle=\tfrac{1}{8}|\Delta c_{4,0}|^{2}+\tfrac{1}{2}|\Delta c_{3,1}|^{2}+\tfrac{3}{8}(\Delta c_{2,2})^{2}.The residual for the nine fitted values and the tensor residual therefore vanish at the same poses but weight nonzero differences differently. The residual \hat{\epsilon}, the error \epsilon and the modulus \Gamma_{T} of Theorem A1 use the tensor norm.
With four model points and positive definite covariances, the normalized model is a regular tetrahedron. Each of its 24 orthogonal symmetries Q_{\rm s} maps it to itself, so the orientations O and OQ_{\rm s} give the same moments and the affine fit cannot distinguish them. For each symmetry, we therefore undo the normalization and fit a rigid pose under the pinhole projection model. The CPU search compares all of these poses within its limits, even if an earlier pose is accepted. For any number of model points, if none of the first affine initial poses is accepted, the CPU search continues on successively finer rotation grids. At each grid rotation, the translation is fitted to the centroid and spread of the observations as in Step 1, which keeps every model point in front of the camera. It then tries the remaining affine initial poses.
Planar point models. We treat a 3D point set as numerically planar when the smallest eigenvalue of its covariance is at most 10^{-8} times the largest. Normalization would then divide the coordinate along the plane normal by a near-zero standard deviation, so the affine fit uses plane coordinates. Let Q_{\rm p}\in\mathbb{R}^{3\times 2} have orthonormal columns along the two leading covariance directions, and let \bm{\nu} be their unit normal. We fit A_{2}\in\mathbb{R}^{2\times 2} from centered plane coordinates to the calibrated observations. Let \kappa_{1} be the largest singular value of A_{2}, and let \bm{a}_{\rm p}\in\mathbb{R}^{2} satisfy \bm{a}_{\rm p}\bm{a}_{\rm p}^{\top}=\kappa_{1}^{2}I_{2}-A_{2}A_{2}^{\top}. We complete A_{2} to the two matrices A=A_{2}Q_{\rm p}^{\top}\pm\bm{a}_{\rm p}\bm{\nu}^{\top}. Then AA^{\top}=\kappa_{1}^{2}I_{2}, so both completions are scaled-orthographic cameras. They project points that lie exactly in the plane identically, so we compare them by perspective fitting and refinement on the original 3D coordinates.
EM likelihood. At a pose \xi, let N_{+}(\xi) be the number of model points in front of the camera with finite image projections, \hat{s}>0 the current noise standard deviation per image coordinate in pixels, p_{d} the probability that each of these model points is observed, and n_{\rm cl} the expected number of outlier observations. Step 3 models each observation \bm{u} as an outlier, uniform on a rectangle D_{\rm im}, with probability \eta, or as a projection of one of these model points, chosen uniformly, with isotropic Gaussian noise:
p(\bm{u})=\frac{\eta}{|D_{\rm im}|}+\frac{1-\eta}{N_{+}}\sum_{j:\,\text{front}}\mathcal{N}\big(\bm{u};\bm{p}_{j}(\xi),\hat{s}^{2}I_{2}\big).The uniform component has support D_{\rm im}, the bounding rectangle of the observations with each side extended at both ends by its length divided by \sqrt{n}. A side of zero length is given the length 10^{-300} pixels, so the fixed area |D_{\rm im}| in square pixels is positive. EM evaluates only the projections near each observation. On the GPU, the neighborhood \mathcal{J}_{i} of observation i contains the projections within 4.5\hat{s}. Beyond this distance, the Gaussian weight k_{ij} defined below is less than e^{-10}. On the CPU, it contains the projections within 3\hat{s} and also the nearest projection, even when that projection lies outside this radius. For each pair in a neighborhood, let k_{ij}=\exp[-\lVert\bm{u}_{i}-\bm{p}_{j}(\xi)\rVert^{2}/(2\hat{s}^{2})]. We score poses by the log-likelihood of a Poisson point process, with each inner sum restricted to \mathcal{J}_{i},
\displaystyle\mathcal{L}_{\mathrm{EM}} \\ \displaystyle=\sum_{i=1}^{n}\log\!\left(\frac{n_{\rm cl}}{|D_{\rm im}|}+\frac{p_{d}}{2\pi\hat{s}^{2}}\sum_{j\in\mathcal{J}_{i}}k_{ij}\right) \\ \displaystyle-n_{\rm cl}-p_{d}N_{+}(\xi).The expected number of observations under this process is \Lambda_{\rm EM}=n_{\rm cl}+p_{d}N_{+}(\xi). Dividing the argument of the logarithm by \Lambda_{\rm EM} gives the mixture density of Eq. A77 with \eta=n_{\rm cl}/(n_{\rm cl}+p_{d}N_{+}), evaluated with the same neighborhoods \mathcal{J}_{i}. This division leaves the responsibilities unchanged. The Poisson score is therefore
\mathcal{L}_{\mathrm{EM}}=\sum_{i=1}^{n}\log p(\bm{u}_{i})+n\log\Lambda_{\rm EM}-\Lambda_{\rm EM}.The first term measures agreement with observation locations, and the remaining terms compare expected and observed counts. The term n\log\Lambda_{\rm EM}-\Lambda_{\rm EM} is constant for fixed \Lambda_{\rm EM}, but with outliers \Lambda_{\rm EM} can vary across poses.
Step 3: EM updates. The expectation step assigns to each pair in a neighborhood the posterior probability that observation i comes from projection j. This responsibility is
r_{ij}=\frac{k_{ij}}{2\pi\hat{s}^{2}n_{\rm cl}/(|D_{\rm im}|p_{d})+\sum_{j^{\prime}\in\mathcal{J}_{i}}k_{ij^{\prime}}}.Pairs outside the neighborhoods have zero responsibility, and the remainder 1-\sum_{j}r_{ij} is the responsibility of the uniform component. The sum n_{\rm m}=\sum_{ij}r_{ij} is the expected number of observations that come from projections. The maximization step updates the pose by a damped Gauss–Newton step on the weighted squared reprojection errors. With the cross-product matrix [\cdot]_{\times}, the projection Jacobians in the local pose coordinates \bm{\delta}=(\bm{\omega},\bm{t}) are J_{j}=\partial\operatorname{proj}(R\bm{y}_{j}+\bm{t})[-[R\bm{y}_{j}]_{\times}\ I_{3}], and they give
H_{\rm GN}=\sum_{ij}r_{ij}J_{j}^{\top}J_{j},\qquad\bm{g}_{\rm GN}=\sum_{ij}r_{ij}J_{j}^{\top}(\bm{p}_{j}-\bm{u}_{i}).With damping \lambda_{\rm GN}>0 and D_{\rm GN}=\operatorname{diag}(\operatorname{diag}H_{\rm GN}), a trial step \Delta\bm{\delta}=(\Delta\bm{\omega}^{\top},\Delta\bm{t}^{\top})^{\top} solves the damped system (H_{\rm GN}+\lambda_{\rm GN}D_{\rm GN})\Delta\bm{\delta}=-\bm{g}_{\rm GN}. It gives the rotation R^{\prime}=\exp([\Delta\bm{\omega}]_{\times})R and, separately, the translation \bm{t}^{\prime}=\bm{t}+\Delta\bm{t}. On both the GPU and the CPU, we accept a trial step only if it lowers this weighted cost at fixed responsibilities. Then, at the updated pose \xi^{\prime} and for n_{\rm m}>0, the noise estimate and, with outliers, p_{d} and n_{\rm cl} are
\displaystyle\hat{s}_{\rm EM}^{2} \\ \displaystyle=\frac{\sum_{ij}r_{ij}\lVert\bm{u}_{i}-\bm{p}_{j}(\xi^{\prime})\rVert^{2}}{2n_{\rm m}}, \\ \displaystyle p_{d}^{\prime} \\ \displaystyle=\min\{1,n_{\rm m}/N_{+}(\xi^{\prime})\}, \\ \displaystyle n_{\rm cl}^{\prime} \\ \displaystyle=n-n_{\rm m}.Without outliers, p_{d}=1 and n_{\rm cl}=10^{-3}n stay fixed, and this small expected outlier count keeps a single gross error from dominating the likelihood. EM starts from the noise level of Tab. A3 and anneals it. While \hat{s}_{\rm EM}<\hat{s}, each iteration sets \hat{s}^{\prime}=\min\{\hat{s}_{\rm EM},0.9\hat{s}\}. At the first iteration with \hat{s}_{\rm EM}\geq\hat{s}, annealing ends, and from then on \hat{s}^{\prime}=\hat{s}_{\rm EM}, bounded on the GPU by the noise ceiling of Tab. A3. When a pose is given without a noise level, such as an initial pose of the CPU search or an alternative of Step 4, EM starts from the root-mean-square distance of the observations to their nearest projections divided by \sqrt{2}, without annealing. EM has converged when annealing has ended, when |\hat{s}^{\prime}-\hat{s}|\leq 10^{-4}\hat{s}, and when no projection coordinate moves by more than 10^{-4}\hat{s} between iterations.
Valid fits & ranking. Step 4 considers only valid fits. A valid fit has finite parameters and, without outliers, positive depths for all model points. With outliers, every model point with a positive responsibility must stay in front of the camera, and at least three model points must lie in front of the camera with finite image projections. Before CPU refinement, we rank a stage’s valid fits, without outliers first by convergence and then by likelihood. With outliers, we rank them by likelihood alone and, if some of them have n_{\rm m}\geq\max\{8,0.3\min(n,N)\}, rank only those, because a fit that explains few observations provides little evidence about the pose. If no fit is accepted, the solver returns the valid fit of highest likelihood and reports that it was not accepted. It reports failure when no valid fit remains.
Association level. For the association level of Definition 2, we use \ell=\min\{8,N_{+}-1\} neighbors and measure the distances d_{i,k} in pixels. For observation i, the transformed distance ratio is E_{i}=-\ell\log(1-d_{i,1}^{2}/d_{i,\ell+1}^{2}). Lemma A7 proves that each E_{i} has the unit exponential distribution under the Poisson model of Definition 2. Without outliers, the association level is the lower tail
\displaystyle p_{\rm assoc} \\ \displaystyle=\Pr\Big[G_{\Gamma}\leq\sum_{i=1}^{n}E_{i}\Big], \\ \displaystyle G_{\Gamma} \\ \displaystyle\sim\operatorname{Gamma}(n-3,1).The reduced shape n-3 accounts for the six fitted pose parameters. With outliers, we count the observations with E_{i}\leq\pi/16. When the nearest projection is much closer than the (\ell+1)th, the ratio E_{i} is close to \pi d_{i,1}^{2} times the density of projections, so the condition places the nearest projection within about a quarter of the average spacing of the projections, the inverse square root of that density. Under the Poisson model, each observation meets it with probability 1-e^{-\pi/16}, and the association level is the upper tail
\displaystyle p_{\rm assoc} \\ \displaystyle=\Pr\big[N_{\rm B}\geq|\{i:E_{i}\leq\pi/16\}|\big], \\ \displaystyle N_{\rm B} \\ \displaystyle\sim\operatorname{Binomial}(n,1-e^{-\pi/16}).These reference distributions treat the E_{i} as independent. Neighboring observations share projections, and the pose is fitted to the same observations, so neither distribution is exact (Sec. A.5). We therefore use p_{\rm assoc} as a score and compare it with fixed thresholds far in the tail. A pose that EM has not yet refined has no parameters fitted to the distances. The CPU search and the comparison of alternative poses therefore test such a pose by p^{0}_{\rm assoc}, which uses the Gamma shape n without outliers and equals p_{\rm assoc} with outliers.
Step 4: alignment check. The empirical acceptance criteria of Algorithm 2 test whether the observations have projections of their own. When the noise is small compared with the spacing of the projections, an inlier observation at the true pose is typically much closer to its generating projection than to any other. The ratio d_{i,1}/d_{i,2} of the distances from observation i to its two nearest projections is then typically small, as is the association level. On outlier-free inputs, a further test asks whether the moment residual \mathcal{L}_{4} is no larger than noise of standard deviation \hat{s} would make it at the true pose. Let \bm{z}_{j}=h(\bm{p}_{j}) be the normalized projections, \partial\bm{\phi}_{4} the 14\times 2 Jacobian of \bm{\phi}_{4}, and f_{K}=\sqrt{K_{11}K_{22}} the geometric-mean focal length. With the radius r_{\rm cal} of Sec. 4.1, we approximate the first-order expected value of \mathcal{L}_{4} at the true pose by
V_{4}=\frac{\hat{s}^{2}}{f_{K}^{2}r_{\rm cal}^{2}N^{2}}\sum_{j=1}^{N}\lVert\partial\bm{\phi}_{4}(\bm{z}_{j})\rVert^{2}.When the focal lengths differ, this approximation uses one noise scale in place of the two calibrated-coordinate noise scales.
Without outliers, we accept a fit in either of two ways. The first requires convergence, at least 90% as many distinct nearest projections as distinct observation locations, and a median ratio d_{i,1}/d_{i,2} over the distinct observation locations of at most 0.25. Repeated observations at one location share their nearest projection, so both quantities count each location once. With fewer than thirty distinct observation locations, the first way requires all nearest projections to be distinct and replaces the median ratio by its 75th percentile with the same threshold. The second way accepts a pose whose correspondences are not resolved because the noise is comparable to the spacing of the projections, provided the observations lie far closer to the projections than chance would place them. It applies to converged fits with n\geq 48. It requires p_{\rm assoc}\leq 10^{-14}, relaxed to 10^{-12} for n\geq 200, together with \mathcal{L}_{4}\leq 9V_{4} unless p_{\rm assoc}\leq 10^{-30}.
With outliers, we accept a converged fit with n_{\rm m}\geq\max\{8,0.3\min(n,N)\} and p_{\rm assoc}\leq 10^{-9} if its median ratio d_{i,1}/d_{i,2} over the matched observations is at most 0.12. Matched observations are those to which the correspondences of Algorithm 2 assign a model point. For n\geq 500, where dense projections can prevent resolved correspondences, an association level of at most 10^{-100} allows a median ratio of at most 0.25. With or without outliers, when the standard deviation of the image noise is given as an optional input, acceptance also requires \hat{s} to be at most three times that value.
Step 4: pose ambiguity resolution. Step 4 compares the selected pose, the accepted fit of highest likelihood, with the alternative poses described in Sec. 4.2 and characterized by Lemma A8. We build the alternative poses from selected model points, which are all model points without outliers and, with outliers, those associated with matched observations. Each alternative keeps the centroid of the selected points fixed in camera coordinates.
The seven half-turn alternatives of Lemma A8 are the poses RH_{k} for k=1,2,3 and DRH_{k} for k=0,\dots,3, with H_{k} taken about the principal axes of the selected points. We form them when at least three points are selected and their principal axes can be computed. Each must have valid projections and p^{0}_{\rm assoc}\leq 10^{-3}. Without outliers, we omit alternatives whose rotations differ by less than 3^{\circ} from the accepted pose, fit the others to the image moments, and keep those whose residual is at most the larger of the accepted pose’s residual and 9V_{4}, with V_{4} evaluated at the alternative.
The planar alternative uses the plane through the centroid of the selected points whose normal is a covariance eigenvector of smallest eigenvalue. It reflects the selected points through this plane, and it reflects the camera coordinates through the plane that contains the centroid and is parallel to the image plane. The two reflections compose to the rotation DRH_{k}, with H_{k} the half-turn about that eigenvector, so this alternative starts from the half-turn alternative that Lemma A8(c) identifies for planar models. It differs from that alternative in its refinement. For a planar model, the accepted pose and its alternative give nearly the same image with the same correspondences, so we first fit this alternative under perspective projection to the correspondences of the accepted pose. We then refine it by EM only if its projections are valid, its rotation differs by more than 3^{\circ} from the accepted pose and p^{0}_{\rm assoc}\leq 10^{-3}.
After EM, we discard alternatives of either kind whose rotation differs by less than 3^{\circ} from any accepted pose. A remaining alternative replaces the selected pose only if it satisfies the acceptance criteria and has higher likelihood. The selected pose then gives the correspondences as in Algorithm 2.
Correspondences. At the returned pose, each matched observation corresponds to its nearest projection, and every other observation is an outlier. When several observations share a nearest projection, only the closest keeps it. With outliers, an accepted pose with at least six matches is refitted to these correspondences by least squares, and the refit replaces it if the matched points stay in front of the camera.
Search stages. Algorithm 2 expands Algorithm 1 with the search stages of the point-set benchmarks, the division of work between the GPU and the CPU, the early exits and the acceptance criteria, and Tab. A3 gives the settings of each stage. Inputs must have finite coordinates and meet the requirements of Sec. 3 and the point-count limits in the table. The table states noise levels in units of \rho_{\mathrm{rms}}, the root-mean-square distance of the observations from their centroid, in pixels. The search stops after the first stage that yields an accepted fit. A fit that is not accepted but has an association level at most 10^{-100} ends the GPU stages early, because its pose already places the observations far closer to the projections than chance would. Without outliers, the CPU search then follows. It defers initial poses with p^{0}_{\rm assoc}>10^{-3} and, if none of its other initial poses reaches EM, refines up to three deferred poses from a larger noise level.
- Inputs
- Outlier-free: n=N\geq 4. With outliers: \min(n,N)\geq 6, and EM needs at least three model points in front of the camera with finite image projections.
- Outlier-free search
- We use 800\times 48 rotations, refined to 3{,}200\times 96 in the second stage, and keep at most 1{,}024 or 2{,}048 initial poses separated by 6^{\circ}. Moment matching uses 30 iterations, keeping at most 96 or 192 fits separated by 1^{\circ}.
- Fourier moment matching
- 200\times 24 rotations scored with K_{F}=4 and \zeta_{F}=0.15, keeping 48 initial poses separated by 10^{\circ}. Five fitting stages use (K_{F},\zeta_{F})=(4,0.15), (8,0.08), (12,0.05), (16,0.04) and (20,0.03), and fit the best 48, 20, 20, 8 and 8 poses for 20, 12, 12, 10 and 10 iterations. Padding \delta_{F}=0.02 and taper width \tau_{F}=0.06. The image average \bm{\mu}_{\mathcal{U},0} uses 48\times 48 midpoints of D_{\rm F}, and \bm{\mu}_{\mathcal{Y},0} uses an 8\times 8\times 8 midpoint lattice of \mathcal{B}. The second stage starts from the outlier fractions 0, 0.15, 0.30, 0.45 and 0.60.
- Other poses with outliers
- 800\times 48 rotations. Translations come from centroids and spreads corrected for observed outlier fractions 0, 0.05, 0.1, 0.15, 0.2, 0.3, 0.4 and 0.5 and model outlier fractions 0, 0.2 and 0.4, keeping the best score per rotation, or from cross-correlation at seven scales from 0.5 to 2 times the ratio of the spreads. Each translation estimate keeps 2,048 initial poses separated by 6^{\circ}, and after 16 GPU EM iterations the 256 of highest likelihood continue.
- GPU EM
- At most 120 iterations. Without outliers, initial noise 0.02\rho_{\mathrm{rms}} and ceiling 0.05\rho_{\mathrm{rms}}. With outliers, initial noise and ceiling 0.1\rho_{\mathrm{rms}}. The batch stops when its fit of highest likelihood has converged, counting with outliers only fits with n_{\rm m}\geq\max\{8,0.3\min(n,N)\}, and the other fits stop early. Fits whose estimated noise reaches 0.999 times the ceiling have not found the observations and do not go to CPU refinement.
- CPU refinement
- We refine at most three candidates per stage, selected by the ranking rules of Step 3. Without outliers, fits stopped early receive at most 60 CPU EM iterations, and converged fits or fits at the iteration limit go to the acceptance criteria without further EM. With outliers, we first run 30 CPU EM iterations. If the fit has not converged and its association level is at most 10^{-3}, we run at most 60 further iterations.
- CPU affine search
- Planar point sets (covariance eigenvalue ratio at most 10^{-8}) use both completions of each distinct planar affine fit from the closed-form initialization and 720 initial rolls. Other point sets use 3{,}000 viewing directions and 72 rolls, and the nine real values of the complex moments. We initially try six fitted orientations and increase this to at most 48 if no estimate satisfies the acceptance criteria.
- CPU rigid search
- 200\times 24, 800\times 48 and 3{,}200\times 96 rotations, keeping 24, 64 and 128 initial poses separated by 10^{\circ}. A finer level requires its rotation count times N\leq 4\times 10^{7}. Other initial poses on the CPU use at most 600 EM iterations, and the final attempts initialized with a larger \hat{s} use 150 with initial noise 0.05\rho_{\mathrm{rms}}.
Complexity. For fixed numbers of features, candidates and iterations, computing the features costs O(n+N). A GPU EM iteration then costs O(n+N+N_{\rm pair}), where N_{\rm pair} counts the observation–projection pairs that the GPU examines in a grid of square image cells and can reach O(nN). Sorting the observations into these cells adds O(n\log n), and GPU storage is O(n+N) for fixed batch size and grid limits. CPU refinement takes O(N\log N+nN) time per iteration and can store O(nN) neighbor pairs. With fixed search and iteration limits, the solver therefore has worst-case time O(nN+(n+N)\log(n+N)) and space O(nN).
Measured time and memory. The complexity bounds above are worst cases. In Fig. A1, we measure time and memory on the rendered ETH3D scans of Sec. C.5, from 1,000 to one million model points, with every model point or a quarter of them observed. GPU memory grows linearly with the number of model points. From 64,000 points on, the GPU allocator memory grows by about 12.4 KiB per added point when every model point is observed and reaches 11.87 GiB at one million points. With a quarter observed, it holds about 115 KiB per model point, or 7.0 GiB at 64,000 points. CPU memory stays small, and the peak resident memory of the four one-million-point runs that recorded it is 0.81 to 1.11 GiB. Time grows faster than memory. Up to 16,000 points, the median time per frame grows about linearly with the number of points. From 64,000 to 256,000 points, it grows about as the square of that number. This growth is consistent with the term N_{\rm pair}, because denser projections in a fixed image place more of them in each grid cell around an observation. At one million points, the seven completed views take 689 to 8,735 s, with a median of 1,244 s.
Where the solver stops. No run of MomentPnP exhausted memory. Up to one million points, the only failure is one Courtyard view that returned no pose within its 1,800-second limit (Sec. C.5). The input size is therefore limited by time. Linear extrapolation of the measured memory places the limit of a 24 GiB GPU near two million points with every model point observed and near 200,000 model points with a quarter observed. The learned baselines, by contrast, run out of memory from 16,000 or 64,000 points (Tab. A17).
B.2 Edge observations
In the study of Sec. C.8, we reduce a red–green–blue (RGB) image and a computer-aided design (CAD) mesh to straight edges. The image edges are line segments found by a detector. In the mesh, an edge is a crease when the normals of its two adjacent faces differ by at least 30^{\circ} or when it has a single adjacent face. An edge is a contour at a candidate pose when one adjacent face is turned toward the camera and the other away from it. At a candidate pose, the model edges are the visible creases and contours. We extract the image edges and the model edges independently. The inputs thus contain no pairing between image and model edges, and the two edge sets may sample the same visible boundary at different densities.
The method uses these edges in two forms. For moment matching, it averages the features over image arclength, the length along the edges in the image, rather than over points. Perspective projection shortens the parts of a 3D edge that are farther from the camera, so a uniform average along the 3D edge would not match an average along the detected image edge. Lemma A19 shows that the two image-arclength feature averages agree at the true pose when the detected edges coincide with the visible projected edges. For Step 3, EM needs point observations. We place the 2D observations at equal image-arclength spacing along the detected image edges. At each initial pose, we place points at equal image-arclength spacing along the visible projected model edges and map each one back to its 3D point on the edge by inverting the change of parameter in the proof of Lemma A19. These 3D points form the model points and stay fixed during refinement. Because the two sets of samples are placed independently, an observation and a model point need not correspond to the same physical point, and EM treats them as two unordered point sets.
Lemma A19 (Feature agreement along projected edges).
For a pose \xi=(R,\bm{t}), let f_{\xi}(\bm{y})=\operatorname{proj}(R\bm{y}+\bm{t}) be the projection of a 3D point \bm{y}. At a candidate pose \xi, let \{(\bm{y}^{0}_{j},\bm{y}^{1}_{j})\}_{j=1}^{N_{E}} be a finite family of visible straight 3D edge pieces whose endpoints lie in front of the camera. Their image endpoints are \bm{p}^{0}_{j}=f_{\xi}(\bm{y}^{0}_{j}) and \bm{p}^{1}_{j}=f_{\xi}(\bm{y}^{1}_{j}), and their projected lengths are \lambda_{j}=\lVert\bm{p}^{1}_{j}-\bm{p}^{0}_{j}\rVert. For a fixed measurable image feature map \bm{\phi}:\mathbb{R}^{2}\to\mathbb{R}^{d_{\phi}} that is bounded on both edge sets, and for a positive total projected length, we define
\bm{\mu}_{E}(\xi)=\frac{\sum_{j}\lambda_{j}\int_{0}^{1}\bm{\phi}((1-r_{E})\bm{p}^{0}_{j}+r_{E}\bm{p}^{1}_{j})\,dr_{E}}{\sum_{j}\lambda_{j}}.Let \mathcal{C}_{E} be the union of the independently detected image edges, with positive finite arclength. With the arclength element d\lambda in the image, let \bm{\mu}_{C}=\int_{\mathcal{C}_{E}}\bm{\phi}\,d\lambda\big/\int_{\mathcal{C}_{E}}d\lambda be the average of \bm{\phi} over \mathcal{C}_{E}. If, at the true pose \xi^{\star}, the union of the visible projected edge pieces equals \mathcal{C}_{E} up to a set of zero arclength, and distinct projected pieces overlap only on sets of zero arclength, then \bm{\mu}_{E}(\xi^{\star})=\bm{\mu}_{C}. The equality holds for the fourteen raw monomials through degree four and for bounded Fourier features, without point assignments or shared edge identities.
We show that each term of the numerator in Eq. A81 is the arclength integral of \bm{\phi} over one projected piece. For one 3D segment \bm{y}(r_{E})=(1-r_{E})\bm{y}^{0}_{j}+r_{E}\bm{y}^{1}_{j}, we write x^{0}_{j3}=(R\bm{y}^{0}_{j}+\bm{t})_{3}>0 and x^{1}_{j3}=(R\bm{y}^{1}_{j}+\bm{t})_{3}>0 for the depths of its endpoints in camera coordinates. Its image is
\displaystyle f_{\xi}(\bm{y}(r_{E})) \\ \displaystyle=(1-\alpha_{E}(r_{E}))\bm{p}^{0}_{j}+\alpha_{E}(r_{E})\bm{p}^{1}_{j}, \\ \displaystyle\alpha_{E}(r_{E}) \\ \displaystyle=\frac{r_{E}x^{1}_{j3}}{(1-r_{E})x^{0}_{j3}+r_{E}x^{1}_{j3}},whose derivative is \alpha_{E}^{\prime}(r_{E})=x^{0}_{j3}x^{1}_{j3}/((1-r_{E})x^{0}_{j3}+r_{E}x^{1}_{j3})^{2}>0. The map \alpha_{E} is therefore an increasing bijection of [0,1], so the projected piece is the image segment from \bm{p}^{0}_{j} to \bm{p}^{1}_{j}, traversed once. Along this segment, the arclength element is \lambda_{j}\,d\alpha_{E}, and the arclength integral of \bm{\phi} over the piece is \lambda_{j}\int_{0}^{1}\bm{\phi}((1-\alpha_{E})\bm{p}^{0}_{j}+\alpha_{E}\bm{p}^{1}_{j})\,d\alpha_{E}, the jth term of the numerator. A piece of zero projected length contributes zero. Because distinct projected pieces overlap only on sets of zero arclength, the sum of these integrals counts each point of the projected union once, except on a set of zero arclength. At the true pose, the projected union is \mathcal{C}_{E}, so the numerator equals \int_{\mathcal{C}_{E}}\bm{\phi}\,d\lambda and the denominator equals the length of \mathcal{C}_{E}, which gives the equality. ∎
Detected edges in general differ from the projected ones. Lemma A20 bounds the effect of three departures. These are displacement by the detector, edges present in only one of the two sets, and quadrature error. The lemma then turns the resulting feature discrepancy into a bound on pose error near the true pose. A coupling makes the comparison precise without pairing edges. It is a joint distribution of a point on the true projected edges and a point on the observed image edges, each distributed uniformly with respect to image arclength.
Lemma A20 (Edge mismatch & local pose stability).
We couple the arclength distributions on the true projected edges and the observed image edges, using a joint distribution with these two marginals. We assume that the coupling places at least a fraction 0\leq\gamma_{E}\leq 1 of its mass on pairs at image distance at most \delta_{E}\geq 0. We let the fixed measurable feature map have norm bound B\geq 0 and Lipschitz constant \mathrm{Lip}(\bm{\phi})\geq 0 on a bounded image region containing the observed edges and the projected edges at all poses in a fixed neighborhood of \xi^{\star}. We let \hat{\bm{\mu}}_{E} and \hat{\bm{\mu}}_{C} be quadrature approximations of \bm{\mu}_{E} and \bm{\mu}_{C}, and we let \epsilon_{q} bound their combined image and model quadrature error throughout that neighborhood. The empirical feature discrepancy at the true pose then satisfies
\lVert\hat{\bm{\mu}}_{E}(\xi^{\star})-\hat{\bm{\mu}}_{C}\rVert\leq\epsilon_{E}=\gamma_{E}\mathrm{Lip}(\bm{\phi})\delta_{E}+2B(1-\gamma_{E})+\epsilon_{q}.For a pose chart \xi(\bm{\delta}) in fixed six-dimensional local coordinates, we define \bm{g}_{E}(\bm{\delta})=\bm{\mu}_{E}(\xi(\bm{\delta})). We assume that \bm{g}_{E} is continuously differentiable and that its Jacobian J^{\star}\in\mathbb{R}^{d_{\phi}\times 6} at the true pose coordinates \bm{\delta}^{\star} has full column rank, with least singular value \kappa_{J}>0. An estimate \hat{\bm{\delta}} sufficiently close to the true pose, with fitted residual \hat{\epsilon}_{E}=\lVert\hat{\bm{\mu}}_{E}(\xi(\hat{\bm{\delta}}))-\hat{\bm{\mu}}_{C}\rVert, satisfies
\lVert\hat{\bm{\delta}}-\bm{\delta}^{\star}\rVert\leq\frac{2(\hat{\epsilon}_{E}+\epsilon_{E})}{\kappa_{J}}.We first bound the difference of the exact averages through the coupling. On at least a fraction \gamma_{E} of the coupled mass, the two points lie within \delta_{E} of each other, so their features differ by at most \min(\mathrm{Lip}(\bm{\phi})\delta_{E},2B). On the remaining mass, the features differ by at most 2B. Since \min(\mathrm{Lip}(\bm{\phi})\delta_{E},2B)\leq 2B, a larger \gamma_{E} can only lower this bound. Integration over the coupling therefore bounds the difference of the exact averages by \epsilon_{\mathrm{law}}=\gamma_{E}\mathrm{Lip}(\bm{\phi})\delta_{E}+2B(1-\gamma_{E}). Adding the quadrature errors by the triangle inequality gives Eq. A82. At the estimate, the triangle inequality through \hat{\bm{\mu}}_{E}(\xi(\hat{\bm{\delta}})), then \hat{\bm{\mu}}_{C} and then \bm{\mu}_{C} gives \lVert\bm{g}_{E}(\hat{\bm{\delta}})-\bm{g}_{E}(\bm{\delta}^{\star})\rVert\leq\hat{\epsilon}_{E}+\epsilon_{q}+\epsilon_{\mathrm{law}}=\hat{\epsilon}_{E}+\epsilon_{E}.
We next show that \bm{g}_{E} separates poses near \bm{\delta}^{\star}. We write J(\bm{\delta}) for the Jacobian of \bm{g}_{E}, so J^{\star}=J(\bm{\delta}^{\star}). By continuity, J(\bm{\delta}) stays within \kappa_{J}/2 of J^{\star} in operator norm on some convex coordinate neighborhood of \bm{\delta}^{\star}. For \Delta\bm{\delta}=\bm{\delta}-\bm{\delta}^{\star}, the fundamental theorem of calculus gives
\bm{g}_{E}(\bm{\delta})-\bm{g}_{E}(\bm{\delta}^{\star})=J^{\star}\Delta\bm{\delta}+\int_{0}^{1}\bigl(J(\bm{\delta}^{\star}+\nu\Delta\bm{\delta})-J^{\star}\bigr)\Delta\bm{\delta}\,d\nu.The first term has norm at least \kappa_{J}\lVert\Delta\bm{\delta}\rVert, and the integral has norm at most (\kappa_{J}/2)\lVert\Delta\bm{\delta}\rVert. Thus \lVert\bm{g}_{E}(\bm{\delta})-\bm{g}_{E}(\bm{\delta}^{\star})\rVert\geq(\kappa_{J}/2)\lVert\Delta\bm{\delta}\rVert in this neighborhood. For an estimate in the neighborhood, combining this lower bound with the upper bound of the first part gives Eq. A83. ∎
The bound \epsilon_{E} separates the three departures. The fraction \gamma_{E} of arclength that the coupling pairs within \delta_{E} contributes at most \gamma_{E}\mathrm{Lip}(\bm{\phi})\delta_{E}. The remaining fraction 1-\gamma_{E}, which includes arclength present in only one of the two edge sets, contributes up to 2B(1-\gamma_{E}). Since \epsilon_{E}\geq 2B(1-\gamma_{E}), the bound is small only when nearly all arclength is shared. Eq. A83 converts the feature discrepancy into a pose error, and the factor 2/\kappa_{J} is large when the features respond weakly to some pose change. The bound is local and applies only to an estimate that the search has already brought near the true pose.
The following example shows that the full-column-rank condition of Lemma A20 holds for a simple set of edges. Consider the normalized calibration K=I_{3}, the true pose with R^{\star}=I_{3} and \bm{t}^{\star}=0, and the seven segments (x,a_{E},1) with -1\leq x\leq 1 and a_{E}=-3,\ldots,3. For nonnegative integers p and q, let m_{p,q} denote the image-arclength average of x^{p}y^{q}. The derivatives of (m_{0,1},m_{0,2},m_{0,3},m_{1,0},m_{1,1},m_{1,2}) in the local pose coordinates \bm{\delta}=(\omega_{x},\omega_{y},\omega_{z},t_{x},t_{y},t_{z}) of the EM updates are
J_{0}=\begin{pmatrix}-9&0&0&0&1&0\\
0&0&0&0&0&-8\\
-124&0&0&0&12&0\\
0&2&0&1&0&0\\
0&0&-11/3&0&0&0\\
0&32/3&0&4&0&0\end{pmatrix}.We obtain these entries by differentiating the projected endpoints and lengths and integrating, using \mathbb{E}x^{2}=1/3 along a segment and \mathbb{E}a_{E}^{2}=4 and \mathbb{E}a_{E}^{4}=28 over the segments. The determinant is \det J_{0}=11264/9\neq 0, and it stays nonzero under small endpoint perturbations because it is continuous in the endpoints. Sec. C.8 evaluates this edge variant on images and CAD models.
Appendix C Experiments
This appendix follows the order of Sec. 5. Sec. C.1 gives the benchmark inputs and the learned baselines, and each later subsection gives the protocol and full results of one study in the main experiments section.
C.1 Datasets & baselines
This subsection describes the inputs of the three benchmarks in Tab. 1 and how we run the learned baselines on them.
Benchmark inputs. For MegaDepth [46], ModelNet40 [79] and Data61 [56], we read the released per-frame 2D and 3D coordinates of the blind PnP benchmarks [5] and keep their original point selection. MegaDepth pairs 2D points with model points that COLMAP reconstructs by structure from motion (SfM). Its test frames contain 10 to 12,125 points. ModelNet40 samples 1,000 points uniformly from each CAD model, projects them with a virtual pinhole camera and perturbs the projections with Gaussian image noise. Data61 pairs panoramas with light detection and ranging (LiDAR) point sets, and we use its released frames of 1,000 points. We remove the repeated padding entries indicated by the released counts, leave all other coordinates unchanged and shuffle both point sets. Each test set supplies 1,000 random outlier-free frames and 300 frames with at most 2,000 inliers. To the latter, we add outliers drawn uniformly in the bounding box of each point set. We call these frames the comparison frames. The outlier ratio is the number of outliers added to each point set divided by its inlier count.
Learned baselines. We run Deep Blind PnP [48], BPnPNet [5] and GoMatch [82] with their released code and weights. BPnPNet returns three poses, from RANSAC on its predicted correspondences, from its declarative layer and after Levenberg–Marquardt (LM) refinement. On each dataset, we run BPnPNet checkpoints trained with the correspondence loss alone (L_{c}) and with the pose loss. The Deep Blind PnP release passes the 2,000 most probable matches to the P3P-RANSAC of OpenCV. We also evaluate posest, the pose-estimation library recommended in that release, which reproduces its reported MegaDepth median rotation error. The released variant with a fixed match count fails on frames with fewer than about 45 points, because these frames have fewer than 2,000 candidate pairs. Our top-n variants therefore pass the 1.5\min(n,N) most probable matches, up to 2,000. The variants marked +LM refine the RANSAC pose by LM on its inliers. For GoMatch, we apply its coordinate-only MegaDepth checkpoint to the input point sets without retrieved reference images. Tab. A6 lists every pose output that we evaluate, and Tab. 1 reports the most accurate one.
C.2 Benchmarks
This subsection completes the benchmark comparison of Tab. 1. It reports error quartiles and distributions, accuracy at every outlier ratio and for every pose output, runtimes, results on held-out frames, and examples.
Errors without outliers. Tab. A7 gives the quartiles of rotation error and of relative translation error on the outlier-free test sets, together with the percentage of frames within both 1^{\circ} and 1%. Fig. A2 plots the full rotation-error distribution on each test set, and Fig. A3(c) the distribution of relative translation error. A symmetric object can have a large rotation error at a correct alignment, so on ModelNet40 we also measure ADD-S [30]. It averages the distance from each model point under the estimated pose to the nearest model point under the reference pose. ADD-S is below 10% of the model diameter on 99.8% of all 2,466 outlier-free ModelNet40 test frames.
Outliers. Tab. A6 gives the accuracy of every evaluated pose output at each outlier ratio, at thresholds of 1^{\circ} and 5^{\circ}. Fig. A3(a) plots accuracy against the outlier ratio, and Fig. A3(b) the rotation-error distribution with as many outliers as inliers.
Runtime. Tab. A5 gives the median time per frame at each outlier ratio. Without outliers, GoMatch alone is faster than MomentPnP. With outliers, MomentPnP is the slowest of the four methods, at 0.2 to 7.1 s per frame. Fig. A4 plots accuracy against time, comparing methods that return a single pose with searches that improve their best pose until the time limit. Tab. A5 groups the outlier-free MegaDepth test frames by their number of points. In every group, 99.8 to 100% of frames are within 1^{\circ}. The median time grows from 17 ms for 30 to 99 points to 227 ms for 3,000 points or more, and it is 800 ms for the six frames with fewer than 30 points.
Held-out frames. We tuned MomentPnP on the benchmark test sets, so we also evaluate 1,000 frames per dataset from the training split not used for tuning. Tab. A8 gives the accuracy, acceptance outcomes and runtimes on these held-out frames and on the full test sets. On ModelNet40 with outliers, no held-out pose meets the acceptance criteria, so these rows score the most likely pose, which the solver returns without acceptance (Sec. B.1).
Examples. Fig. A5 shows MegaDepth and ModelNet40 frames, which have no photographs, for the learned methods, CFPE and MomentPnP. Fig. A6 shows one frame of each benchmark for P3P-RANSAC, SoftPOSIT, GOSMA, the learned methods and MomentPnP.
- MegaDepth [46]
- Deep Blind PnP
- 240
- 119
- 149
- 133
- No data
- BPnPNet
- 223
- 180
- 180
- 174
- No data
- GoMatch
- 21
- 28
- 29
- 39
- No data
- MomentPnP (ours)
- 31
- 206
- 259
- 394
- ModelNet40 [79]
- Deep Blind PnP
- 330
- 27
- 34
- 46
- No data
- BPnPNet
- 159
- 95
- 97
- 100
- No data
- GoMatch
- 36
- 44
- 64
- 97
- No data
- MomentPnP (ours)
- 56
- 3,035
- 4,350
- 7,110
- Data61 [56]
- Deep Blind PnP
- 289
- 128
- 128
- 137
- No data
- BPnPNet
- 159
- 114
- 108
- 117
- No data
- GoMatch
- 35
- 45
- 61
- 94
- No data
- MomentPnP (ours)
- 48
- 268
- 360
- 526
- BPnPNet [5]
- RANSAC
- 50.1
- 13.0
- 6.3
- 1.0
- 5.4
- 0.0
- 0.0
- 0.0
- 51.1
- 5.7
- 1.0
- 0.3
- declarative
- 19.2
- 0.0
- 0.0
- 0.3
- 1.9
- 0.3
- 0.0
- 0.0
- 9.6
- 1.3
- 1.7
- 0.3
- RANSAC+LM
- 53.4
- 16.0
- 7.0
- 1.7
- 6.0
- 0.0
- 0.0
- 0.0
- 55.4
- 6.0
- 1.0
- 0.7
- L_{c}, RANSAC
- 41.8
- 9.7
- 3.3
- 0.7
- 2.6
- 0.0
- 0.0
- 0.0
- 47.9
- 5.7
- 1.7
- 0.3
- L_{c}, declarative
- 11.4
- 0.0
- 1.0
- 0.3
- 1.6
- 0.0
- 0.0
- 0.0
- 8.7
- 1.0
- 0.7
- 0.3
- L_{c}, RANSAC+LM
- 44.8
- 12.0
- 5.3
- 1.3
- 3.1
- 0.0
- 0.0
- 0.0
- 52.4
- 6.3
- 1.7
- 0.3
- Deep Blind PnP [48]
- released
- 79.3
- 64.7
- 53.3
- 34.0
- 10.3
- 0.0
- 0.0
- 0.0
- 0.1
- 0.0
- 0.0
- 0.0
- released+LM (ours)
- 79.7
- 65.3
- 54.3
- 33.0
- 9.3
- 0.0
- 0.0
- 0.0
- 0.1
- 0.0
- 0.0
- 0.0
- top-n+LM (ours)
- 92.7
- 72.7
- 63.3
- 39.0
- 12.9
- 0.0
- 0.0
- 0.0
- 0.1
- 0.0
- 0.0
- 0.0
- posest
- 91.7
- 85.0
- 77.0
- 57.3
- 15.6
- 0.0
- 0.0
- 0.0
- 1.0
- 0.0
- 0.0
- 0.0
- posest top-n (ours)
- 96.8
- 86.3
- 76.0
- 59.0
- 15.6
- 0.0
- 0.0
- 0.0
- 1.8
- 0.0
- 0.0
- 0.0
- GoMatch [82]
- 86.0
- 78.3
- 78.3
- 62.3
- 0.1
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- MomentPnP (ours)
- 100.0
- 96.0
- 92.7
- 91.0
- 97.3
- 96.0
- 94.3
- 82.3
- 100.0
- 99.0
- 99.0
- 97.0
- Rotation error below 5^{\circ} (%)
- BPnPNet [5]
- RANSAC
- 75.5
- 40.3
- 27.7
- 18.0
- 35.3
- 2.0
- 0.3
- 0.7
- 72.7
- 35.3
- 24.7
- 13.7
- declarative
- 60.7
- 21.3
- 14.0
- 12.7
- 26.0
- 0.7
- 0.3
- 0.3
- 55.4
- 22.3
- 22.0
- 15.3
- RANSAC+LM
- 74.3
- 42.0
- 30.3
- 19.0
- 37.3
- 2.0
- 0.7
- 1.0
- 73.0
- 36.0
- 24.7
- 14.0
- L_{c}, RANSAC
- 69.2
- 40.0
- 27.0
- 15.3
- 22.9
- 1.7
- 0.3
- 0.3
- 70.2
- 37.0
- 26.0
- 15.0
- L_{c}, declarative
- 52.5
- 15.0
- 11.7
- 9.3
- 20.4
- 1.0
- 0.0
- 0.0
- 52.7
- 25.3
- 20.7
- 16.3
- L_{c}, RANSAC+LM
- 69.2
- 43.3
- 30.3
- 16.3
- 25.8
- 1.3
- 0.3
- 0.3
- 70.4
- 37.0
- 26.0
- 15.0
- Deep Blind PnP [48]
- released
- 90.3
- 84.7
- 72.0
- 58.3
- 58.4
- 8.0
- 1.3
- 1.3
- 1.2
- 1.0
- 0.3
- 0.0
- released+LM (ours)
- 90.0
- 84.7
- 72.0
- 58.7
- 59.2
- 7.3
- 1.3
- 1.3
- 1.2
- 1.0
- 0.3
- 0.0
- top-n+LM (ours)
- 96.8
- 88.3
- 80.3
- 61.3
- 59.8
- 6.7
- 1.3
- 1.3
- 1.4
- 0.7
- 0.3
- 0.0
- posest
- 94.9
- 91.3
- 85.3
- 71.0
- 61.4
- 6.7
- 1.7
- 1.0
- 2.7
- 1.0
- 0.0
- 0.3
- posest top-n (ours)
- 97.6
- 92.0
- 85.7
- 71.0
- 64.1
- 7.7
- 1.7
- 1.0
- 2.6
- 1.7
- 0.0
- 0.3
- GoMatch [82]
- 90.0
- 83.7
- 84.7
- 73.3
- 0.4
- 0.0
- 0.3
- 0.3
- 0.0
- 0.0
- 0.0
- 0.0
- MomentPnP (ours)
- 100.0
- 96.3
- 93.0
- 92.3
- 98.7
- 99.3
- 99.0
- 91.7
- 100.0
- 99.0
- 99.0
- 97.3
- MegaDepth [46]
- MomentPnP (ours)
- 0.000 / 0.009 / 0.031
- 0.005 / 0.013 / 0.035
- 99.0
- No data
- Deep Blind PnP (posest top-n)
- 0.018 / 0.045 / 0.096
- 0.065 / 0.155 / 0.398
- 89.4
- No data
- BPnPNet (RANSAC+LM)
- 0.277 / 0.853 / 5.530
- 1.571 / 5.402 / 26.087
- 16.9
- No data
- GoMatch (released)
- 0.059 / 0.136 / 0.348
- 0.228 / 0.590 / 1.880
- 62.0
- ModelNet40 [79]
- MomentPnP (ours)
- 0.101 / 0.155 / 0.250
- 0.046 / 0.096 / 0.171
- 96.5
- No data
- Deep Blind PnP (posest)
- 1.582 / 3.350 / 8.058
- 0.392 / 0.833 / 1.678
- 13.0
- No data
- BPnPNet (RANSAC+LM)
- 3.209 / 7.497 / 15.387
- 0.963 / 1.909 / 3.626
- 2.6
- No data
- GoMatch (released)
- 56.857 / 100.473 / 151.686
- 7.593 / 16.255 / 33.558
- 0.1
- Data61 [56]
- MomentPnP (ours)
- 0.084 / 0.092 / 0.101
- 0.075 / 0.183 / 0.282
- 100.0
- No data
- Deep Blind PnP (posest top-n)
- 104.450 / 129.940 / 157.006
- 212.138 / 347.411 / 617.287
- 0.9
- No data
- BPnPNet (RANSAC+LM)
- 0.288 / 0.761 / 6.275
- 0.861 / 2.903 / 20.331
- 27.8
- No data
- GoMatch (released)
- 117.717 / 143.316 / 163.898
- 161.679 / 268.018 / 468.110
- 0.0
1^{\circ}. EM-ICP uses 100 of the comparison frames per dataset, and the other methods the 1,000 outlier-free frames.1^{\circ} against the outlier ratio. (b) Percentage of frames below each rotation error, with as many outliers as inliers. (c) Percentage of outlier-free frames below each relative translation error. Vertical lines mark 1^{\circ} and 1%. EM-ICP uses 100 of the comparison frames per condition, and the other methods 300 frames with outliers and 1,000 without. CFPE appears in (b) and (c).- MegaDepth [46], test
- 0
- 10,795
- 99.9
- 100.0
- 10,788
- 0
- 7
- 0
- 31
- 58
- No data
- 1/4
- 10,795
- 96.8
- 97.4
- 9,559
- 1
- 921
- 7
- 219
- 597
- ModelNet40 [79], test
- 0
- 2,466
- 97.0
- 98.7
- 2,366
- 13
- 60
- 0
- 55
- 256
- Data61 [56], test
- 0
- 2,640
- 100.0
- 100.0
- 2,640
- 0
- 0
- 0
- 48
- 52
- No data
- 1/4
- 2,640
- 98.9
- 99.1
- 2,601
- 0
- 11
- 1
- 261
- 391
- MegaDepth, held-out
- 0
- 1,000
- 100.0
- 100.0
- 1,000
- 0
- 0
- 0
- 34
- 35
- No data
- 1/4
- 1,000
- 97.0
- 97.3
- 916
- 1
- 55
- 0
- 205
- 327
- No data
- 1/2
- 1,000
- 94.7
- 95.2
- 900
- 0
- 48
- 0
- 263
- 452
- No data
- 1
- 1,000
- 91.3
- 92.4
- 866
- 1
- 50
- 0
- 369
- 728
- ModelNet40, held-out
- 0
- 1,000
- 98.6
- 99.1
- 962
- 5
- 32
- 0
- 53
- 227
- No data
- 1/4
- 1,000
- 98.1
- 100.0
- 0
- 0
- 981
- 0
- 3,184
- 3,288
- No data
- 1/2
- 1,000
- 95.4
- 99.4
- 0
- 0
- 954
- 0
- 4,531
- 4,602
- No data
- 1
- 1,000
- 72.4
- 85.7
- 0
- 0
- 724
- 0
- 7,224
- 7,318
- Data61, held-out
- 0
- 1,000
- 100.0
- 100.0
- 1,000
- 0
- 0
- 0
- 48
- 55
- No data
- 1/4
- 1,000
- 96.6
- 97.7
- 891
- 0
- 75
- 2
- 294
- 619
- No data
- 1/2
- 1,000
- 94.7
- 96.3
- 866
- 0
- 81
- 1
- 388
- 1,006
- No data
- 1
- 1,000
- 91.4
- 94.1
- 830
- 0
- 86
- 0
- 536
- 1,685
1^{\circ} by a given time. EM-ICP, SoftPOSIT, P3P-RANSAC and GOSMA keep their best pose so far until the 30-second limit, and the curves score it at each time. For the other methods, a frame counts once a pose within 1^{\circ} is returned.C.3 Role of moment matching
This subsection gives the protocols and full results of the three comparisons in Sec. 5 that test what moment matching contributes to MomentPnP. They match moments of different orders before the same EM refinement, restart EM from random poses, and search globally over poses. The subsection ends with point sets smaller than those covered by Theorem 1.
- MegaDepth
- 100
- 0 / 68
- 0 / 57
- 53 / 70
- 59 / 70
- ModelNet40
- 100
- 0 / 39
- 2 / 26
- 56 / 78
- 54 / 66
- Data61
- 100
- 0 / 64
- 1 / 48
- 69 / 75
- 78 / 83
- Synthetic
- 30
- 0 / 12
- 0 / 15
- 27 / 27
- 24 / 25
Moment order. To isolate the effect of moment order, every variant starts from the same initial orientations for each input, uses the same search effort and fits translations from the centroid and spread of the 2D points. We use 100 outlier-free test frames from each benchmark and a separate sample of thirty independent synthetic models of 64 points. Their projections receive Gaussian image noise of standard deviation 0.000625 per calibrated coordinate. The moment variants match the averages of all five, nine or fourteen nonconstant monomials through degree two, three or four. All orders share one image normalization. Each moment variant ranks and refines poses by its own moment residual. Direct EM takes the initial poses in a fixed random order. All variants retain four poses with the same minimum angular separation, refine them with the same EM settings and select the final pose by likelihood. For the counts before EM, we estimate the noise and mixture parameters and select a pose by likelihood without updating it. Before EM, the third- and fourth-order variants bring 53 to 78 of the 100 poses on each benchmark within 1^{\circ} rotation error and 1% relative translation error, and the second-order variant at most two (Tab. A9). After EM, both still recover more poses than direct EM and the second-order variant on every dataset. Which of the two is more accurate varies across datasets.
EM from random poses. EM-ICP in Tab. 1 restarts the EM refinement of MomentPnP from random poses until the 30-second limit and keeps the most likely pose. It restarts a median of 210 times per MegaDepth frame, and its 30 seconds per frame are over five hundred times the median time of MomentPnP without outliers (Tab. A5). Fig. A4 shows how its accuracy grows with time.
Global search. GOPAC [7] and GOSMA [6] search over poses by branch and bound within a given domain of camera centers. We run them and MomentPnP on thirty complete, outlier-free pairs of point sets, ten fixed frames from each of the MegaDepth, Data61 and ModelNet40 test sets, without the released time limits. We remove the external clock and the internal duration limits of the released programs, 6,000 s for GOPAC and 600 s for GOSMA, and otherwise keep their code and settings. A search then ends on its own only when GOPAC proves its optimum or GOSMA reaches its released queue-size limit. On a frame where both end on their own within the earlier limits, the modified and released programs return the same poses. We stopped the GOPAC searches still running after 5.2 to 6.0 hours and scored their best pose so far. In a first attempt, four GOPAC searches exceeded a per-process memory cap of 3 GB, and we restarted them without the cap. Both global methods receive unit bearings and the same normalized model points. We center each model at its 3D centroid \bar{\bm{y}} and scale it to a fixed root-mean-square distance from that centroid. For GOPAC, we use the released angular tolerance of 0.017 radians (0.974^{\circ}) and compare two initial lower bounds on the number of inliers, zero and an annealed bound that starts from one fewer than the number of 2D points. GOSMA minimizes a normalized squared L^{2} distance between densities, and we keep its released stopping tolerance of 0.1 on the gap between the best objective value and the global lower bound.
Search domain. Both global methods need a bounded domain of camera centers that contains the true center, which we compute from the inputs. Let a_{\max} be the largest distance from a model point to the centroid \bar{\bm{y}}, let \bm{c} be the camera center, and let \beta>0 be the angle between two observed unit bearings. The bound below holds for every such pair, and we take a widely separated pair because a larger angle tightens it. For noiseless complete observations, the camera distance d_{\rm c}=\lVert\bm{c}-\bar{\bm{y}}\rVert satisfies
d_{\rm c}\leq a_{\max}\bigl(1+\csc(\beta/2)\bigr).The bound is immediate when d_{\rm c}\leq a_{\max}. When d_{\rm c}>a_{\max}, the two model points observed along these bearings are at least d_{\rm c}-a_{\max}>0 from the camera, so by the cosine rule they are at least 2(d_{\rm c}-a_{\max})\sin(\beta/2) apart. They are also at most 2a_{\max} apart, which gives the bound. Both global methods search the same cuboid centered at \bar{\bm{y}}, with half-width twice the right-hand side of the bound to allow for measurement noise. This cuboid contains all thirty reference camera centers.
- GOPAC
- Zero
- 0/30
- 0/30
- 12/30
- 0/30
- 18/30
- 2,562
- 4,088
- GOPAC
- Annealed
- 0/30
- 1/30
- 12/30
- 0/30
- 18/30
- 3,015
- 4,770
- GOSMA
- —
- 0/30
- 1/30
- 0/30
- 30/30
- 0/30
- 68.8
- 293
- MomentPnP (ours)
- —
- 30/30
- 30/30
- —
- —
- 0/30
- 1.92
- 2.58
Global search results. We evaluate the final pose of each finished search and the best pose so far of each stopped one, in the original coordinates. Timings include program startup, input processing and model preparation. Tab. A10 reports every outcome. MomentPnP recovers all thirty frames within 1^{\circ}, and its largest errors are 0.753^{\circ} in rotation and 0.303\% in relative translation. Neither global method brings a frame within 1^{\circ}. GOSMA ends every search at its queue-size limit, after a median of 69 s. In each setting, GOPAC finishes twelve of the thirty searches, on ten ModelNet40 and two MegaDepth frames, and none of the Data61 searches. In the two settings, the finished searches take a median of 43 and 50 minutes. Every finished GOPAC search certifies a pose at which every observation is an angular inlier, with rotation errors from 5.4^{\circ} to 179^{\circ}. The number of angular inliers that GOPAC maximizes therefore does not identify the pose. On a 113-point MegaDepth frame, for example, both settings certify 113 angular inliers at rotation errors of 19.689^{\circ} and 8.552^{\circ}. For these poses, all 113 model points lie in front of the camera, and the maximum nearest-neighbor angular errors are 0.812^{\circ} and 0.882^{\circ}, below the tolerance of 0.974^{\circ}. An inaccurate pose can therefore make every point an angular inlier. Since every finished search is at least 5.4^{\circ} off, the one annealed GOPAC pose within 5^{\circ} comes from a stopped search.
Small point sets. Theorem 1 assumes at least twenty points, so we also evaluate MomentPnP on smaller complete inputs. For each of N=8 and N=16, we draw one model whose 3D coordinates are independent and Gaussian with mean zero and standard deviation 0.2. We then apply a fixed pose, project with identity intrinsics and independently shuffle the exact projections. The global methods keep the parameters and normalization above and search all rotations, with the camera center in the fixed box [-5,5]^{3} in model units. Here, unlike above, GOSMA stops at a 30-second search limit. On both models, the unchanged solver recovers the generating pose within 1^{\circ} on every run, with lower median rotation error and runtime than either global method (Tab. A11). Repeated GOPAC runs can return different poses with the same maximal number of angular inliers. GOSMA reaches its search-time limit on both models.
- 8
- GOPAC zero
- 1.838
- 1/3
- 18.749
- 0/3
- 8
- GOPAC annealed
- 2.469
- 1/3
- 16.263
- 0/3
- 8
- GOSMA
- 165.053
- 0/3
- 30.471
- 3/3
- 8
- MomentPnP (ours)
- \mathbf{<10^{-10}}
- 3/3
- 0.100
- 0/3
- 16
- GOPAC zero
- 1.866
- 0/3
- 2.589
- 0/3
- 16
- GOPAC annealed
- 1.866
- 0/3
- 1.234
- 0/3
- 16
- GOSMA
- 38.121
- 0/3
- 32.912
- 3/3
- 16
- MomentPnP (ours)
- \mathbf{<10^{-10}}
- 3/3
- 0.069
- 0/3
1^{\circ}.1^{\circ}.C.4 Further datasets
Tab. 2 tests whether MomentPnP, with its benchmark settings, recovers poses from structure-from-motion inputs of four further datasets. This subsection describes the reconstructions, image selection and preprocessing for these inputs. It then gives the errors and runtimes per dataset, the comparison with outliers on all images, and examples.
- Dataset
- Images/scenes
- m
- <1^{\circ}
- Error
- Time
- <1^{\circ}
- Error
- Time
- <1^{\circ}
- Error
- Time
- <1^{\circ}
- Error
- Time
- <1^{\circ}
- Error
- Time
- Without outliers
- Cambridge Landmarks [40]
- 27/4
- 326–2,120
- 33
- 88.80
- 351
- 0
- 122.44
- 147
- 15
- 103.63
- 37
- 81
- 0.539
- 585
- 100
- 0.125
- 85
- Phototourism [69, 37]
- 36/3
- 469–2,607
- 92
- 0.07
- 377
- 19
- 6.80
- 135
- 78
- 0.23
- 58
- 92
- 0.200
- 941
- 100
- 0.006
- 67
- 7-Scenes [68]
- 36/3
- 128–582
- 69
- 0.53
- 303
- 36
- 21.41
- 103
- 17
- 7.36
- 29
- 100
- 0.360
- 1,029
- 100
- 0.134
- 25
- ETH3D [65]
- 70/6
- 202–5,010
- 20
- 94.48
- 355
- 0
- 108.32
- 111
- 1
- 113.42
- 72
- 100
- 0.015
- 956
- 100
- 0.004
- 66
- All
- 169/16
- 128–5,010
- 48
- 1.23
- 344
- 12
- 82.73
- 122
- 23
- 76.39
- 42
- 95
- 0.110
- 916
- 100
- 0.008
- 60
- With m/2 outliers per point set, m\leq 2{,}000
- Cambridge Landmarks
- 26/4
- 326–1,928
- 4
- 98.65
- 382
- 0
- 116.95
- 139
- 8
- 116.85
- 50
- 0
- 34.46
- 1,211
- 100
- 0.148
- 724
- Phototourism
- 26/3
- 469–1,975
- 69
- 0.31
- 374
- 0
- 15.69
- 121
- 62
- 0.41
- 84
- 0
- 126.20
- 1,877
- 96
- 0.016
- 452
- 7-Scenes
- 36/3
- 128–582
- 50
- 1.05
- 326
- 3
- 28.21
- 98
- 6
- 19.65
- 30
- 0
- 61.63
- 1,779
- 100
- 0.137
- 213
- ETH3D
- 38/6
- 202–1,875
- 13
- 99.79
- 350
- 0
- 110.73
- 115
- 3
- 118.57
- 53
- 0
- 50.27
- 1,290
- 87
- 0.005
- 303
- All
- 126/16
- 128–1,975
- 33
- 45.98
- 352
- 1
- 65.14
- 114
- 17
- 82.32
- 42
- 0
- 52.25
- 1,594
- 95
- 0.072
- 380
- Deep Blind PnP
- 49
- 29.0
- 169/169
- 0
- 0
- 366
- 0.60
- BPnPNet
- 1
- 0.6
- 169/169
- 0
- 0
- 108
- 0.22
- GoMatch
- 26
- 15.4
- 160/169
- 9
- 0
- 55
- 0.60
- CFPE (reproduced)
- 0
- 0.0
- 169/169
- 0
- 0
- 1,976
- 11.27
- MomentPnP (ours)
- 147
- 87.0
- 167/169
- 0
- 2
- 547
- 57.15
Reconstructions. For Cambridge Landmarks [40], we use the VisualSFM reconstructions [78] of King’s College, Old Hospital, Shop Facade and St. Mary’s Church. For ETH3D [65], we use the released reconstructions of Courtyard, Delivery Area, Electro, Facade, Office and Terrace. For Phototourism, we use the COLMAP reconstructions [64] of the Image Matching Challenge [37] for Trevi Fountain, Brandenburg Gate and Sacré-Cœur. For 7-Scenes [68], we use the depth-assisted SfM models of Sarlin et al. [62] for Heads, Fire and Chess.
Queries. Each query contains the tracked 2D points of one image and the model points observed in that image. We undistort the 2D points, keep the tracks with positive depth and reprojection error below three pixels, and shuffle both point sets. On Cambridge Landmarks, we take the four test images with the most points in each scene and eleven further test images spread over the rest. On the other datasets, we take up to twelve landscape images per scene with 100 to 3,000 points, or up to 4,000 points on 7-Scenes and 6,000 on ETH3D. With outliers, we keep the images with at most 2,000 inliers and add half as many outliers as inliers to each point set, as in the benchmark protocol. The learned methods keep their MegaDepth weights, and we report the released output with the most poses within 1^{\circ}.
Results. Tab. A12 extends Tab. 2 with the median rotation error and runtime of each method on each dataset. Tab. A13 removes the limit of 2,000 inliers and evaluates all 169 images with outliers. On these inputs, MomentPnP returns 167 poses, 147 of them within 1^{\circ}. GoMatch runs out of memory on nine images, and the other baselines return a pose for every image.
1^{\circ}.1^{\circ}. Data61 model points come from LiDAR.1^{\circ}.Examples. Fig. A7 shows the first selected outlier-free image of each dataset for every method. Fig. A8 adds images from Cambridge Landmarks, Phototourism and Data61, and Fig. A9 from 7-Scenes and ETH3D. MomentPnP is within 1^{\circ} on every image and has the lowest rotation error on all but one. On the Chess image of Fig. A7, CFPE and EM-ICP are 0.01^{\circ} lower. In each figure, exactly two images have a pose within 1^{\circ} from at least one learned method.
C.5 Scaling to large point sets
This subsection gives the protocol behind Figs. 8 and 7 and the results per scan and per view up to one million points. It also reports the percentage of correct labels, the runtimes and the results of the learned baselines.
Rendered 2D points. The experiment varies the number of points, and the fraction of model points that generate 2D points, on real scene geometry. We use the ETH3D laser scans [65] of Facade, Courtyard and Office, which hold 45.0, 37.8 and 48.6 million scan points. For each scan, three registered cameras give three reference poses, and 2.6 to 10.6 million scan points fall within the view frustum of a reference pose. Within this frustum, we sample nested subsets of the scan points with positive depth as model points and project them to form the 2D points, ignoring occlusion. We add independent isotropic Gaussian noise with standard deviation s=1 pixel per coordinate in a 6{,}200\times 4{,}100 image and shuffle both point sets. In a second setting, with partial detection, a uniformly sampled quarter of the model points generates 2D points. Every method receives the same point sets, and the learned baselines use their MegaDepth weights.
Times cover complete inference runs and exclude input and model loading. MomentPnP runs a small GPU warm-up before timing. The times of the learned methods include compilation on first use where it is required. The Courtyard and Office runs have a limit of 1,800 seconds per view and point count.
- Points
- Time
- Error
- Labels
- Time
- Error
- Labels
- Time
- Error
- Labels
- Every model point has a 2D point
- 1,000
- 0.09
- 1.5
- 100
- 0.14
- 1.9
- 100
- 0.14
- 2.1
- 100
- 4,000
- 0.28
- 0.62
- 100
- 0.46
- 1.2
- 100
- 0.39
- 1.2
- 100
- 16,000
- 0.97
- 0.30
- 99
- 2.4
- 0.43
- 100
- 1.9
- 0.81
- 99
- 64,000
- 6.6
- 0.21
- 98
- 22.7
- 0.22
- 98
- 18.6
- 0.21
- 98
- 256,000
- 83.8
- 0.044
- 93
- 355
- 0.12
- 93
- 302
- 0.091
- 92
- 1,000,000
- 1,606
- 0.066
- 79
- –
- –
- –
- 990
- 0.11
- 76
- A quarter of the model points have a 2D point
- 1,000
- 0.52
- 2.7
- 100
- 0.59
- 4.2
- 100
- 0.58
- 3.4
- 100
- 4,000
- 1.7
- 1.9
- 100
- 2.0
- 2.4
- 100
- 1.9
- 3.7
- 100
- 16,000
- 7.4
- 0.96
- 100
- 8.8
- 0.80
- 100
- 7.8
- 1.2
- 99
- 64,000
- 59.1
- 0.59
- 98
- 69.6
- 0.40
- 98
- 50.5
- 0.58
- 98
N=1024 in which every 2D point is labeled with its generating model point, against the noise standard deviation s (Sec. C.7). (b) Median rotation error on rendered 2D points (Sec. C.5). Blue curves give MomentPnP on each scan, and the learned baselines use their returned poses from all nine views.Pose accuracy. Tab. A14 gives the median rotation error, percentage of correct labels and time over the three reference poses of each scan. Fig. A10(b) plots the median rotation error of MomentPnP on each scan, together with the learned baselines over all nine views. At one million points, all three Facade runs return poses, and one of them takes 8,735 seconds. For Courtyard, one view contains repeated 3D coordinates at this size and is excluded, and the solver returns no pose for a second view within the 1,800-second limit. The Courtyard markers at one million points thus show a single pose. Tab. A14 lists one million points for Facade and Office, and Tab. A16 gives every Courtyard and Office view through one million points. Tab. A15 gives one view of each scan at one million points, and Fig. 7 shows these three views. For Facade 1, the estimated projections differ from the reference projections by at most 0.01 pixels. With partial detection, every pose up to 64,000 points has rotation error below 0.006^{\circ}.
- Facade 1
- 5.3705\times 10^{-5}
- 1.1990\times 10^{-6}
- 78.0767
- Courtyard 3
- 2.4968\times 10^{-5}
- 4.5102\times 10^{-7}
- 77.4822
- Office 1
- 4.8244\times 10^{-5}
- 3.1206\times 10^{-7}
- 77.6801
- Courtyard 1
- 2.2351
- 2.1025
- Invalid
- 2.3367
- 2.9767
- –
- –
- –
- Courtyard 2
- 1.2694
- 1.0114
- Timeout
- 1.3939
- 1.1487
- –
- –
- –
- Courtyard 3
- 2.8570
- 1.2198
- 0.2497
- 2.4586
- 1.7281
- 0.4510
- 688.7
- 77.48
- Office 1
- 2.0979
- 2.4092
- 0.4824
- 8.0690
- 5.6997
- 0.3121
- 985.1
- 77.68
- Office 2
- 2.6994
- 0.9101
- 1.1428
- 7.5577
- 3.8684
- 3.7290
- 1243.7
- 76.32
- Office 3
- 1.8078
- 0.8665
- 1.4484
- 7.0205
- 5.3789
- 8.0800
- 990.0
- 75.35
Correspondences. Each 2D point is labeled with its nearest projected model point. When the noise is small compared with the spacing between nearby projections, nearly every label is correct. This spacing shrinks as the point sets grow, so more 2D points lie nearer to another projection than to their own. Fig. A11 plots the median percentage of 2D points whose nearest projected model point under the recovered pose did not generate them. The Labels columns of Tabs. A14, A15 and A16 give the percentage that did. The percentage of correct labels falls from 100% at 1,000 points to 75 to 79% at one million. Over the same range, the rotation error decreases up to 256,000 points and stays near that level at one million (Tab. A14). Sec. A.9 relates these percentages to the probability that every label is correct.
Runtime. Fig. A12 gives the median time per frame of MomentPnP on each scan and compares it with the learned baselines. Across the scans, the median time of MomentPnP is 0.09 to 0.14 s at 1,000 points and 84 to 355 s at 256,000 points (Tab. A14).
Learned baselines. Tab. A17 counts the poses of the learned baselines within 1^{\circ} over the nine views. GoMatch runs out of memory from 16,000 points and the other learned baselines from 64,000 points. Below these sizes, they bring at most two of the nine poses within 1^{\circ}. Their curves in Fig. A12 use the three Facade poses.
- 1,000
- 2/9
- 0/9
- 0/9
- 9/9
- 4,000
- 0/9
- 0/9
- 0/9
- 9/9
- 16,000
- 0/9
- 0/9
- OOM
- 9/9
- 64,000
- OOM
- OOM
- OOM
- 9/9
- 256,000
- OOM
- OOM
- OOM
- 9/9
C.6 Complete scene reconstructions
We evaluate MomentPnP on observations in one image and the complete 3D reconstruction. Neither the visible model points nor a pose prior is given. Sec. A.11 specifies the camera search and the refinement by EM. Here we give the query protocol, the results of Tab. A18 and the search cost.
Queries. We use the thirteen ETH3D high-resolution training scenes of Tab. A18. Each query contains the tracked 2D points of one image and every finite model point of the released sparse reconstruction [65], which starts from COLMAP [64], with both point sets shuffled. We exclude image detections without a triangulated track. In each scene, the tuning queries are the first three images in file-name order with at least 200 tracked 2D points, and we fix the settings on them. We test the settings on the test queries, three further images spaced evenly over the remaining eligible images. A query is recovered when the returned pose has rotation error below 1^{\circ}. Sec. A.11 specifies the camera search and its settings.
- Kicker
- 15,897
- 2.7
- 0/3
- 0/3
- OOM
- 3/3
- 3/3
- Office
- 3,461
- 3.4
- 2/3
- 0/3
- 0/3
- 3/3
- 3/3
- Facade
- 85,096
- 4.8
- OOM
- 0/3
- OOM
- 3/3
- 3/3
- Terrace
- 10,676
- 5.3
- 0/3
- 0/3
- OOM
- 3/3
- 3/3
- Pipes
- 2,473
- 5.4
- 0/3
- 0/3
- 0/3
- 3/3
- 3/3
- Relief
- 26,516
- 5.6
- 0/3
- 0/3
- OOM
- 3/3
- 3/3
- Courtyard
- 33,487
- 7.1
- 0/3
- 0/3
- OOM
- 3/3
- 3/3
- Relief 2
- 20,514
- 9.3
- 0/3
- 0/3
- OOM
- 3/3
- 3/3
- Meadow
- 2,194
- 10.8
- 0/3
- 0/3
- 0/3
- 3/3
- 2/3
- Delivery Area
- 31,978
- 13.2
- 0/3
- 0/3
- OOM
- 3/3
- 3/3
- Electro
- 20,268
- 14.6
- 0/3
- 0/3
- OOM
- 3/3
- 1/3
- Terrains
- 18,553
- 17.9
- 0/3
- 0/3
- OOM
- 3/3
- 3/3
- Playground
- 15,663
- 40.3
- 0/3
- 0/3
- OOM
- 3/3
- 2/3
- All
- 2/39
- 0/39
- 0/39
- 39/39
- 35/39
1^{\circ} by a given search time.Results. Tab. A18 gives the recovery in each scene for the tuning and test queries, and for the learned baselines on the tuning queries. MomentPnP recovers all 39 tuning queries within 1^{\circ}, with rotation errors of at most 0.015^{\circ}, and 35 of the 39 test queries. Fig. A13 plots the number of tuning queries recovered by each search time. The search recovers 19 of the 39 within 43 s and the last after 3,531 s.
Cost of the search. The number of grid centers that the search must visit sets its cost. Let d_{\rm v}>0 be the viewing distance, the depth of the observed part of the scene. Suppose that the true camera center lies in the enlarged box of Sec. A.11 and that, for some fraction r_{\rm c}>0, refinement succeeds from any grid center within r_{\rm c}d_{\rm v} of it. Suppose also that the rotation grid covers the basin of convergence. By Lemma A18, cells of side \Delta_{\mathrm{c}}=2r_{\rm c}d_{\rm v}/\sqrt{3} place some grid center within r_{\rm c}d_{\rm v} of the true camera center, and the grid has at most \prod_{k}(\sqrt{3}L_{k}/(2r_{\rm c}d_{\rm v})+1) centers, where L_{k} are the side lengths of the enlarged box. The bound grows roughly as the cube of the ratio of scene extent to viewing distance. Recovery also requires that the search keep this grid center after ranking. At each center, scoring the 11,520 rotations takes work linear in the number of model points in the coarse sample, which is at most 65,536. Beyond the three full grids, the search subdivides only the best cells. For the 70 complete grids used by the tuning queries in Tab. A18, the cell containing the reference camera center ranks in the top quarter in 80% of grids. Four queries, on Electro and Playground, continue to selective subdivision. For evaluation, the viewing distance is the median depth of the model points observed in the query image, and the Ratio column of Tab. A18 divides the scene extent by it.
C.7 Ablation study
This subsection gives the protocols and results of the controls in the ablation study of Sec. 5, which vary the depths of the model points, the image noise and the kind of outliers. It then reports three further controls, on the search implementation and the pose ambiguity resolution, on the selection of visible points and on the acceptance test on held-out frames.
- Spread f_{\rm sp}=0.02
- 1.04
- 20.88
- 51
- 8/10
- 0.374
- 108
- Spread f_{\rm sp}=0.1
- 1.22
- 15.43
- 51
- 10/10
- 0.227
- 109
- Spread f_{\rm sp}=0.3
- 1.85
- 12.88
- 51
- 10/10
- 0.089
- 108
- Spread f_{\rm sp}=0.6
- 3.95
- 156.55
- 50
- 10/10
- 0.062
- 110
- Spread f_{\rm sp}=0.9
- 18.04
- 161.26
- 51
- 10/10
- 0.051
- 109
- 13 close points at 0.8z_{\mathrm{ref}}
- 1.25
- 22.30
- 50
- 10/10
- 0.182
- 109
- 13 close points at 0.5z_{\mathrm{ref}}
- 2.00
- 14.99
- 51
- 10/10
- 0.072
- 110
- 13 close points at 0.2z_{\mathrm{ref}}
- 5.00
- 9.49
- 50
- 10/10
- 0.047
- 112
- 13 close points at 0.1z_{\mathrm{ref}}
- 10.00
- 8.76
- 50
- 10/10
- 0.046
- 112
Depth variation. The affine initial poses of Step 1 assume an affine camera (Theorem A1), and a perspective camera departs further from an affine camera as the depths of the model points spread. In each paired trial of Tab. A19, we vary the depths about a reference depth z_{\mathrm{ref}}=4.5 while keeping the noise-free image bearings and the noise realization fixed. In the first set of conditions, the depths are z_{\mathrm{ref}}(1+f_{\rm sp}q_{{\rm sp},j}) for fixed q_{{\rm sp},j}\in[-1,1] and a spread factor f_{\rm sp}. In the second, 13 of the 128 points move closer to the camera and the other depths stay at z_{\mathrm{ref}}. We draw calibrated image coordinates independently from scaled and shifted Beta distributions. The first set draws q_{{\rm sp},j} uniformly from [-1,1] and uses f_{\rm sp}\in\{0.02,0.1,0.3,0.6,0.9\}. The second places the same 13 points at 0.8, 0.5, 0.2 and 0.1 times z_{\mathrm{ref}} in separate trials. The affine initialization in this study tests 3,000 viewing directions with 72 rolls each, keeps the affine map with the lowest residual and converts it to an initial pose under scaled orthography, without perspective fitting or EM. The affine initial pose has rotation error above 1^{\circ} in every trial. After perspective fitting and EM, the full solver is within 1^{\circ} in 88 of the 90 trials. At the largest spread, with a median depth ratio of 18, the affine initial pose has a median error of 161^{\circ}, and the full solver is within 1^{\circ} in all ten. As the spread shrinks, the median error of the full solver rises from 0.05^{\circ} to 0.37^{\circ}. Its two inaccurate poses, at 1.0^{\circ} and 1.3^{\circ}, are accepted and occur at the smallest spread.
Image noise. These synthetic controls measure how image noise affects the pose and the labels. We draw N model points independently and uniformly from [-0.1,0.1]^{3}. The rotation axis is uniform on the unit sphere, and the rotation angle is uniform in [0,\pi]. The translation is (t_{x},t_{y},1)^{\top} with t_{x} and t_{y} independent and uniform in [-0.15,0.15]. The camera has focal lengths of 1,400 pixels and principal point (640,512) in a 1280\times 1024 image. We add independent isotropic Gaussian noise with standard deviation s\in\{0.02,0.25,0.5,1,2\} pixels per coordinate. Each noise level uses 200 trials for N\in\{16,32,64\}, 100 for N\in\{128,256\} and 40 for N=1024. In Theorem A4, exact matching depends on the noise through Ns relative to the spread of the points. Let \hat{s} be the noise standard deviation fitted by MomentPnP, and let \rho_{\mathrm{rms}}=(n^{-1}\sum_{i}\lVert\bm{u}_{i}-\bar{\bm{u}}\rVert^{2})^{1/2} be the root-mean-square radius of the 2D points about their mean \bar{\bm{u}}, both in pixels. To compare point counts on one scale, we plot results against N\hat{s}/\rho_{\mathrm{rms}}. Over this noise range, the rotation error of MomentPnP follows that of the pose fitted to the true correspondences. Its percentage of correct labels follows that of minimum-cost bijective matching at the true pose (Fig. A14(a)). The second agreement is consistent with Lemma A9, which bounds the labeling error of nearest-projection matching at an accurate pose. It is also consistent with Theorem A7, under which, for large N, even an estimator that knows the camera errs with probability bounded away from zero once Ns is at least a fixed positive constant.
Exact label recovery. A stricter measure is the percentage of frames in which every 2D point is labeled with its generating model point. Fig. A15 plots it for MomentPnP, CFPE and EM-ICP against N\hat{s}/\rho_{\mathrm{rms}}, and Fig. A10(a) against the noise at N=1024. EM-ICP restarts on the CPU for up to 30 s. At N=1024 and s=0.02 pixels, MomentPnP recovers every label in all 40 frames, compared with 90% of the frames for CFPE and 30% for EM-ICP. At N=1024 and s=0.5 pixels, none of these methods recovers every label in any frame.
Structured outliers. Real outliers often lie on scene structure, which the uniform outlier model of Definition 1 does not describe. To test such outliers, we take Data61 frames with N model points and replace a fraction of the 2D points of each frame with as many other 2D points on the same scene structures. MomentPnP is within 1^{\circ} on every frame with up to 30% replaced and on 79% to 99% of the frames at 50% (Fig. A14(b)). At every fraction, BPnPNet is within 1^{\circ} on fewer frames.
N\hat{s}/\rho_{\mathrm{rms}}, one curve per point count N. Crosses mark the pose fitted to the true correspondences (left) and minimum-cost bijective matching at the true pose (right). (b) Percentage of Data61 [56] frames with rotation error below 1^{\circ} for MomentPnP and BPnPNet, against the percentage of 2D points replaced by other 2D points on the scene, one curve per N. (c) Percentage of the 1,000 held-out frames of MegaDepth [46], ModelNet40 [79] and Data61 at each outlier ratio, split jointly by acceptance and by rotation error below 1^{\circ}.N\hat{s}/\rho_{\mathrm{rms}} computed from the noise \hat{s} fitted by MomentPnP. The gray curve in (a) is the fit e^{-\kappa_{\mathrm{fit}}(N\hat{s}/\rho_{\mathrm{rms}})^{2}} with \kappa_{\mathrm{fit}}=0.21.- GPU search (ours) (%) \uparrow
- 99.9
- 97.0
- 100.0
- CPU search only (ours) (%) \uparrow
- 99.8
- 96.8
- 99.9
- CPU/GPU runtime ratio
- 4.7
- 6.4
- 5.0
- Ambiguous pose examined (frames)
- 154
- 715
- 0
- replaces the pose, GPU search
- 0
- 2
- 0
- replaces the pose, CPU search
- 15
- 47
- 0
- Accepted with error \geq 5^{\circ} (frames)
- 0
- 13
- 0
- Within 1^{\circ} but declined (frames)
- 7
- 60
- 0
Search implementation & pose ambiguity resolution. Tab. A20 measures the effect of the batched GPU search, the pose ambiguity resolution and the acceptance test on all 15,901 outlier-free test frames. The CPU search keeps moment matching, EM and acceptance, but replaces the batched GPU search with a coarser search. The GPU search places 97.0 to 100% of the frames of each test set within 1^{\circ}. The coarser CPU search loses at most 0.2 percentage points and takes 4.7 to 6.4 times the median GPU runtime. The rows on pose ambiguity resolution count the frames in which an alternative pose of Step 4 is examined and the frames in which it replaces the selected pose (Lemma A8). These replacements occur mainly in the CPU search, on flat MegaDepth scenes and ModelNet40 objects. Both replacements in the GPU search and 61 of the 62 in the CPU search are within 1^{\circ}. Alternatives within 3^{\circ} of an accepted pose are discarded, so each of these replacements corrects a pose at least 2^{\circ} from the true one. Model symmetry has a related effect. Under exact symmetry, different poses give identical projections, and near-symmetry can make the moment residual less informative about orientation error (Secs. A.4 and A.7). On ModelNet40, 27 of the 31 frames with rotation error of at least 5^{\circ} meet the ADD-S criterion of 10% of the model diameter (Sec. C.2), as do 11 of the 13 accepted with such errors. The last two rows count the errors of the acceptance test in both directions. The test accepts 13 ModelNet40 poses with rotation error of at least 5^{\circ} and none on the other test sets. It declines 7 MegaDepth and 60 ModelNet40 poses within 1^{\circ}.
- n
- n_{t}
- n_{C}
- n_{t}
- n_{C}
- 24
- 29
- 5
- 1
- 0
- 32
- 27
- 4
- 0
- 0
- 48
- 26
- 5
- 0
- 0
- 96
- 0
- 0
- 0
- 0
Selection of visible points. Moment matching needs both point sets to sample the same structure, so recovery can depend on which model points are visible as well as on how many. We compare two selections in paired trials on thirty independent 3D models of 96 model points (Tab. A21). Each pair uses the same 3D point set, intrinsics, pose, measurement noise and unmatched 2D points. The noise is Gaussian with standard deviation 0.001 per calibrated coordinate. In both selections, 24 model points generate 2D points. Random selection chooses them uniformly at random, and directional deletion chooses them from one end of the model along a random image direction. Uniform unmatched 2D points then bring the 2D point set to n points. With n\leq 48, random selection gives 26 to 29 of the 30 poses within 1^{\circ} and 1% translation error, and directional deletion at most one. Recovery thus depends on which points are visible.
Acceptance on held-out frames. Fig. A14(c) splits the 1,000 held-out frames of each dataset and outlier ratio by acceptance and by rotation error below 1^{\circ}. In every setting, at most 8 frames yield an accepted pose with rotation error of at least 1^{\circ}.
C.8 Independently selected inputs
In every study above, each inlier 2D point comes from a model point, through a track, a released pair or rendering. In the studies of this subsection, the 2D points and the model points are selected independently, so no 2D–3D correspondences are given. The studies pair scale-invariant feature transform (SIFT) detections with a 3D model built from other photographs, image edges with a CAD model, and detected motion-capture markers or infrared light-emitting diodes (LEDs) with their 3D positions. The SIFT study uses the search over camera centers and rotations of Sec. C.6. The study with CAD models uses the edge features of Sec. B.2. The marker studies apply MomentPnP to the two point sets. Tab. A22 summarizes recovery in these studies, with a SIFT example in Fig. 9(a) and a CAD example in Fig. A16.
- All SIFT detections
- 1^{\circ}, 1% extent
- 2/6
- —
- RGB/CAD edges
- 5^{\circ}, 5 cm
- 6/20
- 8/20
- New objects
- 5^{\circ}, 5 cm
- 3/16
- 5/16
- Motion-capture centroids
- 5^{\circ}, 5 cm
- 6/8
- —
- Infrared LEDs (relative)
- 5^{\circ}, 5 cm
- 19/31
- —
SIFT detections & reconstructed maps. We use the ETH3D scenes Office, Courtyard and Facade. In each scene, the first photograph is a tuning query, and two photographs evenly spaced through the scene’s list of photographs are test queries. We compute new SIFT detections [49] and triangulate the model points [64] from source photographs that exclude all nine queries, so no query photograph takes part in feature extraction, matching or triangulation. The Office, Courtyard and Facade maps contain 3,272, 42,714 and 96,909 model points from 23, 35 and 73 source photographs. The search uses the grids of Sec. C.6, with three subdivision levels.
Acceptance. We tune the acceptance thresholds for these inputs on the three tuning queries and fix them before evaluating the six test queries. A pose is accepted only if at least 30% of the points in the smaller point set are matched. This applies both to the expected number n_{\rm m} of 2D points matched under EM (App. B) and to the final correspondences. We require the median, over the matched 2D points, of the ratio of the distances to the nearest and second-nearest projections to be at most 0.12. For queries with at least 500 detections and an association level of at most 10^{-100}, we relax this limit to 0.50. The benchmark acceptance test with outliers permits 0.25 in this case (Sec. B.1). We run the search on each test query with a time limit of 3,600 seconds, checked between completed operations. At the limit, it returns its best valid pose. A query is recovered when its rotation error is below 1^{\circ} and its camera-center error below 1% of the scene extent.
- Office 9
- 335
- 287
- 3,272
- 70.58
- 54.546
- 3600.1
- no
- no
- Office 18
- 1,327
- 1,134
- 3,272
- 0.11
- 0.054
- 3604.2
- yes
- no
- Courtyard 13
- 13,123
- 11,525
- 42,714
- 103.08
- 15.811
- 3618.6
- no
- no
- Courtyard 26
- 11,079
- 9,399
- 42,714
- 93.82
- 7.460
- 3600.2
- no
- no
- Facade 26
- 9,432
- 8,205
- 96,909
- 0.0027
- 0.001
- 870.6
- yes
- yes
- Facade 51
- 12,525
- 10,517
- 96,909
- 177.34
- 21.350
- 3600.2
- no
- no
SIFT results. Tab. A23 gives every returned pose. Two of the six test queries are recovered. The accepted Facade 26 pose of Fig. 9(a) gives 5,666 distinct pairs, all in front of the camera. Their median and root-mean-square reprojection distances are 0.763 and 1.168 pixels. The accurate Office 18 pose is returned at the time limit without being accepted.
Why such inputs are harder. Fig. 9(b,c) shows two measurements that explain this difficulty. First, the two point sets can sample different structure. Of the 12,069 SIFT points detected in a Meadow image, 255 belong to reconstruction tracks, and many of the other detections lie on vegetation and sky that the reconstruction does not contain (Fig. 9(b)). Second, a dense 3D model places projections near most 2D points at more than one pose. In a Facade image, 2.6 million laser-scan points fall within the view. At the reference pose, 80.6% of the 9,754 2D points lie within 3.4 pixels of a projected scan point. At a pose rotated by 2^{\circ}, 76.8% still do (Fig. 9(c)). Distances to the nearest projections therefore barely distinguish the two poses.
Image edges & CAD models. We fix all filter, search and refinement settings on four tuning views of T-LESS [32] object 25. Before evaluating any pose error, we select views 72 and 360 of objects 1, 5, 9, 13, 17, 21, 26 and 29, and views 72, 216, 360 and 504 of object 25. The twenty test views thus contain sixteen views of new objects and four held-out views of the tuning object. Each run receives one RGB image, the intrinsics and a CAD mesh in its own coordinate frame, and no reference pose, visibility, model symmetries or edge identities.
Edge features & search. We use eight-pixel segments from the line segment detector (LSD) [25] in the image, and creases and candidate contours (Sec. B.2) on the CAD model. We normalize image coordinates by the arclength-weighted centroid and root-mean-square radius of the detected image edges. We integrate Fourier features analytically along each projected segment using sinc functions. We score an initial grid of poses with these features and keep the best poses for EM. Scoring on this grid ignores occlusion. For the retained poses, exact visibility then clips occluded edges, and all CAD vertices must lie in front of the camera and project inside the image. For point-based EM, we sample each projected edge once by image arclength and keep these samples during refinement. For the final ranking, we recompute visibility and sampling and score each pose by an edge-curve likelihood. An improvement of the point-based EM objective thus need not improve this likelihood.
- Object
- View
- Rot. \downarrow
- Center \downarrow
- Rot. \downarrow
- Center \downarrow
- 1
- 72
- 159.94
- 1169.4
- 159.88
- 1169.7
- 1
- 360
- 17.81
- 188.4
- 14.70
- 167.0
- 5
- 72
- 128.37
- 1141.4
- 128.37
- 1141.4
- 5
- 360
- 1.52
- 17.4
- 1.52
- 17.4
- 9
- 72
- 179.65
- 353.4
- 3.33
- 35.8
- 9
- 360
- 1.93
- 22.7
- 1.93
- 22.7
- 13
- 72
- 131.84
- 72.6
- 33.66
- 337.4
- 13
- 360
- 176.58
- 911.4
- 142.36
- 1140.8
- 17
- 72
- 75.74
- 176.2
- 4.92
- 52.4
- 17
- 360
- 26.32
- 256.6
- 1.95
- 17.4
- 21
- 72
- 46.42
- 505.3
- 46.42
- 505.3
- 21
- 360
- 133.74
- 755.7
- 133.74
- 755.7
- 26
- 72
- 6.45
- 68.2
- 6.45
- 68.2
- 26
- 360
- 3.14
- 28.8
- 3.14
- 28.8
- 29
- 72
- 179.81
- 437.4
- 7.42
- 84.2
- 29
- 360
- 75.03
- 781.3
- 75.03
- 781.3
- 25
- 72
- 4.52
- 47.0
- 4.52
- 47.0
- 25
- 216
- 3.28
- 32.7
- 3.28
- 32.7
- 25
- 360
- 1.88
- 20.2
- 1.88
- 20.2
- 25
- 504
- 114.00
- 1071.1
- 66.53
- 700.1
- Within both thresholds \uparrow
- 6/20
- 8/20
- Accurate comparisons \uparrow
- 6/8
- 19/31
- Accepted pose outputs
- 5/8
- 25/32
- Inaccurate accepted comparisons \downarrow
- 1/8
- 5/31
- Extraction failures \downarrow
- 0/8
- 7/32
- Median rotation error (∘) \downarrow
- 0.324
- 1.063
- Median position error (mm) \downarrow
- 20.9
- 25.9
Edge results. Tab. A24 gives the rotation and camera-center errors of every test view, for the returned pose and after applying the official model symmetry. A view is recovered when its rotation error is below 5^{\circ} and its camera-center error below 50 mm. To find whether a failure comes from the search or from the objective, we score the reference and estimated poses with the same final likelihood, using a Gaussian standard deviation of two pixels and a uniform outlier fraction of 0.05. Every reference pose satisfies the constraints of the search, with every CAD vertex in front of the camera and projecting inside the image. At these poses, we sample the detected image edges and the visible projected CAD edges by image arclength, at most two pixels apart. A median of 72.9% of the image-edge samples and 83.1% of the CAD-edge samples lie within three pixels of a sample of the other set. The detected and projected edges thus overlap only in part. Of the twelve views that fail under model symmetry, four return poses with lower final likelihood than the reference pose, so the search misses a more likely pose. In the other eight, the estimated pose has higher likelihood than the reference, so the objective itself favors these inaccurate estimates.
Motion-capture markers. We use the static trial of a public running motion-capture dataset.4 For the query camera, we keep all unlabeled marker centroids, corrected for radial distortion. We tune on one camera at the first frame and evaluate all eight other cameras at frame 501, using MomentPnP with one-pixel noise and a 30-second time limit. Six of the eight returned poses are within 5^{\circ} and 5 cm, and none is within 1^{\circ} and 1 cm. One of the five accepted poses fails the 5^{\circ} and 5 cm thresholds. As a control, efficient perspective-n-point (EPnP) [44] with the reference assignments is within 5^{\circ} and 5 cm on all eight cameras and within 1^{\circ} and 1 cm on one.
Infrared LEDs. We use the raw infrared images and the surveyed coordinates of four noncoplanar LEDs from a public demonstration [17]. A fixed filter on intensity, area and contour shape extracts the LED centroids, and the point solver runs in its outlier-free setting with one-pixel noise and a ten-second time limit. The transform between the LED model and the attached AprilTag [59] is unknown, so we compare motions relative to frame 61 with independent tag estimates. With \Xi^{\mathrm{tag}}_{i} and \Xi^{\mathrm{led}}_{i} the rigid transforms from the tag frame and from the LED frame to the camera frame at frame i, \Xi^{\mathrm{tag}}_{i}=\Xi^{\mathrm{led}}_{i}\Xi^{\mathrm{obj}} for a fixed transform \Xi^{\mathrm{obj}} between the object frames, so the relative transforms \Xi^{\mathrm{tag}}_{j}(\Xi^{\mathrm{tag}}_{i})^{-1}=\Xi^{\mathrm{led}}_{j}(\Xi^{\mathrm{led}}_{i})^{-1} do not depend on \Xi^{\mathrm{obj}} (Tab. A25). A fixed error in the camera frame does not cancel in this comparison.