4.3 Reconstruction Uncertainty
We then study the propagation of 2D–primitives’ un-
certainty during stereo–reconstruction, and estimate
the resulting 3D–primitives’ uncertainty.
The relation between points in space and their pro-
jection in the image is defined by the camera’s projec-
tion matrix
˜
P = (P p) (see (Faugeras, 1993; Hartley
and Zisserman, 2000)). In the following, and for the
sake of simplicity, we assume that the cameras’ pa-
rameters are known, and their projection matrix exact
Λ
˜
P
= 0
12×12
. In the general case, the projection ma-
trix will be estimated empirically through a process
called calibration that provides its uncertainty as a
by–product (Csurka et al., 1997). The precise deriva-
tion of the projection matrix uncertainty depends on
the format of the uncertainty provided by the calibra-
tion software. In the case of the Matlab calibration
toolbox (see (Bouguet, 2007)), the reader can find the
derivation of the projection matrix uncertainty in the
technical report (Pugeault et al., 2007).
Classical stereo–reconstruction tries to intersect
two optical rays containing the possible origins of (or
back–projected by) two corresponding points in two
images. Because of imprecision, it is unlikely that
the two lines intersect, and therefore the closest point
to both rays is usually chosen. This approach is in-
adapted in the case of local line descriptors because
the aperture problem makes reliable point matching
impossible. On the other hand, (Wolff, 1989) dis-
cussed that accurate line matching could be achieved
by intersecting the two planes back–projected from
the lines in each image. Moreover, because prim-
itives are local line descriptors we need a location
along this line. This is obtained by intersecting the
line containing the left 2D–primitive’s position pos-
sible origins with the plane containing the right 2D–
primitive’s possible origins. The computation of the
3D–primitives’ uncertainty is using the uncertainty
propagation formula in Eq. 2, as in (Clarke, 1998;
Heuel and F
¨
orstner, 2001). The computation of the
Jacobians will not be detailed here because of space
constraints.
4.4 Evaluation
We evaluate the quality of the uncertainties predicted
by the above formulae, using a Monte Carlo simu-
lation in a simple scenario. The focal length is set to
f = 10
3
and the baseline to b = 100, so that the optical
centres of the cameras are located at C
1
= (0, 0, 0)
>
and C
2
= (b, 0, 0)
>
.
3
3
These values were chosen for simplicity, but are never-
theless plausible: they are similar to the calibration param-
Consider a 3D–primitive at a location
ˆ
M =
(0, 0, 100)
>
and with an orientation
ˆ
T , projected on
both image planes as
ˆ
π
l
and
ˆ
π
r
. We apply a zero–
mean Gaussian perturbation on position and orienta-
tion of those 2D–primitives, with a standard devia-
tion of σ = 0.25 for position, and σ = 0.03 for ori-
entation. This is according to the measured mean
square error we assumed for our covariance predic-
tion. Because we are only interested in the reconstruc-
tion uncertainty, we assume that
ˆ
π
l
and
ˆ
π
r
are accu-
rate, and that all uncertainty comes from the added
perturbation, and therefore the covariance of the pro-
jected 2D–primitive’s position is Λ
m
= 0.0625I
2×2
;
they have a vertical orientation (i.e., θ = 0) with a
variance of Λ
θ
= 9 · 10
−4
. Using a Monte Carlo sim-
ulation of 10
5
particles, we measured a relative error
between predicted and measured covariance matrices
ξ =
kΛ
0
−Λk
kΛ
0
k
of ∼ 3% for position, and ∼ 4% for ori-
entation.
We then investigated how the 3D–primitive’s po-
sition and orientation impact the uncertainty thereof.
We compared the trace tr (Λ) of the reconstructed
position’s covariance matrix (sum of the Eigen–
values), at different locations in space (Figs. 3(a),
3(b), and 3(c) for different values of the x (horizon-
tal), y (vertical), and z (depth) coordinates) and for
different pairs of 2D–orientations (Fig. 4(a)).
These figures show that the reconstructed posi-
tion’s covariance is affected by the distance from the
primitive to the cameras’ optical centres and by the
right 2D–primitive’s orientation. The trace tr (Λ
m
)
in Fig. 4(a) is mostly affected by θ
2
. This is due to
the line reconstruction formula used in this work —
see section 4.3. In this formulation, the right 2D–
primitive’s orientation is used to resolve the ambigu-
ity that stems from the aperture problem (we compute
the intersection between a back–projected left ray and
a back–projected right plane). This becomes impos-
sible when the primitive’s orientation is the same that
the epipolar line’s (in this case if θ
2
=
π
2
), and there-
fore the reconstructed 3D–primitive’s position uncer-
tainty increases to infinity for orientations close to
π
2
.
We then evaluated the 2D–primitives’ orientation
impact on the reconstructed 3D–primitive’s orienta-
tion uncertainty. Fig. 4 plots the trace of the recon-
structed orientation’s covariance matrix for a point
located at m = (0, 0, 100)
>
, reconstructed from dif-
ferent 2D–primitives’ orientations. In this figure we
see that the reconstructed orientation uncertainty in-
creases when either of the 2D–primitive’s orientation
becomes close to
π
2
. When both orientations become
close to θ
1
= θ
2
=
π
2
two primitives back–project the
eters of an actual stereo camera system.
RELATIONS BETWEEN RECONSTRUCTED 3D ENTITIES
189