Download SRI Small Vision System

Transcript
44
Small Vision System User Manual
3.8
Ideal Stereo Model
For a good understanding of stereo processing, it is necessary to understand more precisely the steps
involved. This subsection gives some more detail of the fundamental geometry of stereo, and in particular
the relationship of the images to the 3D world via projection and reprojection. A more in-depth discussion
of the geometry, and the rectification process, can be found in the Calibration Addendum.
The overall stereo process is described as two stages:
Input images – rectify –> Ideal images – stereo correlation –> Disparity image
The rectification step is essential. It converts the input images into an idealized stereo pair, with a
very particular geometry. This geometry makes it easier for the stereo correlation algorithms to find the
correct match (disparity) for each pixel. It also enables SVS to reproject a pixel to its three-dimensional
coordinates, given the disparity.
Calibration produces information necessary for the rectification step, and also gives the parameters of
the resultant ideal stereo pair. When a calibration is present in the SVS system, input images are usually
converted to ideal images before they are displayed, and when they are saved to files. In general, the user
should interact only with the ideal images, since their relationship to the disparity results is simple. All of
the discussion of this section has dealt with idealized images.
Figure 3-10 shows the geometry of the ideal images. The main 3D coordinate system is centered on
the focal point (the camera center) of the left camera. The focal point is somewhere inside the left camera
lens. Positive Z directions are along the camera principal ray. Positive X is to the right looking along the
ray, and positive Y is down. This gives a right-handed coordinate system.
Both images are embedded in a common plane, perpendicular to the principal rays. Also, the image
horizontal axes line up, so that the first line of the left image is the same as the first line of the right image.
The principal ray of each camera pierces the image at the coordinates (Cx,Cy). These coordinates are
typically not the center of the image, although they are close. They are the normally the same coordinates
S
Z
u
v
Cx,Cy
s
u'
v'
s'
Cx,Cy
f
X
Y
f
TX
Figure 3-10 Basic stereo geometry. This figure shows the relationship of two ideal stereo cameras.
The global coordinate system is centered on the focal point (camera center) of the left camera. It
is a right-handed system, with positive Z in front of the camera, and positive X to the right. The
camera principal ray pierces the image plane at Cx,Cy, which is the same in both cameras. The
focal length is also the same. The images are lined up, with v=v’ for the coordinates of any scene
point projected into the images. The distance between the focal points is aligned with the X axis.