Presentation is loading. Please wait.

Presentation is loading. Please wait.

John Morris These slides were adapted from a set of lectures written by Mircea Nicolescu, University of Nevada at Reno Stereo Vision Iolanthe in the Bay.

Similar presentations


Presentation on theme: "John Morris These slides were adapted from a set of lectures written by Mircea Nicolescu, University of Nevada at Reno Stereo Vision Iolanthe in the Bay."— Presentation transcript:

1 John Morris These slides were adapted from a set of lectures written by Mircea Nicolescu, University of Nevada at Reno Stereo Vision Iolanthe in the Bay of Islands

2 2 Stereo Vision Goal −Recovery of 3D scene structure −Using two or more images, −Each acquired from a different viewpoint in space −Using multiple cameras or one moving camera −Term binocular vision is used when two cameras are employed −More than 2 cameras can be used  Acquisition of complete 3D models Stereophotogrammetry Using stereo vision systems to measure properties (dimensions here) of a scene

3 3 Stereo Vision - Terminology −Fixation point −Point of intersection of the optical axes of the two cameras −Baseline −Distance between the camera optical centres −Epipolar plane −Plane passing through the optical centres and a point in the scene −Epipolar line −Intersection of the epipolar plane with the image plane. −Conjugate pair or Corresponding points −A point in the scene visible to both cameras (binocularly visible) will be projected to a point in each image −Disparity −Distance between corresponding points when the two images are superimposed −Disparity map −Disparities of all points form the disparity map −Usual output from a stereo matching algorithm −Often displayed as an image

4 4 Stereo Vision Camera configuration Parallel optical axes Parallel image planes Note: Virtual Image planes (in front of optical centre)

5 5 Stereo Vision – Verging axes Camera configuration Verging optical axes

6 6 Triangulation Principle underlying stereo vision Any visible point in the scene must lie on the line that passes through −the optical centre (centre of projection) and −the projection of the point on the image plane We can backproject this line into the scene With two cameras, we have two such lines Intersection of these two lines is the (3D) location of the point

7 7 Stereo Vision Two problems −Correspondence problem −Reconstruction problem Correspondence problem −Finding conjugate pairs of corresponding or matched points in each image −These points are projections of the same scene point −Triangulation depends on these conjugate pairs

8 8 Stereo Vision Correspondence problem −Ambiguous correspondence between points in the two images may lead to several different consistent interpretations of the scene −Problem is fundamentally ill-posed If you can’t solve the correspondence problem, then all of these points could be scene points! Each image has 3 scene points, representing some features in the scene

9 9 Reconstruction −Having found the corresponding points, we can compute the disparity map −Disparity maps are commonly expressed in pixels ie number of pixels between corresponding points in two images −Disparity map can be converted to a 3D map of the scene if the geometry of the imaging system is known −Critical parameters: Baseline, camera focal length, pixel size

10 10 Reconstruction Determining depth −To recover the position of P from its projections, p l and p r : −In general, the two cameras are related by a rotation, R, and a translation, T : −Parallel camera optical axes  Z r = Z l = Z and X r = X l – T so we have: where d = x l – x r is the disparity - the difference in position between the corresponding points in the two images, commonly measured in pixels

11 11 Reconstruction Recovering depth where T is the baseline If d’ is measured in pixels, then d = x l – x r = d’p where p is the width of a pixel in the image plane, and we have Z = Tf Note the reciprocal relationship between disparity and depth! This is particularly relevant when considering the accuracy of stereo photogrammetry d’p

12 12 Stereo Vision Configuration parameters −Intrinsic parameters −Characterize the transformation from image plane coordinates to pixel coordinates in each camera −Parameters intrinsic to each camera −Extrinsic parameters ( R, T ) −Describe the relative position and orientation of the two cameras −Can be determined from the extrinsic parameters of each camera:

13 13 Correspondence Problem Why is the correspondence problem difficult? −Some points in each image will have no corresponding points in the other image −They are not binocularly visible or −They are only monocularly visible −Cameras have different fields of view − Occlusions may be present −A stereo system must be able to determine parts that should not be matched These two are equivalent!

14 14 The Correspondence Problem Methods for establishing correspondences −Two issues −How to select candidate matches? −How to determine the goodness of a match? −Two main classes of correspondence (matching) algorithm: −Correlation-based −Attempt to establish a correspondence by matching image intensities – usually over a window of pixels in each image  Dense disparity maps −Distance is found for all BV image points −Except occluded (MV) points −Feature-based −Attempt to establish a correspondence by matching a sparse sets of image features – usually edges −Disparity map is sparse −Number of points is related to the number of image features identified

15 15 Correlation-Based Methods Match image sub-windows in the two images using image correlation −oldest technique for finding correspondence between image pixels Scene points must have the same intensity in each image − Assumes a)All objects are perfect Lambertian scatterers ie the reflected intensity is not dependent on angle or objects scatter light uniformly in all directions Informally - matte surfaces only b)Fronto-planar surfaces −(Visible) surfaces of all objects are perpendicular to camera optical axes

16 16 Correlation-Based Methods

17 17 Correlation-Based Methods Usually, we normalize c(d) by dividing it by the standard deviation of both I l and I r (normalized cross-correlation, c(d)  [0,1] ) where and are the average pixel values in the left and right windows. An alternative similarity measure is the sum of squared differences (SSD): In fact, experiment shows that the simpler sum of absolute differences (SAD) is just as good c(d) =   | I l ( i+k, j+l ) – I r ( i+k-d, j+l ) |

18 18 Correlation-Based Methods Improvements −Instead of using the image intensity values, the accuracy of correlation is improved by using thresholded signed gradient magnitudes at each pixel. −Compute the gradient magnitude at each pixel in the two images without smoothing −Map the gradient magnitude values into three values: -1, 0, 1 (by thresholding the gradient magnitude) −More sensitive correlations are produced this way + several dozen more see Scharstein & Szeliski, 2001 for a review

19 19 Correlation-Based Methods Comments −Correlation-based methods depend on the image window in one image having a distinctive structure that occurs infrequently in the search region of the other image ie in one image, we can find unique features in each window that match only one window in the other −How to choose the size of the window, W ? −too small −may not capture enough image structure and −may be too noise sensitive  many false matches −too large −makes matching less sensitive to noise (desired) but −decreases precision (blurs disparity map) −An adaptive searching window has been proposed

20 20 Correlation-Based Methods

21 21 Correlation-Based Methods

22 22 Correlation-Based Methods Comments −How to choose the size and location of the search region, R(p l )? −if the distance of the fixating point from the cameras is much larger than the baseline, the location of R(p l ) can be chosen to be the same as the location of p l −the size (extent) of R(p l ) can be estimated from the maximum range of distances we expect to find in the scene −we will see that the search region can always be reduced to a line

23 23 Feature-Based Methods Main idea −Look for a feature in an image that matches a feature in the other. −Typical features used are: −edge points −line segments −corners (junctions)

24 24 Feature-Based Methods A set of features is used for matching −a line feature descriptor, for example, could contain: −length, l −orientation,  −coordinates of the midpoint, m −average intensity along the line, i Similarity measures are based on matching feature descriptors: where w 0,..., w 3 are weights (determining the weights that yield the best matches is a nontrivial task).

25 25 Feature-Based Methods

26 26 Correlation vs. feature-based approaches Correlation methods −Easier to implement −Provide a dense disparity map (useful for reconstructing surfaces) −Need textured images to work well (many false matches otherwise) −Don’t work well when viewpoints are very different, due to −change in illumination direction −violates Lambertian scattering assumption −foreshortening −perspective problem – surfaces are not fronto-planar Feature-based methods −Suitable when good features can be extracted from the scene −Faster than correlation-based methods −Provide sparse disparity maps −OK for applications like visual navigation −Relatively insensitive to illumination changes

27 27 Other correspondence algorithms Dynamic programming (Gimel’Farb) −Finds a ‘path’ through an image which provides the best (least-cost) match −Can allow for occlusions (Birchfield and Tomasi) −Generally provide better results than area-based correlation −Faster than correlation Graph Cut (Zabih et al) −Seems to provide best results −Very slow, not suitable for real-time applications Concurrent Stereo Matching −Examine all possible matches in parallel (Delmas, Gimel’Farb, Morris, work in progress ) −Uses a model of image noise instead of arbitrary weights in cost functions −Suitable for real-time parallel hardware implementation Some of these will be considered in detail later


Download ppt "John Morris These slides were adapted from a set of lectures written by Mircea Nicolescu, University of Nevada at Reno Stereo Vision Iolanthe in the Bay."

Similar presentations


Ads by Google