Computer stereo vision
Computer stereo vision is the extraction of 3D 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 Stereopsis. Stereoscopic images are often stored as MPO (multi picture object) files. Recently, researchers pushed to develop methods to reduce the storage needed for these files in order to maintain the high quality of the stereo image.  
- 1 Outline
- 2 Active stereo vision
- 3 Applications
- 4 Detailed definition
- 5 Methods of implementation
- 6 See also
- 7 References
- 8 External links
In traditional stereo 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
The 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)
Conventional active stereo vision (ASV)
The 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.
There is a hybrid technique, which utilizes both camera-camera and projector-camera correspondences.
3D stereo displays finds 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, or calculation of 3D heliographical information such as obtained by the NASA STEREO project.
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 a 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
- 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,
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 and , given by,
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.
Least squares information measure
The normal distribution is
Probability is related to information content described by message length L,
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,
Other measures of information content
Because of the cost in processing time of squaring numbers in SSD, many implementations use Sum of Absolute Difference (SAD) as the basis for computing the information measure. Other methods use normalized cross correlation (NCC).
Information measure for stereoscopic images
The least squares measure may be used to measure the information content of the stereoscopic images , given depths at each point . Firstly the information needed to express one image in terms of the other is derived. This is called .
A color difference function should be used to fairly measure the difference between colors. The color difference function is written cd in the following. The measure of the information needed to record the color matching between the two images is,
An assumption is made about the smoothness of the image. Assume that two pixels are more likely to be the same color, the closer the voxels they represent are. This measure is intended to favor colors that are similar being grouped at the same depth. For example, if an object in front occludes an area of sky behind, the measure of smoothness favors the blue pixels all being grouped together at the same depth.
The total measure of smoothness uses the distance between voxels as an estimate of the expected standard deviation of the color difference,
The total information content is then the sum,
The z component of each pixel must be chosen to give the minimum value for the information content. This will give the most likely depths at each pixel. The minimum total information measure is,
The depth functions for the left and right images are the pair,
Smoothness is a measure of how similar colors that are close together are. There is an assumption that objects are more likely to be colored with a small number of colors. So if we detect two pixels with the same color they most likely belong to the same object.
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. It is not inherently a property of an image. For example, an image constructed of random dots would have no smoothness, and inferences about neighboring points would be useless.
Theoretically smoothness, along with other properties of the world should be learnt. This appears to be what the human vision system does.
Methods of implementation
The minimization problem is NP-complete. This means a general solution to this problem will take a long time to reach. However methods exist for computers based on heuristics that approximate the result in a reasonable amount of time. Also methods exist based on neural networks. Efficient implementation of stereoscopic vision is an area of active research.
- 3D reconstruction from multiple images
- 3D scanner
- Computer vision
- Epipolar geometry
- Stereo camera
- Stereoscopic depth rendition
- Trifocal tensor - for trifocal stereoscopy (using three images instead of two).
- Ortis, A., Rundo, F., Di Giore, G., & Battiato, S. (2013, September). Adaptive compression of stereoscopic images In International Conference on Image Analysis and Processing (pp. 391-399). Springer, Berlin, Heidelberg.
- Ortis, Alessandro, and Sebastiano Battiato. "A new fast matching method for adaptive compression of stereoscopic images." Three-Dimensional Image Processing, Measurement (3DIPM), and Applications 2015. Vol. 9393. International Society for Optics and Photonics, 2015.
- Bradski, Gary; Kaehler, Adrian. Learning OpenCV: Computer Vision with the OpenCV Library. O'Reilly.
- C. Je, S. W. Lee, and R.-H. Park. High-Contrast Color-Stripe Pattern for Rapid Structured-Light Range Imaging. Computer Vision – ECCV 2004, LNCS 3021, pp. 95–107, Springer-Verlag Berlin Heidelberg, May 10, 2004.
- C. Je, S. W. Lee, and R.-H. Park. Colour-Stripe Permutation Pattern for Rapid Structured-Light Range Imaging. Optics Communications, Volume 285, Issue 9, pp. 2320-2331, May 1, 2012.
- W. Jang, C. Je, Y. Seo, and S. W. Lee. Structured-Light Stereo: Comparative Analysis and Integration of Structured-Light and Active Stereo for Measuring Dynamic Shape. Optics and Lasers in Engineering, Volume 51, Issue 11, pp. 1255-1264, November, 2013.
- Sumi, Yasushi, et al. "3D object recognition in cluttered environments by segment-based stereo vision." International Journal of Computer Vision 46.1 (2002): 5-23.
- Lazaros, Nalpantidis; Sirakoulis, Georgios Christou; Gasteratos1, Antonios (2008). "REVIEW OF STEREO VISION ALGORITHMS: FROM SOFTWARE TO HARDWARE". International Journal of Optomechatronics. 2 (4): 435–462. doi:10.1080/15599610802438680.
- WANG, JUNG-HUA; HSIAO, CHIH-PING (1999). "On disparity matching in stereo vision via a neural network framework". Proc. Natl. Sci. Counc. ROC(A). 23 (5): 665–678. CiteSeerX 10.1.1.105.9067.
- Tutorial on uncalibrated stereo vision
- Learn about stereo vision with MATLAB
- Stereo Vision and Rover Navigation Software for Planetary Exploration
- Calculator for choosing stereo baseline and focal length, and for computing expected depth measurement errors
- LIBELAS: Library for Efficient Large-scale Stereo Matching
- Viva3D Stereo Vision manual & depth tutorial