to epipole
to epipole
a
g
x
y
f
Figure 5: Finding a distance threshold d. A usable value
is computed as the horizontal distance of the epipole to the
image. The epipole in turn lies at the intersection of the
epipolar lines g and h.
pute |e
0
| as an appropriate value for d.
In our simplified consideration, we look at the
epipolar lines f and g, the latter intersecting the lower
right corner. The epipole may be assumed to lie
near infinity whenever these epipolar lines run par-
allel “enough”. g also intersects the left image border
in a point denoted by a. The distance of point a to the
lower left image corner can be used to compute the
value of e
0
.
Choosing a distance of
1
2
pixel from a to the lower
left corner, we get a = (0,h −
1
2
, 1)
T
. Because the
left image border is (1, 0, 0)
T
and g = (e×(w, h, 1)
T
),
a can also be computed as a = (1, 0, 0)
T
× (e ×
(w, h, 1)
T
). This yields e
0
= w− 2wh.
For an image with w = h = 1000, the epipole has
an x-coordinate of -1 999 000. For such an image
a distance threshold of more than 2 000 000 would
therefore be sufficient.
Once d is computed (or chosen), let ε = |
1
d
|. Then,
a usable rule to decide when to switch to sampling
with parallel lines looks like:
epipole
is at
infinity
⇔
(|e
2
| < ε)
OR
(|e
0
| > 0
AND
(|
e
2
e
0
| < ε))
OR
(|e
1
| > 0
AND
(|
e
2
e
1
| < ε))
(9)
It is advantageous to first compute the point pairs
on the image borders where in one of the images a
corner is met during rectification. Between two con-
secutive pairs, the whole process is merely a simple
loop of repeatedly determining the optimum step size
and sampling the images.
4 RESULTS
We examine our method proposed in section 3 with
two stereo pair examples shown in Figures 6 and 7
1
.
1
They show the freely available VRML model ”Al”
from different camera positions.
For both examples the rectified images are shown be-
low the original images. It can easily be recognized
that corresponding features now lie on the same line
which is, after all, what rectification is all about.
The initial point correspondence needed to orient
the epipolar geometry was not obtained through fea-
ture matching, but by intersecting the known view-
ing pyramids of the cameras and choosing the closest
point in a decent distance to both camera centers.
The first example covers the case of one epipole
outside the image at a finite position and the second
epipole lying at infinity (Figure 6). In the second ex-
ample we examine the case of the first epipole lying
inside the image and the second one at infinity (Fig-
ure 7). To show the effect of rotated cameras, which is
likely to occur in an autonomous system, the second
camera of the latter example was rotated 45 degrees.
The figures are arranged to have the same pixel size
in all for sub-images.
Owing to the calculation of the optimum step size
during sampling, a stretching effect is noticeable. For
example, in Figure 6, sub-image a) is sampled along
the left image border in steps less than one pixel to
ensure the distance |c
′
a
′
| of Figure 4 being one pixel.
To match this step size, the right figure was in turn
sampled in steps less than one pixel, thus stretched.
Figure 7 shows the same stretching effect for sim-
ilar reasons. Additionally, the rectified sub-image d)
takes a diamond form. This happens because the sec-
ond camera was rotated 45 degrees along the camera
direction. So, the sampling occurred along a diago-
nal line. The rectified sub-image c) of Figure 7 shows
what happens if an epipole lies inside an image. The
half-lines are sampled in such a way that their begin-
ning, which is the epipole, always is placed on the left
side of the rectified image.
Summarized, rectified images such as those
shown in figures 6 and 7 (parts c) and d)) provide
the possibility of a fast calculation of correspondences
between their source images (such as those shown in
parts a) and b)). The former method of polar recti-
fication would fail to produce these rectified images
in both examples as one epipole of the source images
is positioned at infinity. Using an image homography
would succeed in the first example but fail in the sec-
ond one, because parts of the rectified image would be
mapped to infinity, as one of the epipoles lies inside
the image.
5 CONCLUSION
An extension of the polar rectification process was
presented, covering the special cases where the
ICINCO 2007 - International Conference on Informatics in Control, Automation and Robotics
278