This article develops end-of-line (EOL) camera extrinsic calibration and calibration-board placement for autonomous-vehicle camera rigs, including bird’s-eye-view applications.

There are two linked optimization problems: estimate camera and board poses from measurements, then choose physical board positions and orientations that make the camera estimates more precise. Camera intrinsics are assumed known, and absolute extrinsics require a world-frame anchor.

The presentation follows this order:

  1. General calibration problem formulation: variables, coordinate conventions, measurements, priors, and identifiability.
  2. Solver: sparse factor-graph bundle adjustment for the pose estimates.
  3. Board-position and orientation optimization formulation: camera uncertainty, design variables, constraints, and optimization methods.
  4. Experiments from simple to complex: one camera and one board, two-camera cases, a multi-camera workspace, and a vehicle rig.

Geometric preprocessing, ray-plane derivations, and optional design formulations are collected in appendices. The detailed ADMM formulation and solver benchmarks are in Appendix E: ADMM and Bundle Adjustment Comparison.

1. General Calibration Problem Formulation

For multiple boards and cameras, the observation structure should be defined at the marker-point level. Since each camera may see only a subset of the markers on a board, the primitive observation is a camera-point edge:

$$ (c,p)\in\mathcal E \quad\Longleftrightarrow\quad \text{camera }c\text{ observes marker point }p. $$

A board-camera graph is only a compressed graph obtained after grouping all observed points on the same board. The general model uses known board-frame marker coordinates, measured world-frame marker coordinates when available, and image observations. Reprojection residuals share the corresponding physical board pose; the primitive measurements remain camera-point observations.

First define the estimation problem independently of its solver or the eventual board-placement design.

1.1 Sets and Observation Graph

Let there be $B$ boards and $C$ cameras.

Boards:

$$ \mathcal B=\{1,\dots,B\}. $$

Cameras:

$$ \mathcal C=\{1,\dots,C\}. $$

Board $b$ has known marker points:

$$ \mathcal I_b=\{1,\dots,N_b\}. $$

Marker $i$ on board $b$ has known board-frame coordinate:

$$ q_{bi}\in\mathbb R^3. $$

For a planar checkerboard or marker board, usually

$$ q_{bi}= \begin{bmatrix} x_{bi}\\ y_{bi}\\ 0 \end{bmatrix}. $$

Define the global point set:

$$ \mathcal P= \{p=(b,i): b\in\mathcal B,\ i\in\mathcal I_b\}. $$

For point $p=(b,i)$, define

$$ \beta(p)=b $$

as the board containing point $p$, and define

$$ q_p=q_{bi}. $$

The camera-point observation graph is

$$ \boxed{ \mathcal G=(\mathcal C\cup\mathcal P,\mathcal E), } $$

where

$$ \boxed{ (c,p)\in\mathcal E \quad\Longleftrightarrow\quad \text{camera }c\text{ observes point }p. } $$

For each observation edge $(c,p)$, the measured image point is

$$ u_{cp}\in\mathbb R^2. $$

Camera $c$ has known intrinsic matrix

$$ K_c. $$

Define the neighborhoods:

$$ \mathcal N(c)=\{p:(c,p)\in\mathcal E\}, $$$$ \mathcal N(p)=\{c:(c,p)\in\mathcal E\}, $$$$ \mathcal P_b=\{p\in\mathcal P:\beta(p)=b\}. $$

1.2 Pose Variables and Coordinate Convention

Use a uniform local-to-world pose convention for both boards and cameras. $T^B_b$ denotes the pose of board $b$, and $T^C_c$ denotes the pose of camera $c$.

For board $b$:

$$ \boxed{ T^B_b= \begin{bmatrix} R^B_b & t^B_b\\ 0 & 1 \end{bmatrix} \in SE(3) } $$

maps board-local coordinates to world coordinates:

$$ \boxed{ \bar X_p^W= T^B_{\beta(p)}\bar q_p. } $$

Here

$$ \bar q_p= \begin{bmatrix} q_p\\ 1 \end{bmatrix}. $$

Define the Euclidean extraction matrix

$$ P_3= \begin{bmatrix} I_3 & 0 \end{bmatrix}. $$

Equivalently,

$$ \boxed{ X_p^W= P_3\bar X_p^W= R^B_{\beta(p)} q_p+t^B_{\beta(p)}. } $$

For camera $c$:

$$ \boxed{ T^C_c = \begin{bmatrix} R^C_c & t^C_c\\ 0 & 1 \end{bmatrix} \in SE(3) } $$

maps camera-local coordinates to world coordinates. Therefore, to project a world point into camera $c$, use the inverse camera pose:

$$ \boxed{ \bar X_{cp}^C = (T^C_c)^{-1}\bar X_p^W. } $$

where $\bar X_p^W=[(X_p^W)^\top,1]^\top$.

Explicitly,

$$ (T^C_c)^{-1} = \begin{bmatrix} (R^C_c)^{\top} & -(R^C_c)^{\top}t^C_c\\ 0 & 1 \end{bmatrix}, $$

and

$$ \boxed{ X_{cp}^C = (R^C_c)^{\top} \left( X_p^W-t^C_c \right). } $$

This is consistent with treating both the board and camera variables as local-to-world poses. The usual computer-vision world-to-camera extrinsic still appears, but now it is written explicitly as $(T^C_c)^{-1}$.

1.3 Projection Model

For point $p=(b,i)$, the homogeneous world coordinate is

$$ \boxed{ \bar X_p^W = T^B_{\beta(p)}\bar q_p. } $$

The camera-coordinate point is

$$ \boxed{ \bar X_{cp}^C = (T^C_c)^{-1}T^B_{\beta(p)}\bar q_p. } $$

and its Euclidean coordinate is

$$ \boxed{ X_{cp}^C = P_3 (T^C_c)^{-1}T^B_{\beta(p)}\bar q_p \in\mathbb R^3. } $$

Define $\Pi$ as the perspective-division operator, which converts a three-component homogeneous image coordinate into a two-dimensional pixel coordinate:

$$ \boxed{ \Pi\left( \begin{bmatrix} y_1\\y_2\\y_3 \end{bmatrix} \right)= \begin{bmatrix} y_1/y_3\\y_2/y_3 \end{bmatrix}, \qquad y_3\ne 0. } $$

The product $K_cX_{cp}^C$ gives homogeneous image coordinates. Applying $\Pi$ divides the first two components by the third, so the projected pixel is

$$ \boxed{ \hat u_{cp} = \Pi\left( K_cX_{cp}^C \right). } $$

For camera $c$, let $f_{x,c}$ and $f_{y,c}$ denote the horizontal and vertical focal lengths, respectively, measured in pixels. Let $(c_{x,c},c_{y,c})$ denote the principal-point coordinates in pixels, where the optical axis intersects the image plane. The subscript $c$ identifies the camera. For the standard zero-skew pinhole model, the intrinsic matrix is

$$ K_c= \begin{bmatrix} f_{x,c} & 0 & c_{x,c}\\ 0 & f_{y,c} & c_{y,c}\\ 0 & 0 & 1 \end{bmatrix}. $$

Writing

$$ X_{cp}^C= \begin{bmatrix} X\\Y\\Z \end{bmatrix}, $$

gives

$$ \boxed{ \hat u_{cp} = \begin{bmatrix} f_{x,c}X/Z+c_{x,c}\\ f_{y,c}Y/Z+c_{y,c} \end{bmatrix}. } $$

With the usual last row $[0,0,1]$ of $K_c$, the denominator in $\Pi(K_cX_{cp}^C)$ is the camera-frame depth $Z$. A visible point must have $Z>0$.

For a camera-frame point $X^C\in\mathbb R^3$ and a known intrinsic matrix $K$, define the camera pixel-projection operator

$$ \pi_K(X^C)=\Pi(KX^C). $$

Thus $\Pi$ performs perspective division, while $\pi_K$ includes the intrinsic matrix as well. For camera $c$, write $\pi_{K_c}$. These pinhole equations assume undistorted image coordinates. For fisheye or strongly distorted automotive cameras, replace $\pi_K$ by the calibrated camera projection model.

For a world-frame point, define the projection shorthand that also includes the camera pose:

$$ \pi_c(X^W;T^C_c) = \pi_{K_c}\left(P_3(T^C_c)^{-1}\bar X^W\right), $$

where $\bar X^W=[(X^W)^\top,1]^\top$. The reprojection residual is

$$ \boxed{ r_{cp}(T^C_c,T^B_{\beta(p)}) = \Pi\left( K_c P_3 (T^C_c)^{-1} T^B_{\beta(p)} \bar q_p \right)-u_{cp}. } $$

If the image measurement covariance is

$$ \Sigma_{u,cp}\in\mathbb R^{2\times2}, $$

the whitened residual is

$$ \boxed{ e_{cp}(T^C_c,T^B_{\beta(p)}) = \Sigma_{u,cp}^{-1/2} \left[ \Pi\left( K_c P_3 (T^C_c)^{-1} T^B_{\beta(p)} \bar q_p \right) - u_{cp} \right]. } $$

1.4 Board and World Measurement Priors

In the original EOL setup, some board marker coordinates may be measured in the world frame. Let

$$ z_p\in\mathbb R^3 $$

be the measured world coordinate of point $p$. Define the set of points with world measurements as

$$ \mathcal Z\subseteq\mathcal P. $$

The board/world residual is

$$ \boxed{ r^z_p(T^B_{\beta(p)}) = R^B_{\beta(p)} q_p+t^B_{\beta(p)}-z_p. } $$

With covariance

$$ \Sigma_{z,p}, $$

the board prior term is

$$ \boxed{ \phi_b(T^B_b) = \frac12 \sum_{p\in\mathcal P_b\cap\mathcal Z} \left\| R^B_b q_p+t^B_b-z_p \right\|_{\Sigma_{z,p}^{-1}}^2. } $$

You may also have camera pose priors, rig priors, or a fixed reference camera. Write those directly on the camera pose. Let $\bar T^C_c$ be the prior or nominal camera pose. The operator

$$ \operatorname{Log}: SE(3)\rightarrow\mathbb R^6 $$

is the Lie-group logarithm that converts a relative pose into a 6D tangent-vector error, usually ordered as three translation components and three rotation components. For example:

$$ \boxed{ \psi_c(T^C_c) = \frac12 \left\| \operatorname{Log} \left( (\bar T^C_c)^{-1}T^C_c \right) \right\|_{\Sigma_c^{-1}}^2. } $$

1.5 Centralized Calibration Objective

The cleanest problem is:

$$ \boxed{ \begin{aligned} \min_{\{T^B_b\},\{T^C_c\}} &\quad \sum_{(c,p)\in\mathcal E} \frac12 \left\| \Sigma_{u,cp}^{-1/2} \left[ \Pi\left( K_c P_3 (T^C_c)^{-1} T^B_{\beta(p)} \bar q_p \right) - u_{cp} \right] \right\|^2 \\ &\quad+ \sum_{b\in\mathcal B}\phi_b(T^B_b) + \sum_{c\in\mathcal C}\psi_c(T^C_c). \end{aligned} } \tag{P} $$

This is the point-level multi-board, multi-camera bundle-adjustment problem.

The graph edge is $(c,p)$, but the residual depends on

$$ T^C_c \quad\text{and}\quad T^B_{\beta(p)}. $$

So the raw observation graph is camera-point, while the variable graph is camera-board because each point is rigidly attached to a board.

This shared board-generated point is how multi-camera consistency enters the bundle-adjustment problem. If two cameras $c_1$ and $c_2$ observe the same point $p$, both reprojection residuals use the same world point

$$ X_p^W=R^B_{\beta(p)} q_p+t^B_{\beta(p)}. $$

Thus the two camera observations are coupled through the same board pose and the same physical marker point, rather than through two independent 3D point variables or an extra pairwise cross-camera residual.

With the uniform local-to-world convention, the board-to-camera relative transform is

$$ \boxed{ T_{CB}^{(c,b)} = (T^C_c)^{-1}T^B_b. } $$

This maps board $b$’s local coordinates into camera $c$’s local coordinates, so the projection can also be written as

$$ \boxed{ \hat u_{cp} = \Pi \left( K_c P_3 T_{CB}^{(c,\beta(p))} \bar q_p \right). } $$

1.6 Gauge Freedom and Identifiability

Without an absolute anchor, each connected component has an $SE(3)$ gauge freedom.

For any

$$ H\in SE(3), $$

the transformation

$$ \boxed{ (T^B_b)'=HT^B_b, } $$$$ \boxed{ (T^C_c)'=HT^C_c } $$

leaves every relative camera-board projection unchanged:

$$ ((T^C_c)')^{-1}(T^B_b)' = (HT^C_c)^{-1}(HT^B_b) = (T^C_c)^{-1}H^{-1}HT^B_b = (T^C_c)^{-1}T^B_b. $$

Therefore, every connected component needs at least one of the following:

$$ \text{one fixed board pose,} $$$$ \text{one fixed camera pose,} $$$$ \text{sufficient world-frame board-point measurements,} $$

or

$$ \text{sufficient camera/rig priors.} $$

Connectivity alone is not enough. The observations must also be geometrically nondegenerate: enough non-collinear board points, reasonable viewing angles, positive depth, and no nearly rank-deficient configurations.

2. Solver: Sparse Factor-Graph Bundle Adjustment

With the measurement model and gauge fixed, the solver estimates the poses for a given set of observations. It does not yet decide where to move the physical boards.

2.1 Solver Choice

Sparse factor-graph bundle adjustment is the recommended solver for this centralized EOL calibration problem. The detailed ADMM derivation, including point-copy and pose-copy consensus variants, is given in Appendix E.

2.2 Factor-Graph Structure

The centralized problem is also a factor graph.

Variables:

$$ \{T^B_b\}_{b=1}^B, \qquad \{T^C_c\}_{c=1}^C. $$

Factors:

$$ f_{cp}(T^C_c,T^B_{\beta(p)}) $$

for every observation edge $(c,p)\in\mathcal E$.

Board priors:

$$ \phi_b(T^B_b). $$

Camera priors:

$$ \psi_c(T^C_c). $$

GTSAM describes factor graphs as bipartite graphs connecting factors to the variables they depend on, and emphasizes that such sparse structure is exploited by nonlinear optimization methods.

This is arguably the cleanest implementation model: one factor per camera-point observation, with the point’s board membership determining which board pose variable the factor touches.

2.3 Sparse Updates and Schur Elimination

Solve the centralized objective using sparse nonlinear least squares over camera and board pose increments.

The problem is exactly:

$$ \boxed{ \begin{aligned} \min_{\{T^B_b\},\{T^C_c\}} &\quad \sum_{(c,p)\in\mathcal E} \frac12 \left\| \Sigma_{u,cp}^{-1/2} \left[ \Pi\left( K_c P_3 (T^C_c)^{-1} T^B_{\beta(p)} \bar q_p \right) - u_{cp} \right] \right\|^2 \\ &\quad+ \sum_b\phi_b(T^B_b) + \sum_c\psi_c(T^C_c). \end{aligned} } $$

Use translation-first left pose increments, expressed in the world frame:

$$ T^B_b\leftarrow \exp(\delta\xi_b^\wedge)T^B_b, $$$$ T^C_c\leftarrow \exp(\delta\eta_c^\wedge)T^C_c. $$

Section 3.4 derives the measurement Jacobians using this same convention. Linearize every residual:

$$ e_{cp} \approx e_{cp}^0 + J_{B,cp}\delta\xi_{\beta(p)} + J_{C,cp}\delta\eta_c. $$

Deriving the Damped Normal Equations

Stack all whitened image residuals and board/camera prior residuals at the current estimate into $r\in\mathbb R^m$. Stack the free camera and board pose increments into $\delta\in\mathbb R^n$, omitting fixed poses. Here $m$ is the number of scalar residuals and $n$ is the number of free scalar pose parameters. Let $J\in\mathbb R^{m\times n}$ be the Jacobian with respect to these increments, evaluated at the current estimate. The linearized residual vector is

$$ r(\delta)\approx r+J\delta, \qquad r=r(0). $$

The nonlinear least-squares objective is therefore approximated locally by

$$ \min_\delta\frac12\|r+J\delta\|^2. $$

Because this first-order residual approximation may be inaccurate for a large pose update, add a quadratic penalty on the update:

$$ \min_\delta q(\delta), \qquad q(\delta)= \frac12\|r+J\delta\|^2+ \frac{\lambda}{2}\delta^\top D_{\mathrm{LM}}\delta. $$

Here $\lambda\ge0$ is the damping parameter, and $D_{\mathrm{LM}}\in\mathbb R^{n\times n}$ is a positive diagonal damping matrix that sets the penalty scale for each increment coordinate. If translation and rotation increments have been scaled to comparable units, a simple choice is $D_{\mathrm{LM}}=I_n$, the $n\times n$ identity matrix. A common curvature-based choice is

$$ (D_{\mathrm{LM}})_{jj}= \max\left((J^\top J)_{jj},\varepsilon\right), \qquad j=1,\ldots,n, $$

where $\varepsilon>0$ is a small positive floor in the chosen parameter scaling. This keeps the damping penalty positive even for a coordinate whose Jacobian column is zero.

Expanding the quadratic gives

$$ q(\delta)= \frac12r^\top r+ \delta^\top J^\top r+ \frac12\delta^\top \left(J^\top J+\lambda D_{\mathrm{LM}}\right)\delta. $$

Differentiate with respect to $\delta$ and set the gradient to zero:

$$ \nabla_\delta q= J^\top r+ \left(J^\top J+\lambda D_{\mathrm{LM}}\right)\delta=0. $$

Rearranging yields the damped normal equations:

$$ \boxed{ \left(J^\top J+\lambda D_{\mathrm{LM}}\right)\delta = - J^\top r. } $$

Setting $\lambda=0$ gives the Gauss-Newton normal equations. Positive damping improves conditioning and penalizes large updates; the Levenberg-Marquardt method adjusts $\lambda$ according to how well a trial step reduces the nonlinear objective. The damping penalty is used to compute the update and is not a measurement prior. Camera-information and covariance calculations later in the article use the undamped measurement-and-prior normal matrix.

Schur Elimination

For this linear solve, define the damped system matrix and gradient vector as

$$ H=J^\top J+\lambda D_{\mathrm{LM}}, \qquad g=J^\top r. $$

Each image residual touches only one board pose and one camera pose. Since $D_{\mathrm{LM}}$ is diagonal, damping preserves this sparsity. Partition $\delta$ into the stacked camera increments $\delta C$ and board increments $\delta B$, and partition $H$ and $g$ in the same order:

$$ \begin{bmatrix} H_{CC} & H_{CB}\\ H_{BC} & H_{BB} \end{bmatrix} \begin{bmatrix} \delta C\\ \delta B \end{bmatrix} = - \begin{bmatrix} g_C\\ g_B \end{bmatrix}. $$

If there are no camera-camera priors, $H_{CC}$ is block diagonal over cameras before Schur fill-in. If there are no board-board priors, $H_{BB}$ is block diagonal over boards before Schur fill-in.

You can eliminate boards:

$$ \boxed{ \left( H_{CC} - H_{CB}H_{BB}^{-1}H_{BC} \right) \delta C = - g_C + H_{CB}H_{BB}^{-1}g_B. } $$

Then back-substitute:

$$ \boxed{ \delta B = - H_{BB}^{-1} \left( g_B+H_{BC}\delta C \right). } $$

Or eliminate cameras instead, depending on whether there are fewer cameras or fewer boards.

This is the same structural idea behind Schur methods in bundle adjustment. Ceres’ documentation describes bundle adjustment as minimizing reprojection error over cameras and 3D points, and its solver documentation explains that bundle adjustment has a special block structure that can be exploited with Schur complement methods.

2.4 Initialization and Engineering Pipeline

Use this hierarchy:

Best if centralized

Use sparse factor-graph bundle adjustment:

$$ \boxed{ \min_{\{T^B_b\},\{T^C_c\}} \sum_{(c,p)\in\mathcal E} \text{reprojection error} + \text{board priors} + \text{camera/rig priors}. } $$

This gives the best local convergence and avoids ADMM penalty tuning. In a centralized EOL station, it is better than ADMM as the production solver; the detailed rationale and benchmark comparison are in Appendix E.

If distribution is mandatory

Use ADMM only when camera-local ownership, communication limits, or distributed computation prevent a centralized solve. Appendix E contains the complete point-copy and pose-copy formulations.

Best engineering pipeline

  1. Initialize board poses from world measurements, if available.
  2. Initialize cameras using PnP against current board-generated world points.
  3. Run sparse centralized BA if possible.
  4. Use ADMM only if the system must be distributed, parallelized by camera/board, or too large for a single optimizer.
  5. Optionally use robust losses or outlier rejection on image residuals.

The estimation model can be summarized as follows:

$$ \boxed{ (c,p)\in\mathcal E \quad\text{is the primitive observation,} } $$$$ \boxed{ X_p^W=R^B_{\beta(p)} q_p+t^B_{\beta(p)} \quad\text{is the hard board constraint,} } $$$$ \boxed{ u_{cp} \approx \Pi\left(K_cP_3(T^C_c)^{-1}\bar X_p^W\right) \quad\text{is the camera measurement model.} } $$

Use this convention consistently:

$$ \boxed{ T^B_b: \text{board } b \rightarrow \text{world} } $$$$ \boxed{ T^C_c: \text{camera } c \rightarrow \text{world} } $$$$ \boxed{ T_{CB}^{(c,b)} = (T^C_c)^{-1}T^B_b: \text{board } b \rightarrow \text{camera } c. } $$

Everything else, including ADMM, sparse Schur bundle adjustment, and factor-graph optimization, is a solver strategy for this same constrained geometric estimation problem.

3. Board-Position and Orientation Optimization Formulation

The outer optimization chooses the physical position and orientation of each board. Its score comes from the reprojection measurements and priors in (P), not from numerical damping or solver-specific penalties.

The objective value itself is not a good placement guide. For a hypothetical board placement with perfectly predicted observations, the expected reprojection residual is zero almost everywhere. The useful placement information is in the local curvature of the objective: the reprojection Jacobian and the normal matrix or information matrix.

3.1 Design Variables and Lower-Level Calibration

Board placement is an outer design problem around the calibration estimator. The important distinction is between the commanded physical placement of a board and the pose estimated inside calibration:

$$ \begin{aligned} S_b &\in SE(3) \quad\text{is the designed physical placement,}\\ T_b^B &\in SE(3) \quad\text{is the board pose estimated by calibration.} \end{aligned} $$

Let

$$ s = \{S_b\}_{b=1}^B $$

be the board-placement design, and let

$$ x = \left( \{T_c^C\}_{c=1}^C, \{T_b^B\}_{b=1}^B \right) $$

be the lower-level calibration variables. For a fixed placement design $s$, the measurement graph, visibility, image uncertainty, and marker projections all depend on where the boards are placed. Write the visible camera-marker edge set as $\mathcal E(s)$.

The lower-level calibration problem is the same joint bundle-adjustment problem used throughout this article:

$$ x^\star(s) \in \underset{x}{\arg\min}\; \mathcal L(x;s), $$

with

$$ \begin{aligned} \mathcal L(x;s) &= \sum_{(c,p)\in\mathcal E(s)} \frac12 \left\| \Sigma_{u,cp}(s)^{-1/2} \left[ \Pi\left( K_c P_3 (T_c^C)^{-1} T_{\beta(p)}^B \bar q_p \right) - u_{cp}(s) \right] \right\|^2 \\ &\quad+ \sum_{b=1}^B \phi_b(T_b^B;S_b) + \sum_{c=1}^C \psi_c(T_c^C). \end{aligned} \tag{LL} $$

Here $\beta(p)$ maps marker point $p$ to its board, and $\bar q_p$ is the homogeneous board-frame marker coordinate. The term $\phi_b(T_b^B;S_b)$ connects the estimated board pose to the commanded physical placement. A pose-prior model is

$$ \phi_b(T_b^B;S_b) = \frac12 \left\| \operatorname{Log} \left( S_b^{-1}T_b^B \right) \right\|^2_{\Sigma_{S,b}^{-1}}. $$

If board marker corners are surveyed in the world frame, the same idea can be written as a world-point prior:

$$ \phi_b(T_b^B;S_b) = \frac12 \sum_{p\in\mathcal P_b\cap\mathcal Z} \left\| R_b^B q_p + t_b^B - z_p(S_b) \right\|^2_{\Sigma_{z,p}^{-1}}. $$

3.2 Placement-Dependent Measurements

The placement design $s$ affects the calibration problem through the visibility graph, the projected corner locations, the corner uncertainty, and the observed measurement graph. For a candidate placement $s$, define the predicted projection

$$ \hat u_{cp}(s) = \Pi\left( K_c P_3 (T_c^{C,\mathrm{true}})^{-1} S_{\beta(p)} \bar q_p \right). $$

The image measurement model is

$$ u_{cp}(s) = \hat u_{cp}(s) + \epsilon_{cp}(s), \qquad \epsilon_{cp}(s) \sim \mathcal N(0,\Sigma_{u,cp}(s)). $$

The covariance can depend on placement:

$$ \Sigma_{u,cp}(s) = \Sigma_{u,cp} \left( \text{projected marker size}, \text{viewing angle}, \text{blur}, \text{illumination}, \text{image location} \right). $$

The observation edge set is also placement-dependent:

$$ \mathcal E(s) = \left\{ (c,p): p\text{ is visible in camera }c \text{ under placement }s \right\}. $$

Define $Z_{cp}(s)$ as the depth of marker $p$ along camera $c$’s optical axis under placement design $s$:

$$ Z_{cp}(s)= \begin{bmatrix}0&0&1&0\end{bmatrix} (T_c^{C,\mathrm{true}})^{-1} S_{\beta(p)}\bar q_p. $$

The transformation maps the board marker into homogeneous camera-frame coordinates, and the row vector selects its third coordinate. Thus $Z_{cp}(s)>0$ requires the marker to lie in front of the camera. Here $T_c^{C,\mathrm{true}}$ is the camera-to-world pose that generates the measurements; when scoring a candidate placement in practice, use the current nominal camera pose in its place.

Define $\Omega_c^{\mathrm{margin}}$ as the usable image region after excluding a border margin. Let $W_c$ and $H_c$ be the image width and height in pixels, and let $m_c\ge0$ be the required margin in pixels. With zero-based pixel coordinates $(u,v)$, where $u$ is horizontal and $v$ is vertical,

$$ \Omega_c^{\mathrm{margin}}= \left\{ (u,v)\in\mathbb R^2: \begin{aligned} m_c&\le u\le W_c-1-m_c,\\ m_c&\le v\le H_c-1-m_c \end{aligned} \right\}. $$

Membership in this region keeps the projected marker at least $m_c$ pixels inside each boundary of the pixel-coordinate rectangle.

Using these definitions, a typical deterministic visibility condition is

$$ Z_{cp}(s)>0, \qquad \hat u_{cp}(s)\in\Omega_c^{\mathrm{margin}}, \qquad a_{cp}(s)\ge a_{\min}, \qquad \alpha_{cp}(s)\le \alpha_{\max}, $$

where $a_{cp}(s)$ is projected marker size and $\alpha_{cp}(s)$ is the viewing angle between the camera ray and the board normal.

3.3 Normal Matrix and Camera-Pose Information

For the calibration least-squares problem, the matrix used below is specifically the Gauss-Newton normal matrix. If

$$ F(x)=\frac12\|r(x)\|^2, $$

with residual vector $r(x)$ and Jacobian $J=\partial r/\partial x$, then the exact Hessian is

$$ \nabla^2 F(x) = J^\top J + \sum_i r_i(x)\nabla^2 r_i(x). $$

The normal matrix is

$$ \boxed{ H_{\mathrm{GN}}=J^\top J. } $$

This is the Gauss-Newton approximation of the Hessian. It is the right object for placement scoring for three reasons. First, after calibration, residuals are small, so the second term is usually negligible. Second, for a hypothetical candidate board, the predicted measurements are generated from the candidate itself, so the expected residual is zero and the second-order residual term vanishes in the local model. Third, with whitened Gaussian residuals, $J^\top J$ is the Fisher information matrix. Throughout the placement formulation and experiments, “Hessian” means this normal-matrix/information approximation unless stated otherwise.

What the Hessian Says About Each Component

For a small parameter perturbation $\delta$, the second-order Taylor expansion is

$$ F(x+\delta) \approx F(x)+\nabla F(x)^\top\delta+ \frac12\delta^\top\nabla^2F(x)\delta. $$

Near a stationary point, $\nabla F(x)\approx0$, so the local loss increase is approximately

$$ \Delta F \approx \frac12\delta^\top H\delta. $$

If only parameter component $x_j$ is perturbed, then

$$ \Delta F \approx \frac12H_{jj}\delta_j^2. $$

Therefore, $H_{jj}$ measures the local curvature with respect to $x_j$ while the other components are held fixed. A large value means that the loss changes rapidly in that coordinate; a small value means that the loss is locally insensitive to it. This comparison is meaningful only after rotation, translation, and other parameter units have been scaled consistently.

The off-diagonal entry $H_{jk}$ measures coupling between components $x_j$ and $x_k$. For a joint perturbation,

$$ \Delta F \approx \frac12H_{jj}\delta_j^2+ H_{jk}\delta_j\delta_k+ \frac12H_{kk}\delta_k^2. $$

A large off-diagonal term means that the effects of the two parameters are difficult to separate, or that a change in one can be partly compensated by a change in the other. In the calibration problem, the same interpretation applies to $6\times6$ camera and board pose blocks: diagonal blocks describe local pose curvature, while off-diagonal blocks describe camera-board or camera-camera coupling.

The normal matrix also separates by measurement factor. If the whitened least-squares objective is

$$ F(x)= \sum_i\frac12\|r_i(x)\|^2, $$

then

$$ H_{\mathrm{GN}}= \sum_i H_i, \qquad H_i=J_i^\top J_i. $$

For a proposed perturbation $\delta$, factor $i$ contributes the local quadratic increase

$$ \Delta F_i \approx \frac12\delta^\top H_i\delta= \frac12\|J_i\delta\|^2. $$

This provides a direct way to measure how much a particular corner observation, camera, or board constrains a chosen parameter direction. Contributions from multiple independent factors add through $\sum_iH_i$.

The Hessian diagonal alone does not give the marginal uncertainty of a parameter because it ignores compensation through the other parameters. After gauge freedoms have been removed, the joint covariance is approximately

$$ \operatorname{Cov}(\hat x) \approx H_{\mathrm{GN}}^{-1}, $$

and $(H_{\mathrm{GN}}^{-1})_{jj}$ describes the marginal uncertainty of component $x_j$ after accounting for all parameter correlations. Thus, $H_{jj}$ is fixed-others sensitivity, whereas $(H^{-1})_{jj}$ is all-others-adjusted uncertainty.

The Hessian does not, by itself, say how much a component contributes to the current scalar loss. The residual values determine the current loss and the gradient gives its first-order change. The Hessian describes how that contribution changes locally as the parameters move.

3.4 Linearized Measurement Information

For point $p$ on board $b$, recall its world coordinate

$$ X_p^W=R^B_bq_p+t^B_b. $$

The predicted camera-coordinate point is

$$ x_{cp} = \begin{bmatrix} X_{cp}\\Y_{cp}\\Z_{cp} \end{bmatrix} = (R^C_c)^\top \left( X_p^W-t^C_c \right). $$

The weighted reprojection residual is

$$ r_{cp} = \Sigma_{u,cp}^{-1/2} \left[ \Pi(K_cx_{cp})-u_{cp} \right]. $$

For a candidate board pose $T^B_b$, linearize the residual around the current camera and board estimates:

$$ r_{cp} \approx r_{cp}^{0} + A_{cp}\delta\eta_c + B_{cp}\delta\xi_b, $$

where

$$ A_{cp} = \frac{\partial r_{cp}}{\partial\delta\eta_c}, \qquad B_{cp} = \frac{\partial r_{cp}}{\partial\delta\xi_b}. $$

Let $J_\pi(x_{cp})=\partial\pi_{K_c}(x_{cp})/\partial x_{cp}$ denote the $2\times3$ Jacobian of the complete pixel projection with respect to the camera-frame point. It includes the focal lengths through $K_c$. For the zero-skew pinhole model,

$$ J_{\pi}(x_{cp}) = \begin{bmatrix} f_{x,c}/Z_{cp} & 0 & - f_{x,c}X_{cp}/Z_{cp}^{2} \\ 0 & f_{y,c}/Z_{cp} & - f_{y,c}Y_{cp}/Z_{cp}^{2} \end{bmatrix}. $$

Use the same left perturbations as in Section 2.3:

$$ T^C_c\leftarrow \exp(\delta\eta_c^\wedge)T^C_c, \qquad T^B_b\leftarrow \exp(\delta\xi_b^\wedge)T^B_b. $$

To derive the pose Jacobians, differentiate with respect to a six-dimensional pose perturbation. For a generic pose and a fixed point, write

$$ T=\begin{bmatrix}R&t\\0&1\end{bmatrix}, \qquad \bar x=\begin{bmatrix}x\\1\end{bmatrix}, \qquad y=P_3T\bar x=Rx+t. $$

Use translation-first perturbation coordinates:

$$ \delta\xi= \begin{bmatrix}\delta\rho\\\delta\phi\end{bmatrix}, \qquad \delta\xi^\wedge= \begin{bmatrix} [\delta\phi]_\times&\delta\rho\\ 0&0 \end{bmatrix}, $$

where $\delta\rho\in\mathbb R^3$ is the translational increment, $\delta\phi\in\mathbb R^3$ is the rotational increment, and $[a]_\times b=a\times b$. Because both poses map local coordinates to world coordinates, these left increments are expressed in the world frame. In particular, the first-order change in the pose’s translation is $\delta t=\delta\rho-[t]_\times\delta\phi$; $\delta\rho$ alone is not the full position change when the pose also rotates.

For the left update $T(\delta\xi)=\exp(\delta\xi^\wedge)T$, use $\exp(\delta\xi^\wedge)\approx I_4+\delta\xi^\wedge$ to obtain

$$ \begin{aligned} y(\delta\xi) &\approx y+\delta\rho+[\delta\phi]_\times y\\ &=y+\delta\rho-[y]_\times\delta\phi. \end{aligned} $$

The minus sign follows from $\delta\phi\times y=-y\times\delta\phi$. Thus,

$$ \boxed{ \left.\frac{\partial y(\delta\xi)}{\partial\delta\xi}\right|_{\delta\xi=0} =\begin{bmatrix}I_3&-[Rx+t]_\times\end{bmatrix} \in\mathbb R^{3\times6}. } $$

For comparison only, a right update $T(\delta\xi)=T\exp(\delta\xi^\wedge)$ uses increments expressed in the pose’s local frame and would give

$$ y(\delta\xi)\approx y+R\delta\rho-R[x]_\times\delta\phi, \qquad \left.\frac{\partial y(\delta\xi)}{\partial\delta\xi}\right|_{\delta\xi=0} =\begin{bmatrix}R&-R[x]_\times\end{bmatrix}. $$

These are derivatives with respect to a perturbation at the current pose, evaluated at zero increment. For the full homogeneous output $T\bar x$, append a zero row to obtain a $4\times6$ Jacobian. If rotation is ordered before translation, swap the two column blocks. The right-update formula is also given in Solà et al., A Micro Lie Theory for State Estimation in Robotics, Eq. (182).

The camera pose enters the measurement through its inverse. Holding the board pose fixed and writing $\bar x_{cp}=[x_{cp}^\top,1]^\top$, a left camera perturbation gives

$$ \begin{aligned} \bar x_{cp}(\delta\eta_c) &=\left(\exp(\delta\eta_c^\wedge)T^C_c\right)^{-1}T^B_b\bar q_p\\ &=(T^C_c)^{-1}\exp(-\delta\eta_c^\wedge)\bar X_p^W. \end{aligned} $$

With $\delta\eta_c=[\delta\rho_c^\top,\delta\phi_c^\top]^\top$, the first-order expansion is

$$ x_{cp}(\delta\eta_c) \approx x_{cp}+(R^C_c)^\top \left(-\delta\rho_c+[X_p^W]_\times\delta\phi_c\right). $$

Therefore,

$$ \left.\frac{\partial x_{cp}(\delta\eta_c)}{\partial\delta\eta_c}\right|_{\delta\eta_c=0} =(R^C_c)^\top\begin{bmatrix}-I_3&[X_p^W]_\times\end{bmatrix}. $$

Applying the chain rule through the pixel projection and the fixed whitening matrix gives the residual Jacobian.

Then the camera-pose Jacobian is

$$ \boxed{ A_{cp} = \Sigma_{u,cp}^{-1/2} J_\pi(x_{cp}) (R^C_c)^\top \begin{bmatrix} -I_3 & [X_p^W]_\times \end{bmatrix}. } $$

For the board pose, the point passes through the forward transform $T^B_b$. Its left perturbation gives

$$ X_p^W(\delta\xi_b) \approx X_p^W+\delta\rho_b-[X_p^W]_\times\delta\phi_b, \qquad \left.\frac{\partial X_p^W(\delta\xi_b)}{\partial\delta\xi_b}\right|_{\delta\xi_b=0} =\begin{bmatrix}I_3&-[X_p^W]_\times\end{bmatrix}. $$

Multiplication by $(R^C_c)^\top$ expresses that change in camera coordinates. The board-pose Jacobian is

$$ \boxed{ B_{cp} = \Sigma_{u,cp}^{-1/2} J_\pi(x_{cp}) (R^C_c)^\top \begin{bmatrix} I_3 & -[X_p^W]_\times \end{bmatrix}. } $$

For each image observation, $A_{cp}=-B_{cp}$. This is a useful consistency check: applying the same world-frame perturbation to the camera and board leaves their relative pose, and therefore the projection, unchanged. Priors can break this common-motion ambiguity by anchoring poses to the world.

These Jacobians convert a candidate physical board placement into expected camera-pose information using the same coordinates as the solver in Section 2.3. All measurement and prior Jacobians used below must be taken with respect to these left increments. Prior pose information supplied in another coordinate convention must be transformed into these coordinates before assembling the information matrix.

3.5 Marginalizing Uncertain Board Poses

Consider all $C$ cameras and all $B$ boards jointly. Stack their world-frame left pose increments from Section 3.4 as

$$ \delta C = \begin{bmatrix} \delta\eta_1\\ \vdots\\ \delta\eta_C \end{bmatrix} \in\mathbb R^{6C}, \qquad \delta B = \begin{bmatrix} \delta\xi_1\\ \vdots\\ \delta\xi_B \end{bmatrix} \in\mathbb R^{6B}. $$

Introduce selection matrices for both camera and board blocks:

$$ E_c\in\mathbb R^{6\times6C}, \qquad E_b^B\in\mathbb R^{6\times6B}, \qquad E_c\delta C=\delta\eta_c, \quad E_b^B\delta B=\delta\xi_b. $$

Each selection matrix contains one $I_6$ block at the selected pose’s position and zeros elsewhere. It extracts that pose’s increment from the full parameter vector. The displayed dimensions include all poses; fixed-pose blocks are omitted when solving or evaluating covariance.

For observation $(c,p)$ on board $b=\beta(p)$, embed both local Jacobians:

$$ \boxed{ \widetilde A_{cp}=A_{cp}E_c\in\mathbb R^{2\times6C}, \qquad \widetilde B_{cp}=B_{cp}E_b^B\in\mathbb R^{2\times6B}. } $$

The residual linearization is therefore

$$ r_{cp}\approx r_{cp}^0+ \widetilde A_{cp}\delta C+ \widetilde B_{cp}\delta B. $$

For example, $\widetilde A_{cp}$ has nonzero columns only for camera $c$, and $\widetilde B_{cp}$ has nonzero columns only for board $b$. Stack all $m=|\mathcal E|$ whitened image residuals and their embedded Jacobians:

$$ r\approx r^0+J_C\delta C+J_B\delta B, \qquad J_C=\operatorname{stack}_{(c,p)\in\mathcal E}\widetilde A_{cp}, \quad J_B=\operatorname{stack}_{(c,p)\in\mathcal E}\widetilde B_{cp}. $$

Here $J_C\in\mathbb R^{2m\times6C}$ and $J_B\in\mathbb R^{2m\times6B}$. Define the joint pose increment

$$ \delta=\begin{bmatrix}\delta C\\\delta B\end{bmatrix}. $$

Let $r_{\mathrm{prior}}^0$ stack the whitened board, camera, and any coupled prior residuals at the current estimate, and let $J_{\mathrm{prior}}$ be their Jacobian with respect to $\delta$. The full local least-squares cost is

$$ \boxed{ \ell(\delta C,\delta B)= \frac12\left\|r^0+J_C\delta C+J_B\delta B\right\|^2 +\frac12\left\|r_{\mathrm{prior}}^0+J_{\mathrm{prior}}\delta\right\|^2. } $$

This is the same linearized residual model used in Section 2.3, with image residuals and prior residuals written separately and no solver damping. It approximates the nonlinear cost near the current estimate. Expanding it gives

$$ \begin{aligned} \ell(\delta C,\delta B) &=\ell_0+g^\top\delta+\frac12\delta^\top H\delta\\ &=\ell_0+g_C^\top\delta C+g_B^\top\delta B\\ &\quad+\frac12\delta C^\top H_{CC}\delta C +\delta C^\top H_{CB}\delta B +\frac12\delta B^\top H_{BB}\delta B, \end{aligned} $$

where the constant term and gradient are

$$ \ell_0=\frac12\|r^0\|^2+\frac12\|r_{\mathrm{prior}}^0\|^2, \qquad g=\begin{bmatrix}g_C\\g_B\end{bmatrix} =\begin{bmatrix}J_C^\top r^0\\J_B^\top r^0\end{bmatrix} +J_{\mathrm{prior}}^\top r_{\mathrm{prior}}^0. $$

The joint information matrix is

$$ H= \begin{bmatrix} J_C^\top J_C&J_C^\top J_B\\ J_B^\top J_C&J_B^\top J_B \end{bmatrix} +H_{\mathrm{prior}} =\begin{bmatrix} H_{CC}&H_{CB}\\ H_{BC}&H_{BB} \end{bmatrix}. $$

Here $H_{\mathrm{prior}}=J_{\mathrm{prior}}^\top J_{\mathrm{prior}}$. Thus $H$ is the undamped Gauss-Newton matrix $H_{\mathrm{GN}}$ of Section 3.3. If image and prior residuals are stacked together, it is simply $J^\top J$. The quadratic form $\tfrac12\delta^\top H\delta$ acts on pose increments; residual offsets enter through $\ell_0$ and $g$.

Section 2.3 adds $\lambda D_{\mathrm{LM}}$ to this matrix when computing a damped update. That penalty is excluded from information and covariance calculations. All blocks here, including the prior terms, are evaluated at the same candidate placement and linearization point, with respect to the same left pose increments.

For camera-pose guidance, the camera poses are the quantities of interest. Board poses are auxiliary unknowns estimated jointly with them, often called nuisance variables. Their uncertainty must be included when evaluating camera calibration accuracy.

Assume the free board block $H_{BB}$ is positive definite. Hold the camera increment $\delta C$ fixed and minimize the full local cost over $\delta B$:

$$ \frac{\partial\ell}{\partial\delta B} =g_B+H_{BC}\delta C+H_{BB}\delta B=0. $$

Therefore,

$$ \boxed{ \delta B^*(\delta C) =-H_{BB}^{-1}\left(g_B+H_{BC}\delta C\right). } $$

These are the board motions that best fit the current residuals and the proposed camera motion in the local model. The term $-H_{BB}^{-1}g_B$ accounts for the existing residual offsets. Substituting the optimal board increments into the cost gives

$$ \begin{aligned} \ell_{\mathrm{red}}(\delta C) &=\ell\left(\delta C,\delta B^*(\delta C)\right)\\ &=\ell_0+g_C^\top\delta C+\frac12\delta C^\top H_{CC}\delta C\\ &\quad-\frac12\left(g_B+H_{BC}\delta C\right)^\top H_{BB}^{-1}\left(g_B+H_{BC}\delta C\right)\\ &=\ell_{0,\mathrm{red}}+\bar g_C^\top\delta C +\frac12\delta C^\top\Lambda_C\delta C, \end{aligned} $$

with reduced constant and gradient

$$ \ell_{0,\mathrm{red}}=\ell_0-\frac12g_B^\top H_{BB}^{-1}g_B, \qquad \bar g_C=g_C-H_{CB}H_{BB}^{-1}g_B. $$

The Hessian of this reduced cost is the Schur complement of the full board-pose block. It gives the effective information about all camera poses after eliminating all board increments:

$$ \boxed{ \Lambda_C=H_{CC}-H_{CB}H_{BB}^{-1}H_{BC}. } $$

Differentiating the reduced cost gives the camera update equation

$$ \boxed{ \Lambda_C\delta C^*=-\bar g_C =-g_C+H_{CB}H_{BB}^{-1}g_B. } $$

This is exactly the Schur-reduced normal equation in Section 2.3 with damping set to zero. The linear terms determine the update, while the quadratic term determines its information. No zero-gradient assumption is needed to obtain $\Lambda_C$.

Although the derivation above minimizes over the board increments, Gaussian marginalization gives the same information matrix. Completing the square in the full local cost yields

$$ \begin{aligned} \ell(\delta C,\delta B) &=\ell_{\mathrm{red}}(\delta C)\\ &\quad+\frac12\left(\delta B-\delta B^*(\delta C)\right)^\top H_{BB}\left(\delta B-\delta B^*(\delta C)\right). \end{aligned} $$

Integrating the corresponding Gaussian factor over all free board increments gives, when all $B$ boards are free,

$$ \begin{aligned} \int_{\mathbb R^{6B}}\exp[-\ell(\delta C,\delta B)]\,d(\delta B) &\propto\exp[-\ell_{\mathrm{red}}(\delta C)]\\ &\propto\exp\left[-\bar g_C^\top\delta C -\frac12\delta C^\top\Lambda_C\delta C\right]. \end{aligned} $$

The integration contributes a factor that depends on $H_{BB}$ but not on $\delta C$. The marginalized Gaussian therefore retains both the reduced gradient $\bar g_C$ and information $\Lambda_C$. When $\Lambda_C$ is positive definite, its mean is $\delta C^*=-\Lambda_C^{-1}\bar g_C$. This equivalence applies to the fixed linearized Gaussian model used for the information calculation.

The term $H_{CC}$ is the camera information when board increments are held fixed. The subtracted term is positive semidefinite and represents the information lost because board motion can explain some of the same image changes as camera motion. After the gauge has been fixed, the predicted camera-pose covariance is approximately

$$ \boxed{\Sigma_C\approx\Lambda_C^{-1}.} $$

Here $\Sigma_C$ is the covariance of the stacked left increments $\delta C$. This inverse requires $\Lambda_C$ to be nonsingular. If gauge freedoms remain, restrict the calculation to identifiable coordinates; a pseudoinverse on that subspace does not provide absolute-pose uncertainty along unobservable directions.

The single-board expression is a special case of this joint derivation. If no factors couple different boards, then

$$ H_{BB}=\operatorname{blkdiag}_{b=1}^{B}(H_{bb}), \qquad \boxed{\Lambda_C=H_{CC}-\sum_{b=1}^{B}H_{Cb}H_{bb}^{-1}H_{bC}.} $$

Here $H_{bb}$ is the $6\times6$ information block for board $b$, and $H_{Cb}$ couples all camera increments to that board’s increment.

To identify one board’s contribution, let $\mathcal E_b=\{(c,p)\in\mathcal E:\beta(p)=b\}$ and stack only its observations:

$$ A_b=\operatorname{stack}_{(c,p)\in\mathcal E_b}(A_{cp}E_c), \qquad B_b=\operatorname{stack}_{(c,p)\in\mathcal E_b}B_{cp}. $$

Here $A_b$ still uses the full camera vector, while $B_b$ is local to the single increment $\delta\xi_b$. Its global embedding is $B_bE_b^B$, exactly as in the full system above.

If the priors separate into camera-only factors and independent board priors, let $\Lambda_b^{\mathrm{prior}}$ be board $b$’s prior information. Then

$$ H_{Cb}=A_b^\top B_b, \qquad H_{bb}=B_b^\top B_b+\Lambda_b^{\mathrm{prior}}, \qquad H_{CC}=H_{CC}^{\mathrm{prior}}+\sum_{b=1}^{B}A_b^\top A_b. $$

The effective contribution from board $b$ is therefore

$$ \boxed{ \Delta\Lambda_{C,b}(T_b^B)= A_b^\top A_b- A_b^\top B_b \left(B_b^\top B_b+\Lambda_b^{\mathrm{prior}}\right)^{-1} B_b^\top A_b, } $$

and the complete camera information is

$$ \Lambda_C=H_{CC}^{\mathrm{prior}}+\sum_{b=1}^{B}\Delta\Lambda_{C,b}(T_b^B). $$

This expression has three useful interpretations.

  1. If a board pose is accurately known, increasing its prior precision in every pose direction makes $\Delta\Lambda_{C,b}\approx A_b^\top A_b$. Almost all image information from that board contributes to the camera poses.
  2. A weaker board prior permits more board motion to compensate for camera motion, reducing the effective camera information.
  3. Without an absolute anchor, a simultaneous global transformation of all camera and board poses leaves projections unchanged. The full $\Lambda_C$ then retains unobservable absolute-pose directions.

As a scalar example, suppose a measurement observes the relative position $z=x-y+\epsilon$, where $x$ is a camera position, $y$ is a board position, and $\epsilon\sim\mathcal N(0,\sigma^2)$. With an independent Gaussian board-position prior of variance $\tau^2$, the effective camera information is

$$ \Lambda_{\mathrm{scalar}} =\frac{1}{\sigma^2} -\frac{1/\sigma^4}{1/\sigma^2+1/\tau^2} =\frac{1}{\sigma^2+\tau^2}. $$

The measurement uncertainty and board-position uncertainty add, reducing the information available about the camera position.

For placement scoring, assemble the joint matrix $H(s)$ for each hypothetical multi-board placement $s$, then compute its Schur complement and camera covariance. An independent newly added board can contribute an additional $\Delta\Lambda_{C,b}$ under the separable-prior assumptions above. Moving or replacing an existing board requires updating its affected factors; its old and new contributions should not both be counted. With coupled board priors, use the full $H_{BB}$ elimination rather than the per-board sum.

If the model includes other nuisance variables, collect them with the board poses in a vector $N$ and use the same construction:

$$ \Lambda_C(s)=H_{CC}(s)-H_{CN}(s)H_{NN}(s)^{-1}H_{NC}(s), \qquad \Sigma_C(s)\approx\Lambda_C(s)^{-1}. $$

This is the next-best-pose principle: evaluate the expected measurements of a hypothetical placement, account for all nuisance uncertainty, and select the placement that gives the largest camera-uncertainty reduction.

3.6 Upper-Level Camera-Uncertainty Objective

The upper-level problem chooses $s$ so that the lower-level camera poses are accurate and well conditioned. Optimized reprojection residual is not the best design objective, because a weak or degenerate layout can still fit its own noisy observations. A more useful objective is camera-pose uncertainty.

Linearize the lower-level residuals at the nominal solution and split the perturbation into camera-pose variables and nuisance variables:

$$ \delta x = \begin{bmatrix} \theta\\ \zeta \end{bmatrix}, $$

where $\theta=\delta C$ contains camera-pose perturbations and $\zeta=\delta B$ contains board-pose perturbations from Section 3.5, both using world-frame left increments; additional nuisance variables can also be included in $\zeta$. The Gauss-Newton or Fisher information matrix is

$$ H(s) = J(s)^\top W(s)J(s) + H_{\mathrm{prior}}(s). $$

Here $J(s)$ stacks the unwhitened image-residual Jacobians and $W(s)$ contains their measurement precisions. Equivalently, use the whitened Jacobians of Section 3.5 and omit $W(s)$. Partition the information matrix as

$$ H(s) = \begin{bmatrix} H_{\theta\theta}(s) & H_{\theta\zeta}(s)\\ H_{\zeta\theta}(s) & H_{\zeta\zeta}(s) \end{bmatrix}. $$

After marginalizing the board poses and other nuisance variables, the effective camera-pose information is the Schur complement:

$$ \Lambda_\theta(s) = H_{\theta\theta}(s) - H_{\theta\zeta}(s) H_{\zeta\zeta}(s)^{-1} H_{\zeta\theta}(s). $$

The predicted camera-pose covariance is

$$ \Sigma_\theta(s) \approx \Lambda_\theta(s)^{-1}. $$

The A-optimal board-placement problem is therefore

$$ \boxed{ \begin{aligned} s^\star = \underset{s\in\mathcal S}{\arg\min} &\quad \operatorname{tr} \left( D\Lambda_\theta(s)^{-1}D^\top \right) + \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s) \\ \text{s.t.} &\quad x^\star(s) \in \underset{x}{\arg\min}\;\mathcal L(x;s), \\ &\quad \Lambda_\theta(s) = H_{\theta\theta}(s) - H_{\theta\zeta}(s)H_{\zeta\zeta}(s)^{-1}H_{\zeta\theta}(s), \\ &\quad s\in\mathcal S. \end{aligned} } \tag{BL-A} $$

The matrix $D$ maps the left pose increments to the errors being scored and normalizes their units. If the tolerances concern camera-center position and orientation, first use the position-change relation from Section 3.4:

$$ \begin{bmatrix}\delta t_c^C\\\delta\phi_c\end{bmatrix} =G_c\delta\eta_c, \qquad G_c=\begin{bmatrix} I_3&-[t_c^C]_\times\\ 0&I_3 \end{bmatrix}. $$

For position tolerance $\sigma_t$ in metres and angular tolerance $\sigma_\phi$ in radians, choose

$$ D=\operatorname{blkdiag}_{c=1}^{C} \left( \begin{bmatrix} \sigma_t^{-1}I_3&0\\ 0&\sigma_\phi^{-1}I_3 \end{bmatrix}G_c \right). $$

Evaluate $G_c$ at the nominal camera pose and omit fixed-camera blocks. Then $D\Sigma_\theta D^\top$ is the normalized covariance of camera-center position and world-frame orientation increments. Direct diagonal scaling without $G_c$ would instead score the left tangent’s translation component $\delta\rho_c$. At $T_c^C=I$, as in Section 4.1, $G_c=I_6$ and the two coincide.

The feasible set $\mathcal S$ contains the physical and production constraints:

$$ \mathcal S = \left\{ s=\{S_b\}_{b=1}^B: g_{\mathrm{phys}}(s)\le 0,\; g_{\mathrm{vis}}(s)\le 0,\; g_{\mathrm{quality}}(s)\le 0,\; g_{\mathrm{time}}(s)\le 0 \right\}. $$

Typical constraints are board mountable regions, collision avoidance with the vehicle, minimum spacing between boards, image-bound margins, minimum visible marker count, acceptable viewing angle, acceptable projected marker size, and takt-time or robot-motion limits.

3.7 Feasible Physical Placements

The upper-level feasible set should encode physical, visibility, quality, and production constraints:

$$ \boxed{ \mathcal S = \left\{ s=\{S_b\}_{b=1}^B: g_{\mathrm{phys}}(s)\le 0,\; g_{\mathrm{vis}}(s)\le 0,\; g_{\mathrm{quality}}(s)\le 0,\; g_{\mathrm{time}}(s)\le 0 \right\}. } $$

Typical physical constraints include

$$ S_b\in SE(3), \qquad t_b\in\mathcal W_{\mathrm{factory}}, \qquad R_b e_3\cdot n_{\mathrm{floor/wall}} \ge \gamma_{\mathrm{mount}}, $$$$ \operatorname{dist}(S_b,S_{b'}) \ge d_{\min}, \qquad \operatorname{collision}(S_b,\text{vehicle})=0. $$

Typical visibility and quality constraints include

$$ Z_{cp}(s)>0, \qquad \hat u_{cp}(s)\in\Omega_c^{\mathrm{margin}}, \qquad N_{cb}^{\mathrm{visible}}(s)\ge N_{\min}, $$$$ a_{\min}\le a_{cp}(s)\le a_{\max}, \qquad \alpha_{cp}(s)\le \alpha_{\max}. $$

For an EOL station, takt-time or robot-motion constraints can be added as

$$ C_{\mathrm{move}}(s)\le C_{\max}. $$

Corner-Quality and Detection Constraints

Pure geometric information can favor an excessively oblique board. In practice, strong foreshortening makes corners elongated, blurred, or difficult to detect. Candidate scoring should therefore use pose-dependent image covariance,

$$ \Sigma_{u,cp} = \Sigma_{u,cp}(T^B_b), $$

or an expected detection probability:

$$ \Delta H(T^B_b) = \sum_{(c,p)\in\mathcal E(T^B_b)} p_{\mathrm{det},cp}(T^B_b) J_{cp}^{\top} \Sigma_{u,cp}^{-1}(T^B_b) J_{cp}. $$

This balances geometric strength against actual feature-localization accuracy. Otherwise, the placement optimizer can prefer grazing views that look informative geometrically but produce anisotropic and unreliable corner measurements.

The feasible set $\mathcal F$ should therefore require:

$$ Z_{cp}>0, $$

enough visible markers, image points inside the image with a safety margin, sufficient projected square size, acceptable focus and illumination, and a non-grazing incidence angle.

3.8 Continuous Board-Pose Optimization

For continuous placement variables, optimize the uncertainty objective subject to the feasible set, using derivatives of the predicted information matrix. A numerical iteration proposes a new board pose; it does not require collecting an image or physically moving the board at every step. The first experiment instantiates this formulation with SLSQP.

The derivative below applies locally where the measurement model is differentiable and the visibility set is fixed. Visibility changes and geometric constraints must also be handled by the placement optimizer.

For the uncertainty objective

$$ \mathcal U(s) = \operatorname{tr} \left( D\Lambda_\theta(s)^{-1}D^\top \right), $$

the differential is

$$ \boxed{ d\mathcal U = - \operatorname{tr} \left[ \Lambda_\theta^{-1} D^\top D \Lambda_\theta^{-1} d\Lambda_\theta \right]. } $$

The Schur-complement differential is

$$ \boxed{ \begin{aligned} d\Lambda_\theta &= dH_{\theta\theta} - dH_{\theta\zeta}H_{\zeta\zeta}^{-1}H_{\zeta\theta} \\ &\quad + H_{\theta\zeta}H_{\zeta\zeta}^{-1} dH_{\zeta\zeta} H_{\zeta\zeta}^{-1}H_{\zeta\theta} \\ &\quad - H_{\theta\zeta}H_{\zeta\zeta}^{-1} dH_{\zeta\theta}. \end{aligned} } $$

This gives a path to gradient-based board-placement optimization when the placement variables are continuous.

3.9 Sequential Next-Board Placement

If boards are placed one at a time, the upper level becomes a next-best-placement problem. Suppose the current calibration data provide camera-pose information

$$ \Lambda_\theta^{\mathrm{cur}}. $$

A candidate new board placement $s_{\mathrm{new}}$ contributes expected information

$$ \Delta\Lambda_\theta(s_{\mathrm{new}}). $$

Then choose

$$ \boxed{ \begin{gathered} s_{\mathrm{new}}^\star = \underset{s_{\mathrm{new}}\in\mathcal S_{\mathrm{new}}}{\arg\min} \\ \left\{ \begin{aligned} &\operatorname{tr} \left[ D \left( \Lambda_\theta^{\mathrm{cur}} + \Delta\Lambda_\theta(s_{\mathrm{new}}) \right)^{-1} D^\top \right] \\ &\quad+\lambda_{\mathrm{cost}}C_{\mathrm{place}}(s_{\mathrm{new}}) \end{aligned} \right\}. \end{gathered} } \tag{NBP} $$

For a budget of $M$ future placements, jointly optimize all $M$ poses:

$$ \boxed{ \begin{gathered} \{s_m^\star\}_{m=1}^M = \underset{\{s_m\}_{m=1}^M\subset\mathcal S}{\arg\min} \\ \left\{ \begin{aligned} &\operatorname{tr} \left[ D \left( \Lambda_\theta^{\mathrm{cur}} + \sum_{m=1}^M \Delta\Lambda_\theta(s_m) \right)^{-1} D^\top \right] \\ &\quad+\lambda_{\mathrm{cost}} \sum_{m=1}^M C_{\mathrm{place}}(s_m) \end{aligned} \right\}. \end{gathered} } \tag{NBP-M} $$

Equation (NBP-M) chooses the entire set of $M$ future board placements, scoring the camera-pose uncertainty after their combined measurements and the total placement cost. The single-placement problem (NBP) is the $M=1$ special case. A greedy sequential strategy solves (NBP) repeatedly, updating the current information after each acquisition; its resulting set need not achieve the joint $M$-placement optimum.

Interpreting the Information Geometrically

The information matrix translates into concrete board-placement guidance:

Board-placement propertyEffect on pose estimation
Large board footprint in the imageThe $1/Z$ terms in $J_\pi$ increase, and widely separated points provide stronger rotational leverage.
Corners distributed across both image axesImproves sensitivity to optical-axis translation and rotation; avoids concentrating information near the principal point.
Moderate tilt about both board axesIntroduces depth variation across the board and separates pitch/yaw errors from translation errors.
Different board normals across acquisitionsAdds complementary information instead of repeatedly measuring the same weak parameter combinations.
Different lateral positions and depthsReduces correlations such as $t_x$-yaw, $t_y$-pitch, and $t_z$-tilt.
Accurate world measurement of the board posePrevents camera information from being lost while jointly estimating an uncertain board pose.
Simultaneous visibility in overlapping camerasCouples those camera poses through one shared physical board and strengthens relative calibration.

Therefore, repeatedly placing a small, fronto-parallel board at the image center is usually inefficient. It generates nearly redundant Jacobian rows. A better sequence contains:

  1. A large, well-centered observation for robust initialization.
  2. A laterally displaced observation with tilt about one board axis.
  3. An observation on the opposite side with tilt about the other axis.
  4. A different board-to-camera distance.
  5. For multi-camera calibration, placements in camera-overlap regions so the same board points are observed by multiple cameras.

The exact next placement should be determined by the weakest eigenvector of the current marginalized information matrix. For example, if the largest covariance direction is mostly a combination of camera $t_z$ and pitch, the next-best score will usually favor a laterally displaced and tilted board rather than another centered, fronto-parallel observation.

Practical Placement-Optimization Loop

The resulting EOL procedure is:

  1. Solve centralized problem (P) using all measurements currently available.
  2. Compute the current sparse normal matrix and camera-pose covariance.
  3. Parameterize the board’s continuous position and orientation and define workspace, visibility, and corner-quality constraints.
  4. At each numerical trial pose, predict visibility, pixel positions, corner covariance, and reprojection Jacobians.
  5. For an additional observation, add its predicted information to the current normal matrix; for a replacement, rebuild the information for the revised layout without double-counting the old observation.
  6. Marginalize board poses and other nuisance variables with the Schur complement.
  7. Optimize the normalized camera-pose uncertainty over the feasible pose variables. If the station allows only a discrete set of mounts, solve the corresponding candidate-selection problem instead.
  8. Place and survey the board, capture the observations, resolve (P), and repeat.

The central idea is:

$$ \boxed{ \text{The loss estimates the poses; its marginalized curvature tells us where to place the board.} } $$

3.10 Complete Board-Placement Formulation

For the method statement, the most useful final form is

$$ \boxed{ \begin{aligned} s^\star = \underset{s\in\mathcal S}{\arg\min} &\quad \operatorname{tr} \left( D \Lambda_\theta(s)^{-1} D^\top \right) + \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s) \\ \text{s.t.} &\quad x^\star(s) = \underset{x}{\arg\min} \; \mathcal L(x;s), \\ &\quad \Lambda_\theta(s) = H_{\theta\theta}(s) - H_{\theta\zeta}(s)H_{\zeta\zeta}(s)^{-1}H_{\zeta\theta}(s), \\ &\quad H(s) = J(s)^\top W(s)J(s) + H_{\mathrm{prior}}(s), \\ &\quad s\in\mathcal S. \end{aligned} } \tag{BL-final} $$

In words, the lower level estimates camera and board poses, while the upper level chooses physical board placements that make the lower-level camera-pose estimate maximally informative. The final objective should not merely minimize the lower-level reprojection error. It should minimize the predicted camera-pose uncertainty induced by that lower-level optimization.

The experiments now instantiate this formulation with increasing system complexity. Alternative criteria, residual-based objectives, and the fixed-budget discrete subset formulation are retained in Appendix C.

4. Experiments from Simple to Complex

The first experiment directly optimizes a continuous six-coordinate board pose. The subsequent experiments introduce a second camera, uncertain board poses, partial multi-camera visibility, and a vehicle-scale layout. Discrete candidate searches are labeled separately: they address restricted layout choices rather than replace the continuous optimization method.

4.1 One Camera, One Board: Continuous Pose Optimization

Start with one fixed camera and one movable board. The task is to optimize the board’s position and orientation so that a subsequent image estimates the camera’s six-degree-of-freedom extrinsic pose as accurately as possible. The camera intrinsics are already known. We start from one board pose and use continuous constrained optimization; we do not choose among a few manually prescribed placements.

The board’s world pose must be known after moving it, for example from an accurately surveyed fixture. In this first example, that pose is treated as exact. If both the camera and board poses were completely unknown, an image would determine only their relative pose, not the camera’s absolute world pose. Finite board-survey uncertainty is handled by the marginalization in Section 3.5; this first experiment isolates the exactly known-board case.

Geometry and Design Variables

Use the nominal camera frame as the world frame: $x$ points right, $y$ down, and $z$ forward. The fixed camera has a $1280\times960$ image, $f_x=f_y=800$ pixels, principal point $(640,480)$, and no distortion. The board has $7\times5$ corners with $0.10$ m spacing, spanning $0.60\times0.40$ m.

The simulation’s true camera pose equals the nominal pose. In a real station, evaluate the design using the current approximate camera pose; the purpose of the new image is to refine that estimate.

The six continuous design variables are

$$ s=(x_B,y_B,z_B,\alpha,\beta,\gamma). $$

Translation is in metres and the reported angles are in degrees. Define the board-to-world rotation and world corner positions by

$$ R_B(s)= R_z(\gamma)R_y(\beta)R_x(\alpha) \operatorname{diag}(1,-1,-1), \qquad X_i(s)=R_B(s)q_i+t_B. $$

At zero angles the printed board normal faces the camera. These are fixed-axis $x,y,z$ Euler angles, matching SciPy’s lowercase xyz convention. The initial board pose is

$$ s_0=(0.25,\;0.15,\;2.50,\;5^\circ,\;8^\circ,\;0^\circ). $$

Turn Camera Uncertainty into the Placement Objective

For each proposed board pose, predict the corner locations and the camera-pose Jacobian. At the nominal camera pose $T_C=I$, use camera perturbations ordered as $\delta\theta=(\delta t,\delta\omega)$, with translation in metres and rotation in radians:

$$ J_i(s)= \frac{1}{\sigma_i(s)} J_\pi(X_i(s)) \begin{bmatrix}-I &[X_i(s)]_\times\end{bmatrix}, \qquad J(s)=\operatorname{stack}_i J_i(s). $$

Here $J_\pi(X)=\partial\pi_K(X)/\partial X$ differentiates the complete pixel projection defined in Section 1.3, including the focal lengths, and $[X]_\times v=X\times v$. The factor $1/\sigma_i$ whitens the two pixel-coordinate residuals for corner $i$.

To represent poorer corner localization at grazing angles, assume the illustrative noise model

$$ \nu_i(s)=n_B(s)^\top\frac{-X_i(s)}{\|X_i(s)\|}, \qquad \sigma_i(s)=\frac{0.25}{\nu_i(s)}\ \mathrm{px}. $$

Here $n_B=R_B(0,0,1)^\top$ is the printed board normal. The feasibility constraints below keep $\nu_i$ positive and away from zero. This incidence-dependent noise is an assumed model, not a measured property of a particular camera. For camera-pose estimation, its values are fixed at the nominal design geometry.

With independent Gaussian image noise and a full-rank whitened Jacobian, the local camera-pose covariance is approximately

$$ H(s)=J(s)^\top J(s), \qquad C(s)=H(s)^{-1}. $$

This is a local, linearized covariance prediction, not a guarantee of global pose-estimation accuracy; see the Ceres covariance documentation.

Normalize translation by a $5$ mm tolerance and rotation by a $0.1^\circ$ tolerance:

$$ D= \operatorname{diag} \left( \frac{1}{0.005}, \frac{1}{0.005}, \frac{1}{0.005}, \frac{1}{\pi/1800}, \frac{1}{\pi/1800}, \frac{1}{\pi/1800} \right). $$

The board-placement optimization is

$$ \boxed{ s^\star= \underset{s\in\mathcal S}{\arg\min}\; U(s), \qquad U(s)=\operatorname{tr}\!\left(D\,C(s)\,D^\top\right). } $$

Thus we minimize over the physical board pose $s$, not the camera pose. The objective is the predicted sum of squared, tolerance-normalized camera-pose errors. The tolerance ratio specifies the relative importance of translation and rotation.

The feasible set $\mathcal S$ requires:

  • Board centre: $x_B\in[-0.6,0.6]$ m, $y_B\in[-0.4,0.4]$ m, and $z_B\in[1,3]$ m.
  • Board angles: $\alpha,\beta\in[-60^\circ,60^\circ]$ and $\gamma\in[-45^\circ,45^\circ]$.
  • Every corner remains at least $40$ pixels inside the image and at least $0.6$ m in front of the camera.
  • Every corner’s incidence angle is at most $70^\circ$, and adjacent grid corners remain at least $12$ pixels apart.

How the Optimizer Decides Which Way to Move

Moving the board changes $X_i$, the noise weights, and therefore $J$ and $H$. The derivative of the uncertainty objective with respect to board coordinate $s_j$ is

$$ \frac{\partial U}{\partial s_j}= -\operatorname{tr} \left( D H^{-1} \frac{\partial H}{\partial s_j} H^{-1}D^\top \right). $$

This derivative tells us whether increasing a board coordinate improves or worsens predicted camera precision. It accounts for both projection geometry and the change in corner noise.

The implementation uses SciPy’s SLSQP constrained optimizer with numerical derivatives, starting only at $s_0$. At each iteration it evaluates $U$ and the constraints near the current pose, builds a local quadratic subproblem, and updates the six board coordinates together. Coordinates are scaled internally so that metres and degrees have comparable numerical ranges.

In schematic form, with inequality constraints $c(s)\ge0$, the update is

$$ \begin{aligned} d_k &= \underset{d}{\arg\min}\; \nabla U(s_k)^\top d+\frac12d^\top B_kd,\\ &\text{subject to }\; c(s_k)+\nabla c(s_k)d\ge0 \text{ and the variable bounds},\\ s_{k+1}&=s_k+a_kd_k. \end{aligned} $$

Here $B_k$ approximates the Hessian of the constrained optimization Lagrangian, and $a_k$ is a line-search step length. This calculation produces a new continuous pose; it is not a lookup in a candidate-pose grid. All of these evaluations are numerical predictions, so the board does not need to be physically moved at every optimizer iteration.

Optimized Pose and Physical Adjustment

The optimizer converges successfully in 35 iterations:

QuantityInitial poseOptimized pose
Centre $x_B$ (m)0.250-0.541
Centre $y_B$ (m)0.1500.336
Centre $z_B$ (m)2.5001.000
$\alpha$ (deg)5.00-10.13
$\beta$ (deg)8.0018.36
$\gamma$ (deg)0.00-10.52
Normalized uncertainty $U$39.33180.4277

For this coordinate convention, the instruction is: move the board centre 0.791 m left, 0.186 m down, and 1.500 m toward the camera along the optical axis, then set its orientation to the final Euler angles above. The final $z_B=1$ m is optical-axis depth, not Euclidean camera-to-board distance.

Continuous optimization moves and rotates one board in front of one fixed camera, with the resulting projected corners
One starting pose and the pose reached by continuous optimization. The dashed curve connects numerical board-centre iterates; it is not a planned physical motion path.

The optimized board is closer, occupies more of the image, and has a different viewing direction and tilt. Together these changes reduce the normalized covariance trace by 98.9%. The optimum reaches the allowed minimum centre depth and the left and bottom image margins. Its largest corner incidence angle is $56.9^\circ$, within the $70^\circ$ limit.

This is a constrained local optimum under the stated model, not a proof of the globally best board pose. In particular, the ideal camera model has no additional penalty for uncertain intrinsics, lens distortion, or peripheral detection errors. Adding those effects, or board-survey uncertainty, can change the optimized pose. The result is not a general instruction to put every calibration board in an image corner.

Board Position in the Camera View During Optimization

The following snapshots select iterations 0, 1, 2, 7, 14, 21, 22, 28, and 35 from the same optimization history. They are intermediate states of one continuous optimization, not separate experiments or candidate layouts used to choose a winner. Read left to right, then top to bottom.

Each panel projects the same board through the fixed camera, with identical image dimensions and pixel axes. The checker pattern spans the known corner grid; its coloured outline and dots show the projected footprint and all 35 corners. The dashed rectangle marks the required 40-pixel image margin. Each title gives the iteration and camera-uncertainty objective $U$.

Nine camera-view snapshots of the same board at SLSQP iterations 0, 1, 2, 7, 14, 21, 22, 28, and 35, with infeasible iterates marked red
The board's projected position, size, and orientation throughout one optimization run. Red panels mark temporary constraint violations; the final panel is the feasible optimized pose. The views are model predictions, not captured photographs.

Initially the board appears small, near the image centre. By iteration 2 it is substantially larger; later updates shift and rotate its projection toward the lower-left region. Iterations 1 and 21 violate constraints and are shown explicitly rather than hidden: iteration 1 even puts part of the board outside the image. These are numerical optimizer states, not instructions to physically move the board through those poses. At iteration 35 the projected board satisfies the constraints and touches the allowed left and bottom margins.

The selected-iteration data records the exact six-coordinate board poses, uncertainty scores, and feasibility flags used for this figure. The full optimization history includes every recorded iteration.

Why Not Place the Board Symmetrically at the Image Centre?

A centred board is an intuitive choice, but visual symmetry does not automatically minimize the uncertainty of all six camera-pose parameters. The off-centre result needs a precise interpretation: the centre is competitive, and the lower-left corner is not uniquely optimal.

To check the effect of centring, fix the physical board centre on the optical axis, $x_B=y_B=0$, and continuously optimize the remaining four coordinates:

$$ \underset{z_B,\alpha,\beta,\gamma}{\operatorname{minimize}}\; U(0,0,z_B,\alpha,\beta,\gamma), \qquad (0,0,z_B,\alpha,\beta,\gamma)\in\mathcal S. $$

This uses the same objective, noise model, and feasibility constraints as the six-coordinate optimization. SLSQP starts from the previous solution’s depth and orientation, with its lateral position reset to zero. It converges in 16 iterations to a local centred solution with $z_B=1$ m and approximately $(\alpha,\beta,\gamma)=(0^\circ,49.57^\circ,-10.52^\circ)$. Thus, “centred” does not mean “front-facing”: the board centre projects to the principal point, but its orientation remains free.

Continuously optimized placementPredicted translation RMS (mm)Predicted rotation RMS (deg)Objective $U$
Board centre constrained to the optical axis1.070.06660.4893
Off-centre solution shown above1.240.06050.4277

The centred solution actually has better predicted translation precision. The off-centre solution sacrifices some translation precision for better rotation precision, and the chosen $5$ mm / $0.1^\circ$ normalization favors that trade-off. Its objective is only 12.6% lower than this optimized centred solution. The earlier 98.9% reduction is relative to the distant initial pose and combines changes in depth, orientation, and lateral position; it is not a 98.9% advantage of off-centre placement over centred placement.

This is a diagnostic constrained optimization, not a selection among manually prescribed experiments. Both reported solutions are local numerical solutions, not proofs of global optimality.

The geometric reason is that different camera motions can produce similar image motions. For a camera-frame point $(X,Y,Z)$, the unwhitened horizontal pixel coordinate has the following derivatives under the camera-perturbation convention used above:

$$ \frac{\partial u}{\partial t_x}=-\frac{f}{Z}, \qquad \frac{\partial u}{\partial\omega_y}= -f\left(1+\frac{X^2}{Z^2}\right). $$

Here $t_x$ and $\omega_y$ refer to camera translation and rotation, not board-design coordinates. For a nearly front-facing board near the image centre, $X/Z$ is small and corner depths are similar. Both a sideways camera translation and a small rotation about the camera’s $y$ axis then produce approximately uniform horizontal image shifts. Their Jacobian columns are nearly proportional, making those camera parameters difficult to distinguish.

Tilting the board introduces depth variation across corners, while moving it off-axis changes the spatial pattern of rotational image motion. Either can help separate the effects of different pose parameters. Symmetry can reduce some parameter correlations, but does not eliminate this translation-rotation coupling. The objective accounts for the joint correlations through $C=(J^\top J)^{-1}$, rather than scoring only the diagonal of $J^\top J$. These are local covariance predictions under the assumed measurement noise, not measured real-camera accuracies; see the Ceres covariance documentation.

Symmetry also does not imply that the minimum must occur at the centre. In this model, reflecting both the board position and orientation horizontally or vertically preserves the score. All four mirrored versions of the off-centre solution were checked: they satisfy the constraints and have the same $U=0.42765855$. The lower-left placement is therefore one member of a symmetry-related set, not a uniquely preferred image region.

For the fixed-axis xyz Euler convention used here, horizontal reflection changes the signs of x, beta, and gamma; vertical reflection changes the signs of y, alpha, and gamma. Applying both gives the fourth pose. Reflecting only the board centre while retaining its original orientation is not this symmetry check.

Finally, the model assumes exact intrinsics, no lens distortion, and an exactly known board pose. Its noise model penalizes grazing incidence but includes no additional penalty for peripheral-image errors. Uncertainty in intrinsic calibration, residual distortion, actual corner-detection quality, and board surveying can change the optimum. The conclusion is a model-specific translation-versus-rotation trade-off, not a general recommendation to move calibration boards to image corners.

Reproduce the Centred-Placement and Symmetry Checks

From the repository root, run the simulation source with NumPy, SciPy, and Matplotlib installed:

python content/posts/2025-02-EOL-calib/simulations/one_camera_one_board_placement.py --centred-checks-only

This command first reruns the original six-coordinate optimization from the stated initial pose. It then fixes the lateral coordinates to zero, initializes depth and orientation from that computed solution, and optimizes the remaining four coordinates. Finally, it constructs and checks all four mirrored off-centre poses. It does not read saved solutions, generate noisy observations, or use Monte Carlo errors to select a placement.

Both optimizations use scaled variables, SciPy’s default numerical derivatives, and a maximum of 200 SLSQP iterations. The objective stopping tolerance ftol is 1e-10 for the original optimization and 1e-11 for the centred diagnostic. The script rejects unsuccessful optimization, final poses violating a nonlinear constraint or coordinate bound beyond a slack tolerance of 1e-7, and failed camera-Jacobian finite-difference checks. For the mirrors, it checks equality of the objective and both predicted RMS errors with relative tolerance 1e-10 and absolute tolerance 1e-12.

The command regenerates these files in the article’s resources/ directory; add --output-dir /tmp/ocob-centred-checks to write elsewhere:

  • Centred/off-centre comparison: exact poses, predicted errors, objective values, and iteration counts behind the table above.
  • Centred optimization history: the starting pose and every recorded iterate, with both lateral coordinates fixed to zero.
  • Mirror-symmetry checks: all four poses, feasibility flags, uncertainty metrics, and score differences from the original pose.
  • Reproducibility record: starting poses, variable scales, tolerances, solver outcomes, package versions, and the calculated 12.6% score reduction.

The saved results used Python 3.10.9, NumPy 1.23.5, SciPy 1.10.0, and Matplotlib 3.7.0. Other numerical builds may change the last digits or iteration counts. The accompanying regression tests verify the reported values within numerical tolerances, the translation-versus-rotation trade-off, and the reflected board geometry. The full simulation command below also regenerates these diagnostics before running its separate noisy-fit validation.

Estimate the Camera After Moving the Board

Once the optimized pose is chosen, move and re-survey the board, acquire an image, and estimate the camera pose by minimizing the whitened reprojection loss over $T_C$:

$$ \widehat T_C= \underset{T_C}{\arg\min}\; \frac12\sum_i \left\| \frac{ \pi_K\!\left(R_C^\top[X_i(s^\star)-t_C]\right)-u_i }{\sigma_i(s^\star)} \right\|^2. $$

Here $\pi_K(X)=\Pi(KX)$ is the camera-frame-to-pixel projection defined in Section 1.3, and $u_i$ is the measured corner. Unlike the outer optimization over $s$, this inner least-squares problem adjusts the camera estimate while holding the surveyed board fixed.

For validation only, the script generates 500 independent noisy images at the initial pose and another 500 at the optimized pose, and refines the camera estimate for each image. These trials are not inputs to placement optimization, and observations from different images are not accumulated. The reported errors are RMS magnitudes of the full three-dimensional translation or rotation error, not average per-axis standard deviations.

Camera-error metricInitial poseOptimized pose
Predicted translation RMS (mm)20.751.24
Simulated translation RMS (mm)20.591.23
Predicted rotation RMS (deg)0.4700.061
Simulated rotation RMS (deg)0.4670.060
SLSQP uncertainty objective versus iteration and subsequent validation of the initial and optimized board poses
Left: the actual optimization history. Red crosses mark iterates outside the nonlinear constraints; only the final feasible pose is used. Right: independent noisy camera fits validate the local covariance prediction.

The camera refinements start near the true pose and test the local positive-depth solution branch. They do not test global initialization or planar pose ambiguities; the OpenCV PnP documentation describes methods that can return multiple pose solutions. Likewise, SLSQP’s numerical trajectory is not a collision-checked robot trajectory.

The reproducible simulation source requires NumPy, SciPy, and Matplotlib:

python content/posts/2025-02-EOL-calib/simulations/one_camera_one_board_placement.py

The script checks the camera Jacobian against finite differences and saves the optimization history, placement and uncertainty summary, and individual noisy-fit errors. The example’s key sequence is: predict camera uncertainty, optimize the board pose, then collect measurements and estimate the camera.

4.2 Two Cameras, One Board: Corner Refinement and Calibration

This two-camera, one-board experiment checks board-survey refinement, image-corner localization, and pose estimation at a fixed board placement; it is not a second placement-search algorithm. The geometric preprocessing is derived in Appendix A, and the two-camera objective is written explicitly in Appendix D.

We construct an 8x8 chessboard with 1 m squares. We set the the origin as the center of the board. We place the board in the world coordinate with extrinsic:

$$\begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 8 \\ 0 & 0 & 0 & 1 \end{pmatrix} $$

which means the normal of the board plane is $[0, 0, 1]^\top$.

We add Gaussian noise on the corners coordinates with noise zero mean and $0.005$ standard deviation.

With the noisy corners’ coordinates, we can get the optimized board’s extrinsic using the rigid board-fit procedure in Appendix A. The optimized normal is $[1.38*10^{-3}, -2.16*10^{-5}, 9.999*10^{-1}]^\top$. That is already very close the ground truth.

Then we simulate two cameras with the same intrinsic matrix: $f_x =800$, $c_x = 500$, $f_y = 800$, $c_y=400$, and $H=800$, $W=1000$. We rotate the first camera along the z-axis $10$ degrees and the second $-10$ degrees, and translate the first camera along the x-axis $2$ meters and the second $-2$ meters. Then the images of the chessboard in the two cameras are shown in the figure below.

original observe
The original images.

Then, we apply Gaussian blur on the observed images and add Gaussian noise on them. The new images are shown in the figure below.

blur observe
The simulated observed images.

After that, we use opencv “findChessboardCorners” and find the rough corners and then use “cornerSubPix” to refine the corners’ coordinates. The refined corners are shown in the figure below.

refined corners
The detected corners.

Pay attention to the sequence of the detected corners. (The detected corners start from the blue one and end with the green one in the above figure.) Rearrange the detected corners according to the refined chessboard corners. Using the “solvePnP” function with method “SQPNP”, which is a global optimization method, we can find the estimated extrinsic of the two cameras. We record the errors of the estimation using the original measurements of the chessboard corners and the refined ones.

CameraCornersRotation Error (degrees)Translation Error (meters)
Camera 1Original0.2600.0372
Camera 1Refined0.07320.0117
Camera 2Original0.2470.0318
Camera 2Refined0.07500.0118

The translation error is the norm of the difference between the estimated and the ground truth translation. The rotation error is

$$ \theta= \left\| \operatorname{Log}_{SO(3)} \left( \mathbf{R}_{\rm gt}^{\top}\mathbf{R}_{\rm est} \right) \right\|_2, $$

converted from radians to degrees.

As shown in the table, the refined measurements result in lower errors for both rotation and translation, demonstrating the effectiveness of the corner refinement process.

In the final step, we do jointly optimization. We warp the image in camera 1 with parameters before and after jointly optimization. The results are shown in the figure below.

The warped images using before and after jointly optimization
The warped images (blended with the image in camera 2) before and after jointly optimization.

In the above figure, we can hardly tell which one is better. The translation error is $0.0298$ and $0.0257$ meters for camera 1 and camera 2 respectively. The rotation error is $0.204$ and $0.199$ degrees for camera 1 and camera 2 respectively. That is expected increased error for single camera calibration however more consistent for the two cameras.

Detect Corners on the Warped Image

Corner detection often becomes challenging on original images due to severe distortion or extreme viewing angles. To address this limitation, we can create a virtual camera with an optimized viewpoint. By warping the original image onto this virtual camera’s image plane, we can simulate a more frontal view of the chessboard. This transformation adjusts the perspective so that the chessboard appears as if viewed head-on, significantly improving corner detection reliability. We can then accurately detect the corners on this warped image rather than struggling with the difficult perspective of the original.

The figure below illustrates this approach. On the left is the original image where the severe viewing angle prevents the standard algorithm from successfully detecting the corners. On the right is the perspective-corrected warped image, where we can successfully identify and locate all corners.

The original and warped images
Left shows the original observed image. Right shows the warped image and the detected corners.

4.3 Two Cameras, Two Boards: Uncertain Boards and Discrete Placement

Building on the one-camera placement optimization in Section 4.1, consider a calibration station with two cameras and two physical calibration boards. Here the lower level estimates both camera poses and both uncertain board poses from noisy image corners and noisy surveyed board corners. This separate experiment uses a discrete candidate set to illustrate several upper-level search strategies; Section 4.1 demonstrates direct continuous board-pose optimization from one starting pose.

The two cameras are fixed and look into a shared workspace. Each board has a $7\times5$ marker grid with $0.12$ m spacing. Candidate board poses are sampled over position, height, yaw offset, and tilt. A candidate is feasible only if both cameras see at least 20 corners, the projected corners are inside the image margin, the projected marker size is large enough, and the board is not too grazing.

Noise Model

The simulated image noise follows the placement-dependent idea from the bilevel formulation. For each visible corner, the pixel standard deviation is

$$ \sigma_{u,cp} = \operatorname{clip} \left( 0.28 \left[ 1 + 0.35\left(\frac{18}{a_{cp}}\right)^2 + 0.16\left(\frac{1}{\max(\iota_{cp},0.10)}-1\right) + 0.30\rho_{cp}^2 \right], 0.25, 3.5 \right)\ \mathrm{px}. $$

Here $a_{cp}$ is the projected marker size in pixels, $\iota_{cp}$ is the incidence between the board normal and the camera ray, and $\rho_{cp}$ is normalized distance from the image center. This makes small, oblique, or edge-of-image corners noisier. Surveyed world marker positions use $\sigma_z=2.5$ mm.

Upper-Level Solvers

For each feasible candidate board pose $g$, we predict visibility and compute the Schur-marginalized camera-pose information contribution $\Delta\Lambda_g$. For a selected two-board set $\mathcal A=\{g_1,g_2\}$, the A-optimal score is

$$ U(\mathcal A) = \operatorname{tr} \left[ D \left( \sum_{g\in\mathcal A}\Delta\Lambda_g \right)^{-1} D^\top \right]. $$

The simulation compares four placement strategies:

  1. Manual initial: two nearby, front-workspace boards.
  2. Greedy next-best: choose the first board with the best single-board score, then choose the second board that gives the best updated two-board score.
  3. Simulated annealing: start from the manual pair, randomly replace one board at a time, and accept or reject moves using a decreasing temperature.
  4. Exhaustive optimum: enumerate all valid two-board pairs in the discrete candidate set and choose the pair with the lowest A-optimal trace.

This mirrors the reference strategies in the placement-guidance literature: sample a feasible pose set, reject degenerate candidates, score by parameter uncertainty rather than residual alone, and use either direct search, sequential next-best selection, or simulated annealing to search the pose space.

The feasible candidate set and selected layouts are:

Two-camera two-board placement candidates and selected layouts
Two-camera/two-board placement optimization. Gray dots are feasible candidate board centers; colored markers are selected boards; arrows show board normals. Each selected board is labeled with its candidate ID and slot, matching the table below.

The single-board candidate score map is:

Single-board A-optimal scores for two-camera two-board placement simulation
Single-board A-optimal score. Lower normalized covariance trace is better.

The selected board placements are listed below. “Candidate” identifies a sampled board pose; “Slot” indexes the two boards within each layout.

LayoutSlotCandidatex (m)y (m)z (m)Yaw Offset (deg)Tilt (deg)Predicted Trace
manual initial0P123-0.452.050.920.0012.0023.49
manual initial1P2420.452.050.920.00-12.0023.49
greedy next-best0P1890.002.051.180.0012.005.97
greedy next-best1P2360.003.751.180.00-12.005.97
simulated annealing0P2480.452.051.180.00-12.005.82
simulated annealing1P4171.353.751.180.0012.005.82
exhaustive optimum0P050-1.353.750.920.00-12.005.73
exhaustive optimum1P130-0.452.051.1824.00-12.005.73

The optimized placements are not chosen by reprojection residual. They spread the two boards in depth, lateral position, height, and tilt so that the camera-pose Jacobians span stronger independent directions.

Noisy Lower-Level Validation

After selecting the placements, each layout is validated by 24 Monte Carlo trials. Each trial re-samples image noise and surveyed board-corner noise, then solves the lower-level bundle-adjustment problem from perturbed initial camera poses.

LayoutObservationsPixel RMSE (px)Predicted TraceTrace / BestPred. Rot. Std. (deg)Pred. Trans. Std. (mm)MC Rot. Error (deg)MC Rot. Std.MC Trans. Error (mm)MC Trans. Std.
manual initial1400.421523.48634.09710.09313.33690.12840.04214.92561.5130
greedy next-best1400.44615.97441.04220.04791.38780.05220.01702.14140.5751
simulated annealing1400.45895.82061.01540.04721.39920.05010.01882.14400.5569
exhaustive optimum1400.46245.73241.00000.04681.40880.04900.01812.26780.6703
Predicted trace and Monte Carlo camera-pose errors for two-camera two-board placement simulation
Predicted A-optimal trace and Monte Carlo camera-pose errors for four two-board placement strategies.

The important observation is that the manual layout has the lowest pixel RMSE, but the worst camera-pose accuracy. It fits its own observations well while leaving weak pose directions. The optimized layouts increase the pixel RMSE slightly, because the views are more oblique and noisy, but they reduce the predicted camera covariance trace by about $4\times$ and reduce the Monte Carlo camera-pose error from $0.128^\circ$ and $4.93$ mm to about $0.05^\circ$ and $2.1$-$2.3$ mm.

This illustrates the same bilevel principle: the upper level should not optimize expected residual. It should optimize the information geometry of the lower-level calibration problem.

4.4 Multi-Board and Multi-Camera Calibration

The synthetic scenarios contain:

  1. Four to eight calibrated cameras with known intrinsics.
  2. Six to twenty-four target boards, each carrying a $7\times5$ grid of marker points.
  3. Noisy camera-point observations $u_{cp}$.
  4. Noisy surveyed world measurements of board marker points.
  5. Partial visibility: each camera sees only a subset of boards and marker points.

This section reports centralized bundle adjustment, which directly solves (P) over the camera and board poses. The solver-comparison tables, ADMM convergence plots, and communication results are collected in the ADMM simulation comparisons in Appendix E.

The detailed figures below use the largest case, with eight cameras and twenty-four boards. The scaling tables compare all scenarios from the same deterministic run.

Problem Size

The sweep changes the number of camera poses, board poses, observed camera-point edges, and surveyed board points while keeping the same formulation.

ScenarioCamerasBoardsPoints per BoardCamera-Board PairsCamera-Point ObservationsPose VariablesImage ResidualsWorld-Point Residuals
4_cameras_6_boards46351033560670630
8_cameras_6_boards863518598841196630
8_cameras_12_boards8123538126412025281260
8_cameras_24_boards8243582271219254242520
Problem size scaling for multi-board and multi-camera calibration
Problem size growth across the camera-board scenarios.

Simulated Observation Graph

The detailed scene has eight cameras arranged around twenty-four calibration boards. The colored board points are the physical marker locations. The faint lines indicate observed camera-board connections.

3D scene graph for multi-board and multi-camera calibration
Synthetic multi-camera and multi-board observation graph.

The visibility matrix shows how many marker points each camera observes on each board.

Visibility heatmap for multi-board and multi-camera calibration
Observed marker count per camera-board pair.

This is intentionally not a complete bipartite graph. In the 8-camera, 24-board case, only 82 of the 192 possible camera-board pairs are visible. The coupling comes from shared boards and world-frame board priors, not from every camera seeing every board.

Image Observations and Reprojection Residuals

The next figure shows the noisy image observations in each camera. The small black residual vectors connect the measured points to the centralized BA predictions.

Noisy image observations and centralized bundle adjustment residuals
Image measurements and centralized bundle-adjustment residual vectors.

Bundle Adjustment Results

For the 8-camera, 24-board case, the initialization perturbs camera poses by several degrees and tens of centimeters, while board poses are initialized from noisy surveyed world marker measurements. Centralized BA reduces reprojection error from 63.0991 px to 1.0486 px.

MethodReprojection RMSE (px)Mean Camera Rot. Error (deg)Mean Camera Trans. Error (m)Mean Board Rot. Error (deg)Mean Board Trans. Error (m)
Initial63.09914.86420.21250.39490.0032
Centralized BA1.04860.05820.00360.10070.0012

The sparse nonlinear least-squares solve takes 1.4180 s and 11 outer iterations in this Python implementation. These are implementation timings for this experiment.

The board error is already small at initialization because the boards are directly anchored by surveyed world points. The camera error drops much more strongly because the image residuals provide most of the camera-pose information.

Bundle Adjustment Scaling

Centralized BA uses a sparse Jacobian: each image residual touches one camera pose and one board pose. The following results show its accuracy and runtime as the calibration graph grows.

ScenarioObservationsCentral RMSE (px)Central Runtime (s)
4_cameras_6_boards3351.00460.1684
8_cameras_6_boards5981.03220.4938
8_cameras_12_boards12641.03951.4527
8_cameras_24_boards27121.04861.4180

The timings are from the serial Python reference implementation. Reprojection RMSE remains near the pixel noise floor across the four scenarios. The full comparison with the distributed solvers is in the scaling comparison in Appendix E.

Board-Placement Guidance Experiment

For the next-board-placement experiment, we start from the solved 8_cameras_6_boards case and compute the current marginalized camera-pose information from the centralized BA Jacobian. We then generate feasible candidate poses for one additional board, predict the visible image measurements for each candidate, append the candidate’s expected Jacobian information, marginalize the candidate board pose with the Schur complement, and score the candidate by normalized camera covariance reduction.

The first diagnostic is the actual optimization matrix. The left plot below is the sparsity pattern of the whitened Jacobian $J$ for the current centralized BA problem. Each reprojection row touches one camera pose and one board pose. Each surveyed world-point row touches only one board pose. The right plot is the Gauss-Newton normal matrix $H_{\mathrm{GN}}=J^\top J$, not the full exact Hessian. This is intentional: near the solved calibration state, and especially for zero-expected-residual candidate measurements, $J^\top J$ is the local curvature/information matrix that determines pose covariance. Its camera-board off-diagonal blocks are exactly the couplings that later become camera-camera information after board poses are marginalized.

Centralized bundle adjustment Jacobian sparsity and normal-matrix structure
Jacobian sparsity and normal-matrix structure for the current calibration problem.

The best candidate is not selected by the expected residual value; the expected residual is zero for all candidates. It is selected by the curvature that the candidate observations add to the camera-pose variables.

For each candidate board pose, we compute the candidate’s predicted normal matrix contribution, marginalize the candidate board pose, and add the resulting camera-pose information to the current $\Lambda_C$. The next figure shows $\Lambda_C$ before adding a board, after adding the low-score feasible board, after adding the recommended board, and the information gain from the recommended board alone. Each $6\times6$ diagonal block is one camera pose. Off-diagonal blocks indicate camera-camera coupling induced by shared board observations.

Schur-marginalized camera-pose information matrices for board placement candidates
Schur-marginalized camera-pose information before and after candidate board placement.

The candidate map below shows all feasible candidate board centers. Color is predicted normalized camera covariance reduction, and marker size increases with the number of predicted marker observations.

Candidate board placements scored by camera uncertainty reduction
Candidate board placements colored by predicted camera-pose uncertainty reduction.

Board placement is not only a center position; it is a pose. The arrows in the next plot show the horizontal component of the board normal. In this experiment, candidate normals are generated to face outward toward the surrounding cameras, and the optimizer selects among these full poses.

Candidate board pose adjustment with board-normal arrows
Candidate board pose adjustment: center location plus board-normal direction.

The selected candidates are:

StrategyCandidatePosition $(x,y,z)$ mBoard NormalVisible CamerasMarker ObservationsPredicted TracePredicted ReductionPredicted Rot. Std. (deg)Predicted Trans. Std. (mm)
RecommendedP17$(0.00,0.00,1.02)$$(0.0000,-0.9348,0.3552)$517522.587528.0625%0.06513.5197
Low-score feasibleP10$(0.00,-0.85,0.92)$$(0.0000,-0.8956,0.4449)$310529.38666.4082%0.07583.9703

In this current calibration state, the optimizer prefers P17 because it is visible from five cameras and lies in an overlap region. It contributes information to more camera-pose blocks and creates stronger camera-to-camera coupling through one physical board. P10 is still feasible, but its information is more local and therefore reduces the marginalized camera uncertainty much less.

The per-camera uncertainty plot shows where that improvement goes. P17 reduces both rotation and translation uncertainty for more cameras than P10, especially for cameras that are weakly constrained by the existing six-board layout.

Predicted per-camera uncertainty after low-score and recommended board placements
Predicted per-camera rotation and translation uncertainty after candidate placement.

For validation, we add either P10 or P17 as the next board, simulate noisy image and surveyed world measurements, re-solve centralized BA, and repeat this for eight noise draws. The table reports mean actual errors; the figure shows the same comparison with error bars.

StrategyCandidatePredicted ReductionActual TraceActual Camera Rot. Error (deg)Actual Camera Trans. Error (mm)Actual Reproj. RMSE (px)
Currentnone0.0000%31.39870.10937.53501.0322
Low-score feasibleP106.4082%29.44100.1044 +/- 0.00927.1909 +/- 0.45911.0353 +/- 0.0068
RecommendedP1728.0625%22.68670.0863 +/- 0.00686.3395 +/- 0.39801.0348 +/- 0.0066
Validation of recommended and low-score board placements
Predicted uncertainty and actual camera-pose error after adding the candidate board.

The reprojection RMSE stays near the pixel noise floor for both candidates, so it is not a sensitive placement metric. The camera-pose covariance and ground-truth pose error are more informative: the recommended board gives a larger predicted uncertainty reduction and a lower average camera-pose error after re-solving.

What This Demonstrates

The primitive observation is the camera-point edge $(c,p)$, while the optimized variables are camera and board poses. Centralized BA exploits this sparse structure and combines image observations with surveyed board priors to estimate both sets of poses. It is the default solver for an EOL station that can process all observations on one machine.

4.5 Vehicle Rig: Board Count and Placement Refinement

The previous synthetic scene places cameras around a workspace. A more EOL-like setup is a vehicle rig. In this experiment, the cameras are mounted on a car-like body with seven cameras: front wide, front narrow, left-front, right-front, left-rear, right-rear, and rear. The side cameras are crossed in position: the cameras named left-front and right-front are physically closer to the rear, while the cameras named left-rear and right-rear are physically closer to the front. This creates overlapping side views. Boards are sampled from uniform rectangular perimeter rings around the vehicle, then the number of selected boards is increased.

Top-down car-mounted camera layout with calibration boards
Top-down view of the 7-camera car layout with 40 calibration boards. Blue squares are board centers; arrows show board normals.

The visibility matrix for the 40-board case is intentionally sparse. Each board is visible to a subset of cameras, and each camera sees the boards in its sector. The side overlap is present: in this run, 7 boards are seen by both left-side cameras and 7 boards are seen by both right-side cameras.

Visibility heatmap for car-mounted camera board-count experiment
Visible marker count per camera-board pair for the 40-board vehicle layout.

The centralized bundle-adjustment results for the board-count sweep are:

BoardsObservationsCamera-Board PairsCentral RMSE (px)Central Runtime (s)
8481181.07030.9360
12656281.07901.2224
16893341.04651.2350
241327541.03382.5531
321765721.04512.3942
402185891.03911.6327
Problem size as boards increase in car-mounted camera layout
Problem size growth as boards are added around the car.

As the number of boards grows, camera error improves strongly at first. In this run, centralized BA goes from $0.1033^\circ$ and $7.0$ mm at 8 boards to $0.0412^\circ$ and $2.5$ mm at 32 boards. Additional boards mainly add redundancy, so the error plateaus near the pixel-noise and world-measurement limits.

This sweep also tells us how to use the placement-guidance method. The useful signal is not only the reprojection RMSE, because all layouts are near the pixel noise floor. The useful signal is that the 40-board uniform layout has more measurements than the 32-board layout, but worse camera-pose accuracy:

BoardsObservationsCamera-Board PairsCentral RMSE (px)Central Camera Rot. (deg)Central Camera Trans. (mm)
241327541.03380.03923.21
321765721.04510.04122.49
402185891.03910.04973.44

So the 40-board case is not limited by board count. It is limited by where those boards put information into the camera graph. The replacement experiment therefore keeps the board budget fixed at 40 and uses the solved 40-board state to ask a more targeted question: which candidate board poses would reduce the remaining camera-pose covariance the most?

The 40-board solution also identifies which camera directions are still weak. In the centralized BA result, the rear camera and the wide front camera remain larger-error poses than most side cameras:

CameraRotation Error (deg)Translation Error (mm)
front wide0.07034.63
front narrow0.01971.81
left front0.01201.03
right front0.02383.64
left rear0.07483.66
right rear0.02722.15
rear0.12057.18

This is why the guidance step does not simply spread boards more uniformly. It uses the solved uniform layout to score how each candidate board would couple the remaining uncertain cameras to the rest of the rig after board poses are marginalized.

Jacobian-Guided Refinement of the 40-Board Layout

The 40-board uniform layout can also be treated as the starting point for the board-placement guidance method. Here the goal is not to add one more board, but to replace the 40 boards with a better 40-board set using the solved uniform layout as the current calibration state.

The adjustment loop is:

  1. Solve the original uniform 40-board layout with centralized BA.
  2. Build the Schur-marginalized camera-pose information matrix from that solved state.
  3. Generate the same perimeter-ring candidate board poses used by the vehicle experiment.
  4. For each candidate, predict visible marker observations using the solved camera poses, build the candidate Jacobian, marginalize the candidate board pose, and score the candidate by camera covariance reduction.
  5. Start from the exact 40 initial board positions and evaluate one-for-one swaps: remove one existing board, add one candidate, and keep the swap only if the predicted camera covariance improves.
  6. Repeat the swap search until no candidate swap improves the Schur-marginalized camera-pose trace.
  7. Re-simulate noisy image and surveyed-world measurements for the refined board placement, then solve the calibration again.

For one candidate board pose $g$, the method linearizes the image residuals at the solved camera poses from the initial 40-board layout. Its camera-pose information contribution is computed after marginalizing the candidate board pose:

$$ \Lambda_g = J_c^\top W J_c - J_c^\top W J_b \left(J_b^\top W J_b\right)^{-1} J_b^\top W J_c . $$

For a one-for-one replacement, the predicted score is the reduction in the normalized camera covariance trace after replacing an existing board contribution $\Lambda_r$ with $\Lambda_g$. This means the method is not just counting visible corners. It asks whether the new board’s Jacobian directions reduce the weak camera-pose modes left by the solved uniform layout.

As a concrete example, start from the blue-square 40-board top-down layout above. The initial board B5 corresponds to candidate G033 at $(-2.77,-3.25)$ m. It is visible from only one camera in the initial solution, and adding that pose alone would reduce the current camera covariance trace by only $0.25\%$. The highest-scoring unused candidate is G021 at $(-3.25,-0.82)$ m. It is visible from two cameras and, more importantly, its Jacobian couples a weak side/rear direction to the rest of the rig, giving a $23.7\%$ one-board trace reduction. The first greedy replacement therefore moves B5 to G021, while keeping the board normal pointed toward the vehicle. The predicted normalized trace drops from $4.1914$ to $3.2031$ after this one swap.

Example first board replacement from the solved 40-board car layout
Example first replacement from the solved 40-board layout: remove the low-value initial board B5/G033 and add the Jacobian-scored candidate G021.

The score map below is the direct analog of the earlier board-placement guidance plot. Color shows the single-board trace reduction if that candidate is added to the solved uniform layout. Red squares are the final 40-board refined placement after the swap search. Some red squares have modest single-board scores because the final set is produced by cumulative swaps, not by independently taking the top 40 one-board candidates.

Candidate board scores for Jacobian-guided refinement of the 40-board car layout
Candidate board poses scored from the solved uniform 40-board layout.

The highest single-board candidate scores are concentrated near side-overlap regions, where a board couples multiple cameras strongly:

Candidatex (m)y (m)Visible CamerasMarker ObservationsOne-Board Trace ReductionRefined SetInitially Used
G021-3.25-0.8223023.7%yesno
G0243.250.8235323.1%yesno
G025-3.250.8223022.8%yesno
G019-3.25-1.6323522.2%yesno
G0203.25-0.8235521.5%yesno
G0263.251.6334521.1%yesno
G027-3.251.6323521.0%yesno
G0183.25-1.6334518.7%yesno

The actual refinement performs 14 beneficial swaps and keeps 26 of the original 40 board positions:

StepRemoveAddAdded Position (x,y) mTrace AfterReduction From Initial
1B5 (G033)G021(-3.25, -0.82)3.203123.6%
2B25 (G046)G024(3.25, 0.82)2.251346.3%
3B33 (G034)G020(3.25, -0.82)2.022251.8%
4B39 (G105)G025(-3.25, 0.82)1.850855.8%
5B0 (G101)G009(0.00, -2.45)1.768057.8%
6B19 (G100)G026(3.25, 1.63)1.690959.7%
7B27 (G042)G008(0.00, 2.45)1.618961.4%
8B20 (G104)G018(3.25, -1.63)1.564262.7%
9B7 (G037)G019(-3.25, -1.63)1.513863.9%
10B35 (G065)G027(-3.25, 1.63)1.475664.8%
11B18 (G056)G022(3.25, 0.00)1.463465.1%
12B12 (G043)G083(1.26, -4.05)1.456465.3%
13B32 (G036)G038(-0.40, 3.25)1.451065.4%
14B16 (G052)G054(4.35, -1.62)1.449365.4%

The predicted information metric improves before any noisy re-simulation:

LayoutNormalized TraceMean Rot. Std. (deg)Mean Trans. Std. (mm)Trace Reduction
initial uniform4.19140.02901.58880.0%
refined placement1.44930.01850.926165.4%

The matrix view shows why the refinement helps: the refined placement increases the Schur-marginalized camera-pose information and strengthens several camera-camera coupling blocks after board poses are marginalized.

Predicted camera-pose information matrices before and after board-placement refinement
Predicted Schur-marginalized camera-pose information for the initial and refined 40-board layouts.

The per-camera uncertainty view shows that the improvement is not only global trace reduction. The front and rear cameras receive the largest predicted uncertainty reduction, while the side cameras also improve.

Predicted per-camera uncertainty before and after board-placement refinement
Predicted per-camera camera-pose uncertainty before and after board-placement refinement.

The new board positions are shown below. Gray hollow squares are the original uniform 40-board positions; red squares are the refined positions, with arrows showing board normals.

Refined board positions for the 40-board car layout
Jacobian-guided refinement of the 40-board vehicle layout.

After re-simulating noisy image and surveyed-world measurements with the refined board set, centralized BA reduces mean camera rotation error by 58.9% and translation error by 47.5%. Reprojection RMSE stays near the pixel noise floor, so camera-pose error is the more informative metric here.

MethodInitial RMSE (px)Refined RMSE (px)Initial Camera Rot. (deg)Refined Camera Rot. (deg)Rot. ReductionInitial Camera Trans. (mm)Refined Camera Trans. (mm)Trans. Reduction
Centralized BA1.03911.03910.04970.020558.9%3.441.8147.5%

The exact refined board centers and horizontal normal directions are:

Boardx (m)y (m)z (m)Normal xNormal yVisible CamerasMarker ObservationsOriginal Board
B0-5.45-1.621.160.9580.285255yes
B1-5.45-2.431.080.9130.407260yes
B2-5.45-3.241.120.8600.511250yes
B3-5.45-4.051.080.8030.596240yes
B4-0.81-2.451.120.3150.949255yes
B5-0.40-3.251.080.1210.992260yes
B6-0.42-4.051.080.1030.994260yes
B70.42-4.051.16-0.1030.994260yes
B80.81-2.451.16-0.3150.949255yes
B95.45-3.241.08-0.8600.511365yes
B105.45-2.431.16-0.9130.407385yes
B115.45-4.051.16-0.8030.596343yes
B125.45-1.621.12-0.9580.285390yes
B135.451.621.08-0.958-0.285390yes
B145.452.431.16-0.913-0.407385yes
B155.453.241.12-0.860-0.511365yes
B165.454.051.12-0.803-0.596343yes
B170.812.451.12-0.315-0.949255yes
B180.403.251.12-0.121-0.992260yes
B190.424.051.12-0.103-0.994260yes
B20-0.424.051.160.103-0.994260yes
B21-0.812.451.080.315-0.949255yes
B22-5.454.051.160.803-0.596240yes
B23-5.453.241.160.860-0.511250yes
B24-5.452.431.080.913-0.407260yes
B25-5.451.621.120.958-0.285255yes
B26-3.25-0.821.080.9700.244230no
B273.250.821.08-0.970-0.244353no
B283.25-0.821.16-0.9700.244355no
B29-3.250.821.120.970-0.244230no
B300.00-2.451.08-0.0000.999270no
B313.251.631.16-0.893-0.449345no
B320.002.451.16-0.000-0.999270no
B333.25-1.631.08-0.8930.449345no
B34-3.25-1.631.120.8930.449235no
B35-3.251.631.080.893-0.449235no
B363.250.001.12-1.000-0.000263no
B371.26-4.051.12-0.2970.955245no
B38-0.403.251.160.121-0.992260no
B394.35-1.621.08-0.9370.350370no

4.6 What the Experiments Establish

The one-board experiment demonstrates continuous physical pose optimization and exposes the translation-rotation trade-off behind an off-centre result. The two-camera experiments add shared geometry and uncertain board poses. The workspace and vehicle experiments then test sparse calibration, partial visibility, board count, and fixed-budget placement refinement.

Across these cases, the calibration loss estimates poses, while the marginalized information predicts which physical observations will improve those estimates. Reprojection RMSE alone is not a reliable placement objective. The numerical optima remain conditional on the assumed world anchor, camera model, corner noise, and feasible workspace.

Appendix A. Geometric Preprocessing and Board Survey Refinement

These derivations support initialization and the fixed-board image-processing experiment in Section 4.2. Ray-plane reconstruction is an optional geometric route, not a required residual in the reprojection-based solver of Section 2.

A.1 Optional Geometric Pipeline

  1. Do single camera intrinsic calibration

  2. Measure each corner in the world coordinate

  3. Refine the corners’ coordinates according to board constraints (plane, parallel, equally spaced)

  4. Find the plane equation in the world coordinate

  5. Initialize each camera’s extrinsic parameters by solving the perspective-n-point (PnP) problem

  6. Estimate the 3D coordinates by the intersection of the image ray and board plane

  7. Construct the objective loss function from pixel reprojection residuals that share board-generated marker points, plus optional world-point or pose priors

A.2 Refine Surveyed Corners Using Board Constraints

Assume the center of the board is located at the origin of a local coordinate, $(0,0,0)^\top$, the corner coordinate is located at $\{\mathbf{x}_i\}^N_{i=1}$, then the board normal is $(0,0,1)^\top$. Assume the board is transformed to the world coordinate by rotation, $\mathbf{R}$, and translation, $\mathbf{t}$. We have the observed coordinates $\{\hat{\mathbf{y}}_i\}$. Then we minimize the objective:

$$ (\mathbf{R}^*, \mathbf{t}^*) = \underset{\mathbf{R}\in SO(3),\,\mathbf{t}\in\mathbb R^3}{\arg\min} \sum_i \left\| \hat{\mathbf{y}}_i-(\mathbf{R}\mathbf{x}_i+\mathbf{t}) \right\|^2, \qquad \mathbf{y}_i^*=\mathbf{R}^*\mathbf{x}_i+\mathbf{t}^*. $$

Because the board-corner correspondences are already known, this is an orthogonal Procrustes/Kabsch rigid-alignment problem. ICP is needed only when the correspondences also have to be estimated.

If the board-frame origin is at the board center, then the center of the board is $\mathbf{x}_0=\mathbf{t}^*$, and the normal of the board is $\mathbf{R}^*[0, 0, 1]^\top$.

Now we have refined board corners in the world coordinates, i.e., $\{\mathbf{y}_i^*\}^N_{i=1}$.

Unknown Board Dimension

If we do not have the board dimension, then we can directly fit the plane using the measured corners, $\{\mathbf{x}_i\}^N_{i=1}$ (with a slight abuse of notation). Use the plane convention $\mathbf{n}^\top \mathbf{x} + c = 0$ (with unit normal vector, i.e., $\|\mathbf{n}\| = 1$). Then we can solve for $\mathbf{n}$ and $c$ by minimizing the following objective:

$$ \underset{\mathbf{n}, c}{\text{argmin}} \frac{1}{N}\sum_i \|\mathbf{n}^\top \mathbf{x}_i + c\|^2 \\ \text{s.t. } \|\mathbf{n}\| = 1 $$

For any fixed $\mathbf{n}$, taking derivative with respect to $c$ and setting it to zero, we have:

$$ c = -\frac{1}{N} \sum_i \mathbf{n}^\top \mathbf{x}_i = - \mathbf{n}^\top \bar{\mathbf{x}} $$

where $\bar{\mathbf{x}} = \frac{1}{N} \sum_i \mathbf{x}_i$ is the mean of the measured corners.

So, the objective function becomes:

$$ \begin{aligned} &\frac{1}{N}\sum_i \|\mathbf{n}^\top (\mathbf{x}_i - \bar{\mathbf{x}})\|^2 \\ &= \frac{1}{N}\mathbf{n}^\top \left(\sum_i (\mathbf{x}_i - \bar{\mathbf{x}})(\mathbf{x}_i - \bar{\mathbf{x}})^\top\right) \mathbf{n} \\ & = \mathbf{n}^\top \mathbf{\Sigma}_x \mathbf{n} \end{aligned} $$

where $\mathbf{\Sigma}_x = \frac{1}{N} \sum_i (\mathbf{x}_i - \bar{\mathbf{x}})(\mathbf{x}_i - \bar{\mathbf{x}})^\top$ is the biased sample covariance matrix of the measured corners.

Considering $\|\mathbf{n}\| = 1$, $\mathbf{n}$ is the eigenvector of $\mathbf{\Sigma}_x$ corresponding to its smallest eigenvalue.

The refined corners’ coordinates are the projection of the measured corners on the plane, which can be written as:

$$ \mathbf{y}_i = \mathbf{x}_i - \mathbf{n}^\top (\mathbf{x}_i - \bar{\mathbf{x}}) \mathbf{n} = \mathbf{x}_i - (\mathbf{n}^\top\mathbf{x}_i + c)\mathbf{n}. $$

which has clear geometric meaning: the measured corners minus the signed distance along the plane normal. The sign of $\mathbf n$ remains arbitrary as long as $c$ is changed consistently.

Appendix B. Ray-Plane Geometry and Optional Residuals

The first two derivations use world-to-camera extrinsics $(R,t)$: $X^C=RX^W+t$. Relative to the main article’s camera-to-world pose, $R=(R^C)^\top$ and $t=-(R^C)^\top t^C$. The coordinate conversion is explicit here so that the main formulation retains one consistent local-to-world convention.

B.1 Closed-Form Ray-Plane Intersection

We are given a 3D plane:

$$\mathbf{n}^\top \mathbf{x} + c = 0,$$

and a camera model with the projection equation:

$$d\, \mathbf{u} = \mathbf{K} (\mathbf{R}\, \mathbf{x} + \mathbf{t}),$$

where:

  • $\mathbf{u} \in \mathbb{R}^3$ is the homogeneous image coordinate (usually $\mathbf{u} = [u, v, 1]^\top$)
  • $d$ is an unknown scale (depth) factor
  • $\mathbf{K}$ is the camera intrinsic matrix
  • $\mathbf{R}$ and $\mathbf{t}$ are the rotation and translation (extrinsic parameters) of the camera
  • $\mathbf{x} \in \mathbb{R}^3$ is the 3D point we wish to recover

Our goal is to find $\mathbf{x}$ in terms of the known quantities $\mathbf{u}, \mathbf{K}, \mathbf{R}, \mathbf{t}, \mathbf{n},$ and $c$.

Rewrite the Projection Equation

$$\mathbf{x} = \mathbf{R}^\top \left(d\,\mathbf{K}^{-1} \mathbf{u} - \mathbf{t}\right).$$

However, the scale factor $d$ is still unknown.

Use the Plane Constraint to Solve for $d$

Since $\mathbf{x}$ lies on the plane, it must satisfy:

$$\mathbf{n}^\top \mathbf{x} + c = 0.$$

Substitute the expression we just found for $\mathbf{x}$:

$$\mathbf{n}^\top \Bigl(\mathbf{R}^\top (d\,\mathbf{K}^{-1} \mathbf{u} - \mathbf{t})\Bigr) + c = 0.$$

Expanding the scalar equation gives

$$ d\,\mathbf{n}^\top\mathbf{R}^\top\mathbf{K}^{-1}\mathbf{u}- \mathbf{n}^\top\mathbf{R}^\top\mathbf{t} + c = 0. $$

Now solve for $d$:

$$d = \frac{\mathbf{n}^\top \mathbf{R}^\top \mathbf{t} - c}{\mathbf{n}^\top \mathbf{R}^\top \mathbf{K}^{-1} \mathbf{u}}.$$

Note: It is important that $\mathbf{n}^\top \mathbf{R}^\top \mathbf{K}^{-1} \mathbf{u} \neq 0$ so that the division is valid (this means that the back-projected ray is not parallel to the plane).

Substitute the expression for $d$ back into the equation for $\mathbf{x}$:

$$\mathbf{x} = \mathbf{R}^\top \left( \frac{\mathbf{n}^\top \mathbf{R}^\top \mathbf{t} - c}{\mathbf{n}^\top \mathbf{R}^\top \mathbf{K}^{-1} \mathbf{u}}\, \mathbf{K}^{-1} \mathbf{u} - \mathbf{t} \right).$$

B.2 Ray-Plane Intersection as an Optimization Problem

If we write the ray-plane intersection as an optimization, the pixel-space objective should be dimensionally consistent:

$$ \min_{\mathbf{x}} \left\| \mathbf{u}- \Pi\left( \mathbf{K}(\mathbf{R}\mathbf{x}+\mathbf{t}) \right) \right\|^2 \tag{1} $$

subject to the plane constraint

$$ \mathbf{n}^\top \mathbf{x} + c = 0, $$

where $\mathbf{u}\in\mathbb R^2$ is a pixel coordinate and $\Pi$ is the perspective-division operator from Section 1.3:

$$ \Pi([a,b,d]^\top)= \begin{bmatrix} a/d\\ b/d \end{bmatrix}, \qquad d\ne0. $$

If $\mathbf{u}$ instead denotes normalized undistorted image coordinates, then $\mathbf{K}$ can be omitted and the ray direction is $\mathbf{R}^{-1}[\mathbf{u}^\top,1]^\top$.

Even when the measured image coordinate $\mathbf{u}$ is noisy, the pinhole camera model combined with the infinite plane constraint induces a homography from the plane to the image. For any image coordinate, there is a back-projected ray, and if that ray intersects the plane, the corresponding 3D point projects exactly back to the same coordinate. Therefore, Eq. (1) has minimum value zero whenever the ray intersects the plane. By itself, ray-plane intersection does not correct noisy image measurements; board-marker geometry or other multi-view observations must provide the denoising constraint.

  1. Parameterizing the Back‐Projection Ray

For normalized image coordinates, any 3D point $\mathbf{x}$ whose projection is $\mathbf{u}$ must satisfy

$$ \mathbf{R}\mathbf{x}+\mathbf{t}= \lambda \begin{pmatrix} \mathbf{u}\\ 1 \end{pmatrix}. $$

Solving for $\mathbf{x}$ gives

$$ \mathbf{x} = \mathbf{R}^{-1} \Bigl( \lambda \begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix} - \mathbf{t} \Bigr). $$

It is convenient to define the camera center in world coordinates as

$$ \mathbf{x}_c = -\mathbf{R}^{-1}\mathbf{t}, $$

and to introduce the direction vector

$$ \mathbf{d} = \mathbf{R}^{-1}\begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix}. $$

Thus, the 3D point $\mathbf{x}$ can be written as

$$ \mathbf{x} = \mathbf{x}_c + \lambda \mathbf{d}. $$

All points of this form project exactly to $\mathbf{u}$, which means the optimal value of Eq. (1) is zero

  1. Enforcing the Plane Constraint

Since $\mathbf{x}$ must lie on the plane, we impose

$$ \mathbf{n}^\top \mathbf{x} + c = 0. $$

Substitute $\mathbf{x} = \mathbf{x}_c + \lambda\mathbf{d}$ into the plane equation:

$$ \mathbf{n}^\top \Bigl( \mathbf{x}_c + \lambda\mathbf{d} \Bigr) + c = 0. $$

Expanding, we obtain

$$ \mathbf{n}^\top \mathbf{x}_c + \lambda \mathbf{n}^\top \mathbf{d} + c = 0. $$

Recalling that $\mathbf{x}_c = -\mathbf{R}^{-1}\mathbf{t}$, the equation becomes

$$ - \mathbf{n}^\top \mathbf{R}^{-1}\mathbf{t} + \lambda \mathbf{n}^\top \mathbf{d} + c = 0. $$

Solving for $\lambda$, we have

$$ \lambda \mathbf{n}^\top \mathbf{d} = \mathbf{n}^\top \mathbf{R}^{-1}\mathbf{t} - c, $$

or equivalently,

$$ \lambda = \frac{\mathbf{n}^\top \mathbf{R}^{-1}\mathbf{t} - c}{\mathbf{n}^\top \mathbf{d}} = \frac{\mathbf{n}^\top \mathbf{R}^{-1}\mathbf{t} - c}{\mathbf{n}^\top \mathbf{R}^{-1}\begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix}}, $$

provided that $\mathbf{n}^\top \mathbf{d} \neq 0$.

A physically visible intersection also requires positive camera depth.

  1. The Final Solution

Substitute the value of $\lambda$ back into the expression for $\mathbf{x}$:

$$ \mathbf{x} = -\mathbf{R}^{-1}\mathbf{t} + \frac{\mathbf{n}^\top \mathbf{R}^{-1}\mathbf{t} - c}{\mathbf{n}^\top \mathbf{R}^{-1}\begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix}} \mathbf{R}^{-1}\begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix}. $$

This is the unique 3D point on the plane $\mathbf{n}^\top \mathbf{x} + c = 0$ selected by the measured ray, provided the ray is not parallel to the plane and the depth is positive.

  1. Summary

a. Back‐Projection: The projection model

$$ \mathbf{x} \mapsto \frac{\mathbf{R}\mathbf{x} + \mathbf{t}}{\mathbf{e}^\top (\mathbf{R}\mathbf{x} + \mathbf{t})} $$

is a homography when restricted to the plane. Hence, every point along the ray

$$ \mathcal{R}(\mathbf{u}) = \Bigl\{ \mathbf{x} = -\mathbf{R}^{-1}\mathbf{t} + \lambda \mathbf{R}^{-1}\begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix} : \lambda \in \mathbb{R} \Bigr\} $$

projects to $\mathbf{u}$.

b. Plane Intersection: The plane constraint $\mathbf{n}^\top \mathbf{x} + c = 0$ uniquely determines the scalar $\lambda$, and hence the unique point $\mathbf{x}$.

Thus, the final answer is

$$ \boxed{ \mathbf{x} = -\mathbf{R}^{-1}\mathbf{t} + \frac{\mathbf{n}^\top \mathbf{R}^{-1}\mathbf{t} - c}{\mathbf{n}^\top \mathbf{R}^{-1}\begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix}} \mathbf{R}^{-1}\begin{pmatrix} \mathbf{u} \\ 1 \end{pmatrix}. } $$

B.3 Optional Board-Plane Residual

The main formulation uses reprojection error. As an optional alternative, inverse ray-plane intersection gives the point where a back-projected image ray intersects a known plane, provided the ray is not parallel to the plane. This subsection returns to the local-to-world camera pose convention used in the main article.

For board $b$, its world-frame plane is

$$ n_b^\top X+c_b=0, $$

where

$$ n_b=R^B_b e_3, \qquad c_b=-n_b^\top t^B_b, \qquad e_3= \begin{bmatrix} 0\\0\\1 \end{bmatrix}. $$

Camera $c$’s center in world coordinates is now directly:

$$ \boxed{ o_c=t^C_c. } $$

For homogeneous image coordinate

$$ \tilde u_{cp}= \begin{bmatrix} u_{cp}\\ v_{cp}\\ 1 \end{bmatrix}, $$

the ray direction in camera coordinates is

$$ d_{cp}^{C} = K_c^{-1}\tilde u_{cp}. $$

The same direction in world coordinates is

$$ \boxed{ d_{cp}^{W} = R^C_c d_{cp}^{C}. } $$

The ray-plane intersection is

$$ \boxed{ \phi_{cp}(T^C_c,T^B_b) = o_c - \frac{n_b^\top o_c+c_b} {n_b^\top d_{cp}^{W}} d_{cp}^{W}. } $$

The board-generated world point is

$$ \boxed{ X_p^W=R^B_b q_p+t^B_b. } $$

The post-style residual would be

$$ \boxed{ r_{cp}^{\text{ray}} = P_b^\top \left[ \phi_{cp}(T^C_c,T^B_{\beta(p)}) - \left( R^B_{\beta(p)} q_p+t^B_{\beta(p)} \right) \right], } $$

where

$$ P_b= \begin{bmatrix} R^B_b e_1 & R^B_b e_2 \end{bmatrix} \in\mathbb R^{3\times2} $$

is the tangent basis of the board plane.

I recommend using the tangent-plane residual, not the full 3D residual, because both points are supposed to lie on the board plane and the meaningful error is along the board surface.

However, the reprojection objective is usually preferable because pixel noise is naturally modeled in image coordinates. The ray-plane residual requires converting pixel uncertainty into board-plane uncertainty, which depends on viewing angle and can become ill-conditioned when

$$ n_b^\top d_{cp}^{W}\approx 0. $$

Appendix C. Alternative Design Formulations

The main article uses camera-uncertainty minimization. This appendix retains alternative criteria and derivations for readers who need a different design objective or a discrete placement budget.

C.1 Single-Board Objective and Tolerance Scaling

A direct next-board-placement problem is

$$ \boxed{ (T^B_b)^* = \underset{T^B_b\in\mathcal F}{\arg\min} \; \operatorname{tr} \left( D\Sigma_C(T^B_b)D^\top \right), } $$

where $\mathcal F$ is the feasible set of board poses, and $D$ normalizes translation and rotation by required tolerances. For a single camera pose, one example is

$$ D = \operatorname{diag} \left( 1/\tau_x,\, 1/\tau_y,\, 1/\tau_z,\, 1/\tau_{\mathrm{roll}},\, 1/\tau_{\mathrm{pitch}},\, 1/\tau_{\mathrm{yaw}} \right). $$

For multiple cameras, use the corresponding block-diagonal normalization.

Other useful criteria are the D-optimal score

$$ \boxed{ \max_{T^B_b\in\mathcal F} \log\det\Lambda_C(T^B_b), } $$

which reduces the overall uncertainty volume, and the E-optimal score

$$ \boxed{ \max_{T^B_b\in\mathcal F} \lambda_{\min} \left( D^{-T}\Lambda_C(T^B_b)D^{-1} \right), } $$

which improves the least observable camera-pose direction. For extrinsic calibration, the E-optimal criterion is often the more practical one, because a calibration can have a small average error while still containing one poorly constrained combination, such as camera height and pitch.

C.2 Overview of Alternative Criteria

Other experimental-design objectives can be substituted:

$$ \text{D-optimal:}\qquad \underset{s\in\mathcal S}{\arg\max}\; \log\det \Lambda_\theta(s) - \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s), $$$$ \text{E-optimal:}\qquad \underset{s\in\mathcal S}{\arg\max}\; \lambda_{\min} \left( D^{-T}\Lambda_\theta(s)D^{-1} \right) - \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s), $$

or a worst-camera objective:

$$ \underset{s\in\mathcal S}{\arg\min}\; \max_{c\in\mathcal C} \operatorname{tr} \left( D_c \Sigma_{\theta_c}(s)D_c^\top \right) + \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s). $$

C.3 Detailed Alternative Upper-Level Criteria

The A-optimal objective in (BL-A) minimizes the normalized trace of the predicted camera covariance. Other criteria are useful in different production settings.

D-optimal placement minimizes the uncertainty volume:

$$ \boxed{ s^\star = \underset{s\in\mathcal S}{\arg\max} \; \log\det \Lambda_\theta(s) - \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s). } \tag{BL-D} $$

Equivalently,

$$ s^\star = \underset{s\in\mathcal S}{\arg\min} \; - \log\det \Lambda_\theta(s) + \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s). $$

E-optimal placement improves the weakest observable camera-pose direction:

$$ \boxed{ s^\star = \underset{s\in\mathcal S}{\arg\max} \; \lambda_{\min} \left( D^{-T} \Lambda_\theta(s) D^{-1} \right) - \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s). } \tag{BL-E} $$

This is often useful for camera extrinsic calibration because the failure mode is usually not the average error, but one poorly constrained direction, such as height-pitch coupling or lateral-yaw coupling.

If every camera must satisfy a production tolerance, use a worst-camera objective:

$$ \boxed{ s^\star = \underset{s\in\mathcal S}{\arg\min} \; \max_{c\in\mathcal C} \operatorname{tr} \left( D_c \Sigma_{\theta_c}(s) D_c^\top \right) + \lambda_{\mathrm{cost}}C_{\mathrm{place}}(s). } \tag{BL-worst} $$

This avoids a placement that helps some cameras but leaves one camera poorly calibrated.

C.4 Abstract Bilevel Form and Objective Choices

Putting the lower and upper levels together gives the clean abstract formulation:

$$ \boxed{ \begin{aligned} s^\star = \underset{s\in\mathcal S}{\arg\min} &\quad \mathcal U(x^\star(s),s) \\ \text{s.t.} &\quad x^\star(s) \in \underset{x}{\arg\min} \; \mathcal L(x;s), \end{aligned} } \tag{BL} $$

where

$$ x= \left( \{T_c^C\}_{c=1}^C, \{T_b^B\}_{b=1}^B \right), $$

and $\mathcal L(x;s)$ is the joint calibration objective. The upper objective can be chosen according to the available information.

If the goal is truly optimized residual, use

$$ \boxed{ \mathcal U_{\mathrm{res}}(x^\star,s) = \mathbb E \left[ \frac{1}{|\mathcal E(s)|} \mathcal L(x^\star(s);s) \right]. } $$

If the study is a simulation and the ground-truth camera poses are known, use the actual camera-pose error:

$$ \boxed{ \mathcal U_{\mathrm{pose}}(x^\star,s) = \mathbb E \left[ \sum_c \left\| \operatorname{Log} \left( (T_c^{C,\mathrm{true}})^{-1} (T_c^C)^\star(s) \right) \right\|_{D_c^\top D_c}^2 \right]. } $$

For a real calibration station, the most practical design objective is information-based:

$$ \boxed{ \mathcal U_{\mathrm{info}}(s) = \operatorname{tr} \left( D\Lambda_\theta(s)^{-1}D^\top \right). } $$

For EOL board-placement design, $\mathcal U_{\mathrm{info}}(s)$ is preferable to optimized residual because it directly measures predicted camera-pose uncertainty.

C.5 Why Optimized Residual Is Not the Placement Objective

If the upper level literally minimizes the final optimized residual, the bilevel problem is

$$ \boxed{ \begin{aligned} s^\star = \underset{s\in\mathcal S}{\arg\min} &\quad \mathbb E_{\epsilon} \left[ \mathcal L(x^\star(s,\epsilon);s,\epsilon) \right] + \lambda_{\mathrm{cost}}\,C_{\mathrm{place}}(s) \\ \text{s.t.} &\quad x^\star(s,\epsilon) \in \underset{x}{\arg\min} \; \mathcal L(x;s,\epsilon). \end{aligned} } \tag{BL-residual} $$

The normalized version is usually better:

$$ \boxed{ s^\star = \underset{s\in\mathcal S}{\arg\min} \; \mathbb E_{\epsilon} \left[ \frac{1}{|\mathcal E(s)|} \mathcal L(x^\star(s,\epsilon);s,\epsilon) \right] + \lambda_{\mathrm{cost}}\,C_{\mathrm{place}}(s). } \tag{BL-residual-normalized} $$

The normalization prevents a placement with fewer visible markers from appearing artificially better only because it has fewer residual terms. However, residual minimization is not the best placement-design objective. In the noise-free case, many feasible board placements can achieve nearly zero residual. A low optimized reprojection error does not necessarily mean that the camera pose is accurately estimated. A degenerate placement can fit its own observations while leaving some camera-pose directions weakly observable.

This is why the more useful second-level problem is an optimal experimental design problem: choose board placements that minimize predicted camera-pose uncertainty.

C.6 Residual Value Function and Envelope Derivative

The residual-minimization bilevel problem can also be written with the value function

$$ V(s) = \min_x \mathcal L(x;s). $$

Then

$$ \boxed{ s^\star = \underset{s\in\mathcal S}{\arg\min} \; V(s). } \tag{VF} $$

If the lower-level solution is unique and smooth, the envelope theorem gives

$$ \boxed{ \nabla_s V(s) = \frac{\partial \mathcal L}{\partial s} \left( x^\star(s);s \right). } $$

This is computationally convenient because the derivative of $x^\star(s)$ is not needed when the upper objective is exactly the optimized lower-level loss. For calibration placement design, however, $V(s)$ is usually not the best objective because minimized residual can be small even when the pose estimate is uncertain.

C.7 Fixed-Budget Discrete Board Selection

The 40-board replacement experiment in Section 4.5 is a discrete, fixed-budget approximation of the board-placement design problem. Let $\mathcal G$ be the finite set of candidate perimeter-board poses, let $\mathcal A\subset\mathcal G$ be the selected board set, and let $|\mathcal A|=40$. For each candidate $g$, compute its marginalized camera-pose information contribution

$$ \Delta\Lambda_g = J_{c,g}^\top W_g J_{c,g} - J_{c,g}^\top W_g J_{b,g} \left( J_{b,g}^\top W_g J_{b,g} \right)^{-1} J_{b,g}^\top W_g J_{c,g}. $$

Then the fixed-budget subset problem is

$$ \mathcal A^\star = \underset{\mathcal A\subset\mathcal G,\;|\mathcal A|=40}{\arg\min} \; \operatorname{tr} \left[ D \left( \Lambda_0 + \sum_{g\in\mathcal A} \Delta\Lambda_g \right)^{-1} D^\top \right] + \lambda_{\mathrm{cost}} \sum_{g\in\mathcal A} C_{\mathrm{place}}(g), \tag{SUB} $$

subject to the same spacing, visibility, and placement constraints. The greedy swap procedure in Section 4.5 starts from the uniform set $\mathcal A_0$, evaluates replacements

$$ r\in\mathcal A,\qquad g\in\mathcal G\setminus\mathcal A, $$

and accepts the swap if

$$ U(\mathcal A-\{r\}+\{g\}) < U(\mathcal A), $$

where $U(\mathcal A)$ is the A-optimal trace objective in (SUB). This is why the experiment uses the solution of the initial 40-board calibration: the solved state gives the Jacobian, the Schur-marginalized camera information, and the covariance metric used to decide which physical board placements should be replaced.

Appendix D. Two-Camera Bundle-Adjustment Special Case

Suppose the board marker coordinates in the board frame are $\{ \mathbf{x}_i^g \}_{i=1}^N$. The measured marker points in the world frame are $\{ \mathbf{x}_i^o \}_{i=1}^N$. The observed image markers in camera $c$ are $\{\mathbf{u}_{ci}\}$.

A standard bundle-adjustment objective should minimize pixel reprojection error, not a 3D inverse-ray-plane error. Let the board pose be

$$ \mathbf{T}_0= \begin{bmatrix} \mathbf{R}_0 & \mathbf{t}_0\\ 0 & 1 \end{bmatrix}, $$

so the board-generated world point is

$$ \mathbf{x}_i= \mathbf{R}_0\mathbf{x}_i^g+\mathbf{t}_0. $$

Let camera $c$ have world-to-camera extrinsic $(\mathbf{R}_c,\mathbf{t}_c)$ and intrinsic matrix $\mathbf{K}_c$. A clean two-camera objective is

$$ \boxed{ \begin{aligned} \min_{\mathbf{T}_0,\{\mathbf{R}_c,\mathbf{t}_c\}} &\quad \sum_{c\in\{1,2\}} \sum_{i\in C_c} \left\| \mathbf{u}_{ci} - \Pi\left( \mathbf{K}_c \left[ \mathbf{R}_c (\mathbf{R}_0\mathbf{x}_i^g+\mathbf{t}_0) + \mathbf{t}_c \right] \right) \right\|_{\Sigma_{u,ci}^{-1}}^2 \\ &\quad+ \sum_i \left\| \mathbf{R}_0\mathbf{x}_i^g+\mathbf{t}_0-\mathbf{x}_i^o \right\|_{\Sigma_{x,i}^{-1}}^2 . \end{aligned} } $$

The shared board pose already couples the two cameras: if both cameras observe marker $i$, both residuals use the same physical point $\mathbf{R}_0\mathbf{x}_i^g+\mathbf{t}_0$. Therefore a separate term such as

$$ \left\| \phi_1(\mathbf{u}_{1i})-\phi_2(\mathbf{u}_{2i}) \right\|^2 $$

where $\phi_c$ is ray-plane intersection, is not an independent measurement. It is algebraically dependent on the same image observations and shared board or plane geometry, and it can double-count the same observations. The general multi-board formulation in Section 1 includes this two-camera reprojection objective as a special case.

Appendix E. ADMM and Bundle Adjustment Comparison

E.1 Conclusion

For end-of-line multi-camera calibration, sparse factor-graph bundle adjustment is better than ADMM when all observations can be processed on one machine. It solves the physical estimation problem directly, exploits its sparse camera-board structure, converges more reliably, and avoids consensus variables, dual variables, and penalty-parameter tuning.

ADMM remains useful when distribution is a hard system requirement. It should be selected for data locality, parallel ownership, or communication constraints—not because it is expected to produce a more accurate calibration than centralized bundle adjustment.

The calibration formulation and simulation are given in Section 1 and Section 4.

E.2 Same Estimation Problem, Different Solver Organization

Both approaches can minimize the same physical objective:

$$ \min_{\{T_b^B\},\{T_c^C\}} \sum_{(c,p)\in\mathcal E} \left\| \Sigma_{u,cp}^{-1/2} \left[ \Pi\left(K_cP_3(T_c^C)^{-1}T_{\beta(p)}^B\bar q_p\right)-u_{cp} \right] \right\|^2 + \sum_b\phi_b(T_b^B) + \sum_c\psi_c(T_c^C). $$

The variables are camera poses $T_c^C$ and board poses $T_b^B$. Each reprojection factor connects one camera pose to one board pose through an observed marker point.

Factor-graph bundle adjustment keeps these physical variables in one sparse nonlinear least-squares problem. ADMM introduces local copies and consensus constraints so that parts of the problem can be solved separately.

E.3 ADMM Formulation

The most general split for sparse visibility is point-level consensus. Let

$$ X_p(T_{\beta(p)}^B)=R_{\beta(p)}^Bq_p+t_{\beta(p)}^B $$

be the world position of marker point $p$, generated by the pose of its board $\beta(p)$. For every observed camera-point edge $(c,p)\in\mathcal E$, introduce a camera-local world-frame copy

$$ Y_{cp}\in\mathbb R^3, \qquad \bar Y_{cp}=[Y_{cp}^{\top},1]^{\top}. $$

Use the observation neighborhoods

$$ \mathcal N(c)=\{p:(c,p)\in\mathcal E\}, \qquad \mathcal N(p)=\{c:(c,p)\in\mathcal E\}. $$

All local copies are tied to the physical board geometry by the consensus constraint

$$ \boxed{ Y_{cp}=X_p(T_{\beta(p)}^B) } \qquad (c,p)\in\mathcal E. $$

The camera-local reprojection loss is

$$ \boxed{ \ell_{cp}(T_c^C,Y_{cp})= \frac12 \left\| \Sigma_{u,cp}^{-1/2} \left[ \Pi\left(K_cP_3(T_c^C)^{-1}\bar Y_{cp}\right)-u_{cp} \right] \right\|^2. } $$

The point-copy ADMM problem is therefore

$$ \boxed{ \begin{aligned} \min_{\{T_c^C\},\{T_b^B\},\{Y_{cp}\}} &\quad \sum_{(c,p)\in\mathcal E}\ell_{cp}(T_c^C,Y_{cp}) + \sum_b\phi_b(T_b^B) + \sum_c\psi_c(T_c^C) \\ \text{s.t.} &\quad Y_{cp}=X_p(T_{\beta(p)}^B), \qquad (c,p)\in\mathcal E. \end{aligned} } \tag{A} $$

When consensus is satisfied, substituting $Y_{cp}=X_p(T_{\beta(p)}^B)$ into (A) recovers the centralized bundle-adjustment objective exactly. The split changes the optimization organization, not the desired physical solution.

Scaled Augmented Lagrangian

For every observation edge, introduce a scaled dual variable $\lambda_{cp}\in\mathbb R^3$ and penalty $\mu_{cp}>0$. Omitting constants independent of the primal variables, the scaled augmented Lagrangian is

$$ \boxed{ \begin{aligned} \mathcal L_{\mu}= &\sum_{(c,p)\in\mathcal E}\ell_{cp}(T_c^C,Y_{cp}) + \sum_b\phi_b(T_b^B) + \sum_c\psi_c(T_c^C) \\ &+ \sum_{(c,p)\in\mathcal E} \frac{\mu_{cp}}{2} \left\| Y_{cp}-X_p(T_{\beta(p)}^B)+\lambda_{cp} \right\|^2. \end{aligned} } \tag{AL} $$

This problem is nonconvex because it contains $SE(3)$ poses and perspective projection. ADMM’s standard convex convergence guarantees therefore do not apply globally; good initialization and well-scaled penalties remain important.

Camera-Local Update

At iteration $k$, each camera independently updates its pose and point copies:

$$ \boxed{ \begin{aligned} &(T_c^C)^{k+1}, \{Y_{cp}^{k+1}\}_{p\in\mathcal N(c)} \\ &\quad= \underset{T_c^C,\{Y_{cp}\}}{\arg\min} \Bigg[ \psi_c(T_c^C) + \sum_{p\in\mathcal N(c)} \ell_{cp}(T_c^C,Y_{cp}) \\ &\qquad\qquad+ \sum_{p\in\mathcal N(c)} \frac{\mu_{cp}}{2} \left\| Y_{cp}-X_p((T_{\beta(p)}^B)^k)+\lambda_{cp}^k \right\|^2 \Bigg]. \end{aligned} } \tag{ADMM-1} $$

This is a small nonlinear least-squares problem for one camera. The camera pose should use a Lie-group update, while each $Y_{cp}$ uses an ordinary Euclidean update. All camera subproblems can run in parallel.

Board Update

Each board independently reconciles the camera-local point copies with its rigid marker geometry:

$$ \boxed{ \begin{aligned} (T_b^B)^{k+1}= \underset{T_b^B\in SE(3)}{\arg\min} \Bigg[ \phi_b(T_b^B) + \sum_{p\in\mathcal P_b} \sum_{c\in\mathcal N(p)} \frac{\mu_{cp}}{2} \left\| Y_{cp}^{k+1}-R_b^Bq_p-t_b^B+\lambda_{cp}^{k} \right\|^2 \Bigg]. \end{aligned} } \tag{ADMM-2} $$

With isotropic point priors, this update is a weighted rigid-alignment problem and can be solved by weighted Kabsch. With anisotropic covariance or a general pose prior, it is a small six-degree-of-freedom LM problem. All board updates can also run in parallel.

Dual Update and Stopping Criteria

For every camera-point edge, update the scaled dual variable by

$$ \boxed{ \lambda_{cp}^{k+1}=\lambda_{cp}^{k}+ Y_{cp}^{k+1}-X_p((T_{\beta(p)}^B)^{k+1}). } \tag{ADMM-3} $$

The primal and dual residuals can be written as

$$ \boxed{ \begin{aligned} r_{p,cp}^{k+1} &=Y_{cp}^{k+1}-X_p((T_{\beta(p)}^B)^{k+1}), \\ r_{d,cp}^{k+1} &=\mu_{cp} \left[ X_p((T_{\beta(p)}^B)^{k+1})-X_p((T_{\beta(p)}^B)^k) \right]. \end{aligned} } $$

Stop only when both aggregated norms $\|r_p\|$ and $\|r_d\|$ satisfy their absolute and relative tolerances. If residual balancing changes $\mu_{cp}$, the scaled dual variable must be rescaled consistently.

The complete point-copy iteration is:

  1. Solve all camera-local problems in parallel.
  2. Solve all board-consensus problems in parallel.
  3. Update all scaled dual variables.
  4. Evaluate the primal and dual residuals.
  5. Adjust penalties if necessary and repeat.

Pose-Copy ADMM Variant

When every visible camera-board pair contains enough well-distributed markers, one local board pose can replace all point copies for that incidence. Define

$$ \mathcal A= \left\{ (c,b):\exists p\in\mathcal P_b\text{ with }(c,p)\in\mathcal E \right\}, $$

with

$$ \mathcal N_B(c)=\{b:(c,b)\in\mathcal A\}, \qquad \mathcal N_B(b)=\{c:(c,b)\in\mathcal A\}. $$

Let $T_{b|c}^B$ be camera $c$’s local copy of board $b$. The split problem becomes

$$ \boxed{ \begin{aligned} \min_{\{T_c^C\},\{T_{b|c}^B\},\{T_b^B\}} &\quad \sum_c \left[ \psi_c(T_c^C)+ \sum_{b\in\mathcal N_B(c)}f_{cb}(T_c^C,T_{b|c}^B) \right] + \sum_b\phi_b(T_b^B) \\ \text{s.t.} &\quad T_{b|c}^B=T_b^B, \qquad (c,b)\in\mathcal A, \end{aligned} } \tag{PC} $$

where

$$ f_{cb}(T_c^C,T_b^B)= \frac12 \sum_{p\in\mathcal P_b:(c,p)\in\mathcal E} \left\| \Sigma_{u,cp}^{-1/2} \left[ \Pi\left(K_cP_3(T_c^C)^{-1}T_b^B\bar q_p\right)-u_{cp} \right] \right\|^2. $$

Pose consensus must be measured on the manifold rather than by subtracting transformation matrices. A suitable tangent-space disagreement is

$$ \Delta(Z,X)=\operatorname{Log}(Z^{-1}X)^{\vee}\in\mathbb R^6. $$

The corresponding consensus penalty for incidence $(c,b)$ is

$$ \frac{\rho_{cb}}{2} \left\| \Delta(T_b^B,T_{b|c}^B)+u_{cb} \right\|_{M_B}^{2}, $$

where $M_B$ scales rotational and translational components consistently. Camera workers update $(T_c^C,T_{b|c}^B)$, board workers update $T_b^B$, and the scaled dual update is

$$ u_{cb}^{k+1}=u_{cb}^k+ \Delta((T_b^B)^{k+1},(T_{b|c}^B)^{k+1}). $$

Pose-copy ADMM communicates one six-degree-of-freedom pose per visible camera-board incidence. Point-copy ADMM communicates one three-dimensional point per camera-point observation. The pose-copy form can therefore communicate much less state, but its local pose is weakly constrained when a camera sees too few or poorly distributed points on a board.

E.4 Direct Comparison

PropertySparse factor-graph bundle adjustmentADMM
Optimization modelDirectly optimizes camera and board posesOptimizes local copies plus consensus constraints
SparsityUses the native camera-board factor graphAdds split variables and dual state
Local convergenceStrong Gauss-Newton or Levenberg-Marquardt behavior near the solutionDepends on alternating local solves and consensus progress
TuningTrust-region or damping parametersLocal-solver settings plus one or more ADMM penalties
Stopping ruleGradient, step, and objective convergenceLocal convergence plus primal and dual consensus residuals
Runtime on one machineUsually lowerUsually higher because several subproblems are repeatedly solved
CommunicationNot applicable in a centralized processExplicit communication every consensus round
ImplementationStandard factor and sparse-solver abstractionsCustom copies, dual updates, synchronization, and penalty adaptation
Best useCentralized production calibrationTruly distributed or data-local calibration

E.5 Why Bundle Adjustment Is Better Here

It preserves the natural factor graph

The calibration graph is already sparse. A reprojection factor touches only one camera pose and one board pose. Sparse bundle adjustment uses this structure directly instead of expanding the state with a copy of every shared point or board pose.

It uses second-order coupling immediately

The centralized normal equations contain the camera-board coupling required to update the complete system coherently. Schur elimination can marginalize either the board variables or the camera variables while retaining their information contribution.

ADMM exposes the same coupling gradually through repeated consensus updates. That decomposition is useful across machines, but it is unnecessary overhead when the full sparse system is locally available.

It is easier to tune and diagnose

Bundle adjustment requires a sensible initialization, residual weighting, robust losses when needed, and an LM or trust-region policy. ADMM requires all of those choices plus consensus penalties, rotation-versus-translation scaling, primal and dual stopping tolerances, and sometimes adaptive penalty updates.

With bundle adjustment, covariance inspection, observability analysis, marginalization, and residual diagnostics also operate directly on the physical factor graph.

It was faster in the reference experiment

In the 8-camera, 24-board simulation, the three methods reached nearly the same solution, but centralized bundle adjustment was substantially faster in the serial reference implementation:

MethodReprojection RMSE (px)Runtime (s)Mean camera rotation error (deg)Mean camera translation error (m)
Centralized sparse BA1.04861.41800.05820.0036
Point-level ADMM1.04886.15750.05920.0037
Pose-copy ADMM1.05225.60320.05060.0031

These timings are implementation-specific rather than a universal complexity result. They nevertheless demonstrate the practical point: ADMM matched the centralized solution but did not improve its overall accuracy or serial runtime. Sparse bundle adjustment was the better solver for the centralized EOL configuration.

E.6 Simulation Comparisons

The following experiments accompany the multi-board and multi-camera calibration experiment in Section 4.4. The workspace scenarios use four to eight cameras, six to twenty-four boards, a $7\times5$ marker grid on each board, noisy image observations, noisy surveyed world points, and partial visibility. All methods use the same measurements and initialization within each scenario. The figures and tables below preserve the original benchmark results; timings refer to the serial Python reference implementation.

Scaling Comparison

The table below compares centralized BA against the two ADMM variants as the number of boards grows. All three solvers use sparse finite-difference Jacobian patterns. In the centralized problem, each image residual touches one camera pose and one board pose. In the point-level ADMM camera subproblem, each residual touches the camera pose and one camera-local point copy. In the pose-copy ADMM camera subproblem, each residual touches the camera pose and one local board-pose copy.

ScenarioObservationsCentral RMSE (px)Point ADMM RMSE (px)Pose-Copy RMSE (px)Central Runtime (s)Point ADMM Runtime (s)Pose-Copy Runtime (s)
4_cameras_6_boards3351.00461.00791.01960.16840.88011.1359
8_cameras_6_boards5981.03221.03281.03580.49381.70231.8307
8_cameras_12_boards12641.03951.03951.04481.45273.11922.9822
8_cameras_24_boards27121.04861.04881.05221.41806.15755.6032
Runtime scaling for centralized bundle adjustment and point-level ADMM
Runtime comparison across scenario sizes.
Reprojection accuracy scaling for centralized bundle adjustment and point-level ADMM
Optimized reprojection RMSE across scenario sizes.
ADMM to centralized runtime ratio across scenario sizes
Runtime ratio for the serial ADMM reference implementation.

The absolute timings should be read as implementation timings, not as a theorem about any optimizer. The important numerical check is that the optimized solvers reach almost the same reprojection error and camera-pose accuracy across the sweep.

Pose-Copy ADMM Experiment

The camera-centric pose-copy formulation described above splits the problem by camera: cameras optimize their camera pose and local board-pose copies, then global board poses enforce consensus with surveyed world-point priors.

The main benefit is communication size. Point-level ADMM communicates a 3D point copy for every camera-point observation, while pose-copy ADMM communicates one 6-DoF board pose for every visible camera-board pair. In these synthetic boards, each visible pair has many markers, so the pose-copy consensus payload is about $16.5\times$ smaller.

ScenarioObservationsCamera-Board PairsCentral RMSE (px)Point-Copy RMSE (px)Pose-Copy RMSE (px)Point/Pose Consensus ScalarsPose-Copy Runtime (s)
4_cameras_6_boards335101.00461.00791.019616.75001.1359
8_cameras_6_boards598181.03221.03281.035816.61111.8307
8_cameras_12_boards1264381.03951.03951.044816.63162.9822
8_cameras_24_boards2712821.04861.04881.052216.53665.6032
Consensus communication comparison for point-copy and pose-copy ADMM
Consensus variables communicated per ADMM round. Pose-copy ADMM is much smaller when each visible board contributes many markers.
Reprojection accuracy comparison including pose-copy ADMM
Reprojection RMSE for centralized BA, point-copy ADMM, and pose-copy ADMM.
Runtime comparison including pose-copy ADMM
Serial Python runtime. Pose-copy reduces communication, but centralized sparse BA is still faster on one machine.

For the largest case, pose-copy ADMM finishes with $1.0522$ px reprojection RMSE, mean camera rotation error $0.0506^\circ$, mean camera translation error $0.0031$ m, and consensus residuals of $0.0229^\circ$ rotation and $0.0006$ m translation.

Pose-copy ADMM convergence curves
Pose-copy ADMM convergence in the 8-camera, 24-board case.

The conclusion is that the pose-copy method is valid and useful, but for a different engineering reason than centralized accuracy. It nearly matches centralized BA and point-level ADMM here, while reducing per-round consensus payload. It does not beat centralized BA in this serial reference implementation, and it needs good incidence-level marker coverage plus careful rotation/translation scaling.

Full solver summary:

ScenarioMethodReprojection RMSE (px)Mean Camera Rot. Error (deg)Mean Camera Trans. Error (m)Mean Board Rot. Error (deg)Mean Board Trans. Error (m)
4_cameras_6_boardsInitial80.43904.90350.17440.36080.0041
4_cameras_6_boardsCentralized BA1.00460.10010.00780.17220.0040
4_cameras_6_boardsPoint-level ADMM1.00790.09400.00710.16740.0039
4_cameras_6_boardsPose-copy ADMM1.01960.11580.00870.18490.0038
8_cameras_6_boardsInitial51.88433.64880.19850.29980.0035
8_cameras_6_boardsCentralized BA1.03220.10930.00750.08240.0029
8_cameras_6_boardsPoint-level ADMM1.03280.10860.00750.08290.0031
8_cameras_6_boardsPose-copy ADMM1.03580.11610.00760.08410.0030
8_cameras_12_boardsInitial61.04193.41610.19550.37720.0030
8_cameras_12_boardsCentralized BA1.03950.07200.00510.09920.0020
8_cameras_12_boardsPoint-level ADMM1.03950.07030.00500.09810.0020
8_cameras_12_boardsPose-copy ADMM1.04480.07210.00560.09820.0019
8_cameras_24_boardsInitial63.09914.86420.21250.39490.0032
8_cameras_24_boardsCentralized BA1.04860.05820.00360.10070.0012
8_cameras_24_boardsPoint-level ADMM1.04880.05920.00370.10290.0012
8_cameras_24_boardsPose-copy ADMM1.05220.05060.00310.10090.0012

Solver Comparison

For the 8-camera, 24-board case, the initialization perturbs camera poses by several degrees and tens of centimeters, while board poses are initialized from noisy surveyed world marker measurements. All three optimized solvers reduce reprojection error by roughly two orders of magnitude.

MethodReprojection RMSE (px)Mean Camera Rot. Error (deg)Mean Camera Trans. Error (m)Mean Board Rot. Error (deg)Mean Board Trans. Error (m)
Initial63.09914.86420.21250.39490.0032
Centralized BA1.04860.05820.00360.10070.0012
Point-level ADMM1.04880.05920.00370.10290.0012
Pose-copy ADMM1.05220.05060.00310.10090.0012

Computation time in this Python implementation:

MethodRuntime (s)Outer IterationsObservations/sNotes
Centralized BA1.4180111912.5843One sparse nonlinear least-squares solve
Point-level ADMM6.157512440.4375Camera subproblems plus board Kabsch updates
Pose-copy ADMM5.603212484.0059Camera subproblems plus board-pose consensus updates

This runtime comparison is for the serial reference implementation. After giving the centralized solver the same structural sparsity information, centralized BA is faster in this run. The ADMM variants’ main engineering advantage is still decomposition into camera-parallel updates and board-parallel consensus updates, not raw serial speed.

Pose error comparison for initialization, centralized BA, and point-level ADMM
Pose error comparison across initialization, centralized BA, and point-level ADMM.

The board error is already small at initialization because the boards are directly anchored by surveyed world points. The camera error drops much more strongly because the image residuals provide most of the camera-pose information.

ADMM Convergence

The ADMM solver alternates between camera-local nonlinear least-squares updates, board-wise rigid alignment, and dual updates. In the 8-camera, 24-board run, the ADMM result reaches essentially the same reprojection error as centralized BA.

Point-level ADMM convergence curves
ADMM convergence: reprojection RMSE, primal residual, and mean camera pose error.

Final ADMM iteration:

IterationRMSE (px)Primal Residual (m)Mean Camera Rot. Error (deg)Mean Camera Trans. Error (m)
121.0487680.0017060.0592070.003674

The residual distribution for the centralized and point-level ADMM runs shows the same story: both optimized methods collapse the broad initial residual distribution into a tight pixel-level distribution, but point-level ADMM does not improve the final residual distribution over sparse BA.

Residual histogram for initialization, centralized BA, and point-level ADMM
Reprojection residual distribution before and after optimization.

What This Demonstrates

The simulation illustrates four points from the formulation:

  1. The primitive observation is still the camera-point edge $(c,p)$, even though the optimized variables are camera and board poses.
  2. Centralized BA directly uses the sparse camera-board structure and gives the reference solution.
  3. Point-level ADMM reaches nearly the same solution over all tested scales, but in this serial implementation it has no accuracy or runtime advantage over sparse BA. Its value is exposing camera-parallel and board-parallel subproblems.
  4. Pose-copy ADMM is also valid when each camera-board incidence is well constrained. It gives similar accuracy while communicating far fewer consensus variables, but it still does not beat centralized BA in this serial Python implementation.

For production EOL calibration, the centralized sparse solve is the default choice when all data can be processed on one machine. ADMM splits are mainly useful when the calibration system is distributed, when cameras are processed by separate workers, when communication is constrained, or when the board update must remain a simple rigid-alignment module.

Car-Mounted 7-Camera Board-Count Comparison

The previous synthetic scene places cameras around a workspace. A more EOL-like setup is a vehicle rig. In this experiment, the cameras are mounted on a car-like body with seven cameras: front wide, front narrow, left-front, right-front, left-rear, right-rear, and rear. The side cameras are crossed in position: the cameras named left-front and right-front are physically closer to the rear, while the cameras named left-rear and right-rear are physically closer to the front. This creates overlapping side views. Boards are sampled from uniform rectangular perimeter rings around the vehicle, then the number of selected boards is increased.

The board-count sweep is:

BoardsObservationsCamera-Board PairsCentral RMSE (px)Point ADMM RMSE (px)Pose-Copy RMSE (px)Central Runtime (s)Point ADMM Runtime (s)Pose-Copy Runtime (s)Point/Pose Consensus Scalars
8481181.07031.07441.07330.93601.33621.550813.3611
12656281.07901.08331.08241.22241.76012.078611.7143
16893341.04651.04971.05501.23502.12962.610413.1324
241327541.03381.03791.04322.55313.03563.362912.2870
321765721.04511.04911.05392.39423.90413.923912.2569
402185891.03911.04221.04761.63274.75594.659512.2753
Reprojection accuracy as boards increase in car-mounted camera layout
All three solvers stay near the pixel noise floor as boards increase.
Camera pose errors as boards increase in car-mounted camera layout
Mean camera pose error drops quickly when the board count increases from 8 to 24, then mostly plateaus.
Runtime as boards increase in car-mounted camera layout
Runtime in the serial Python reference implementation.
Consensus communication as boards increase in car-mounted camera layout
Point-copy ADMM communicates one 3D copy per observation; pose-copy ADMM communicates one 6-DoF pose per visible camera-board pair.

The behavior is consistent with the formulation:

  1. Centralized BA remains the reference method and gives the lowest reprojection RMSE in every board-count case.
  2. Point-level ADMM tracks centralized BA closely, with reprojection RMSE within about $0.005$ px of centralized BA in this sweep.
  3. Pose-copy ADMM also tracks centralized BA closely, with reprojection RMSE within about $0.009$ px of centralized BA. Its runtime is comparable to point-level ADMM in this serial Python implementation.
  4. As the number of boards grows, camera error improves strongly at first. In this run, centralized BA goes from $0.1033^\circ$ and $7.0$ mm at 8 boards to $0.0412^\circ$ and $2.5$ mm at 32 boards. Additional boards mainly add redundancy, so the error plateaus near the pixel-noise and world-measurement limits.
  5. Pose-copy ADMM has the clearest communication advantage: the point-copy consensus payload is about $11.7\times$ to $13.4\times$ larger across this sweep.

Board-Placement Refinement: Solver Comparison

The placement-guidance experiment starts from the solved 7-camera, 40-board vehicle layout. It keeps the board budget fixed, scores candidate replacements using the Schur-marginalized camera information matrix from centralized BA, and then evaluates all three solvers on the refined layout. The candidate geometry and selection procedure are described in the placement-refinement experiment in Section 4.5.

After re-simulating noisy image and surveyed-world measurements with the refined board set, camera-pose accuracy improves for all three solvers. Reprojection RMSE stays near the pixel noise floor, so the more useful metric here is camera-pose error.

MethodInitial RMSE (px)Refined RMSE (px)Initial Camera Rot. (deg)Refined Camera Rot. (deg)Rot. ReductionInitial Camera Trans. (mm)Refined Camera Trans. (mm)Trans. Reduction
Centralized BA1.03911.03910.04970.020558.9%3.441.8147.5%
Point-level ADMM1.04221.04570.04960.022854.0%3.441.9942.3%
Pose-copy ADMM1.04761.04860.06410.023263.8%4.272.0153.1%
Accuracy comparison between initial and refined 40-board car layouts
Camera-pose accuracy before and after board-placement refinement.

E.7 When ADMM Is Still Appropriate

ADMM becomes reasonable when at least one of the following is a real requirement:

  1. Images or extracted observations must remain on separate camera processors.
  2. The computation is physically distributed and only compact consensus state may be exchanged.
  3. Independent camera workers must continue operating despite limited central compute.
  4. The calibration graph is too large for the available centralized memory.
  5. Organizational or privacy boundaries prevent pooling the observations.

Point-level ADMM is more tolerant of camera-board incidences with only a few observed markers, but it communicates many three-dimensional point copies. Pose-copy ADMM communicates much less state when every visible camera-board pair has enough well-distributed markers to constrain a local six-degree-of-freedom pose.

Even in a distributed design, factor graphs remain useful: each ADMM worker can solve its local nonlinear least-squares subproblem with a factor-graph optimizer. In that architecture, ADMM is the coordination layer, not a replacement for bundle adjustment inside each worker.

E.8 Recommendation

Use sparse factor-graph bundle adjustment by default for production EOL calibration. Move to ADMM only after identifying a concrete distribution or communication constraint that the centralized solver cannot satisfy.

The selection rule is therefore simple:

$$ \text{centralized data}\;\Longrightarrow\;\text{sparse factor-graph bundle adjustment}, $$$$ \text{mandatory distributed ownership}\;\Longrightarrow\;\text{ADMM with factor-graph local solves}. $$