ArticleslgStudy

computer science

Computer stereo vision

Computer stereo vision is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Computer stereo vision rather than just read about it. In short: Computer stereo vision is the extraction of three-dimensional information from digital images, such as those obtained by a CCD camera. By comparing information about a scene from two vantage points, 3D information can be extracted by examining the relative positions of objects in the two panels.

Computer stereo vision — main illustration
Computer stereo vision — illustration

Key takeaways

  • Computer stereo vision belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Computer stereo vision to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computer stereo vision from memory before moving on to harder problems.

Reference excerpt

Computer stereo vision is the extraction of three-dimensional information from digital images, such as those obtained by a CCD camera. By comparing information about a scene from two vantage points, 3D information can be extracted by examining the relative positions of objects in the two panels. This is similar to the biological process of stereopsis.

Outline In traditional stereoscopic vision, two cameras, displaced horizontally from one another, are used to obtain two differing views on a scene, in a manner similar to human binocular vision. By comparing these two images, the relative depth information can be obtained in the form of a disparity map, which encodes the difference in horizontal coordinates of corresponding image points. The values in this disparity map are inversely proportional to the scene depth at the corresponding pixel location. For a human to compare the two images, they must be superimposed in a stereoscopic device, with the image from the right camera being shown to the observer's right eye and from the left one to the left eye. In a computer vision system, several pre-processing steps are required.

The image must first be undistorted, such that barrel distortion and tangential distortion are removed. This ensures that the observed image matches the projection of an ideal pinhole camera. The image must be projected back to a common plane to allow comparison of the image pairs, known as image rectification. An information measure which compares the two images is minimized. This gives the best estimate of the position of features in the two images, and creates a disparity map. Optionally, the received disparity map is projected into a 3d point cloud. By utilising the cameras' projective parameters, the point cloud can be computed such that it provides measurements at a known scale.

Active stereo vision Active stereo vision is a form of stereo vision which actively employs a light such as a laser or a structured light to simplify the stereo matching problem. The opposed term is passive stereo vision.

Conventional structured-light vision (SLV) employs a structured light or laser, and finds projector-camera correspondences. Conventional active stereo vision (ASV) employs a structured light or laser, however, the stereo matching is performed only for camera-camera correspondences, in the same way as the passive stereo vision. Structured-light stereo (SLS) is a hybrid technique, which utilizes both camera-camera and projector-camera correspondences.

Applications 3D stereo displays find many applications in entertainment, information transfer and automated systems. Stereo vision is highly important in fields such as robotics to extract information about the relative position of 3D objects in the vicinity of autonomous systems. Other applications for robotics include object recognition, where depth information allows for the system to separate occluding image components, such as one chair in front of another, which the robot may otherwise not be able to distinguish as a separate object by any other criteria. Scientific applications for digital stereo vision include the extraction of information from aerial surveys, for calculation of contour maps or even geometry extraction for 3D building mapping, photogrammetric satellite mapping, or calculation of 3D heliographical information such as obtained by the NASA STEREO project.

Detailed definition

A pixel records color at a position. The position is identified by position in the grid of pixels (x, y) and depth to the pixel z. Stereoscopic vision gives two images of the same scene, from different positions. In the adjacent diagram light from the point A is transmitted through the entry points of pinhole cameras at B and D, onto image screens at E and H. In the attached diagram the distance between the centers of the two camera lens is BD = BC + CD. The triangles are similar,

ACB and BFE ACD and DGH Therefore displacement d=EF+GH=BF(EFBF+GHBF)=BF(EFBF+GHDG)=BF(BC+CDAC)=BFBDAC=kz, where

k = BD BF z = AC is the distance from the camera plane to the object. So assuming the cameras are level, and image planes are flat on the same plane, the displacement in the y axis between the same pixel in the two images is,

d=kz Where k is the distance between the two cameras times the distance from the lens to the image. The depth component in the two images are z1 and z2, given by,

z2(x,y)=min⁡{v:v=z1(x,y−kz1(x,y))} z1(x,y)=min⁡{v:v=z2(x,y+kz2(x,y))} These formulas allow for the occlusion of voxels, seen in one image on the surface of the object, by closer voxels seen in the other image, on the surface of the object.

Image rectification Where the image planes are not co-planar, image rectification is required to adjust the images as if they were co-planar. This may be achieved by a linear transformation. The images may also need rectification to make each image equivalent to the image taken from a pinhole camera projecting to a flat plane.

Smoothness Smoothness is a measure of the similarity of colors. Given the assumption that a distinct object has a small number of colors, similarly-colored pixels are more likely to belong to a single object than to multiple objects. The method described above for evaluating smoothness is based on information theory, and an assumption that the influence of the color of a voxel influences the color of nearby voxels according to the normal distribution on the distance between points. The model is based on approximate assumptions about the world. Another method based on prior assumptions of smoothness is auto-correlation. Smoothness is a property of the world rather than an intrinsic property of an image. An image comprising random dots would have no smoothness, and inferences about neighboring points would be useless. In principle, smoothness, as with other properties of the world, should be learned. This appears to be what the human vision system does.

Information measure

Least squares information measure The normal distribution is

P(x,μ,σ)=1σ2πe−(x−μ)22σ2 Probability is related to information content described by message length L,

P(x)=2−L(x) L(x)=−log2P(x) so,

L(x,μ,σ)=log2(σ2π)+(x−μ)22σ2log2e For the purposes of comparing stereoscopic images, only the relative message length matters. Based on this, the information measure I, called the Sum of Squares of Differences (SSD) is,

I(x,μ,σ)=(x−μ)2σ2 where,

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Computer stereo vision

Start with the simplest possible case. Write down what Computer stereo vision claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Computer stereo vision before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Computer stereo vision ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Computer stereo vision

In research
Computer stereo vision appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Computer stereo vision in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Computer stereo vision is common in secondary-school and first-year university syllabi. It links to neighbouring topics Applications of computer vision, Geometry in computer vision, Stereophotogrammetry, so understanding it makes those chapters shorter.
In everyday life
Look for Computer stereo vision outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Computer stereo vision” →

How to study Computer stereo vision in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Computer stereo vision means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Computer stereo vision out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Computer stereo vision in simple terms?

Computer stereo vision is the extraction of three-dimensional information from digital images, such as those obtained by a CCD camera. By comparing information about a scene from two vantage points, 3D information can be extracted by examining the relative positions of objects in the two panels.

Why does Computer stereo vision matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Computer stereo vision?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Computer stereo vision.

Tags

  • Applications of computer vision
  • Geometry in computer vision
  • Stereophotogrammetry
  • Stereoscopy
  • Vision

Keep exploring