introduction to binocular stereo vision

40
Introduction to Introduction to binocular stereo vision binocular stereo vision

Upload: biswabandan-satpathy

Post on 26-Nov-2014

214 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Introduction to Binocular Stereo Vision

Introduction to Introduction to binocular stereo visionbinocular stereo vision

Page 2: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 2

What is binocular stereo vision?What is binocular stereo vision?

• A way of getting depth (3-D) information about A way of getting depth (3-D) information about a scene from two 2-D views (images) of the a scene from two 2-D views (images) of the scenescene

Page 3: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 3

What is binocular stereo vision?What is binocular stereo vision?

• A way of getting depth (3-D) information about A way of getting depth (3-D) information about a scene from two 2-D views (images) of the a scene from two 2-D views (images) of the scenescene

• Used by humans and animalsUsed by humans and animals

Page 4: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 4

What is binocular stereo vision?What is binocular stereo vision?

• A way of getting depth (3-D) information about A way of getting depth (3-D) information about a scene from two 2-D views (images) of the a scene from two 2-D views (images) of the scenescene

• Used by humans and animalsUsed by humans and animals• Computational stereo visionComputational stereo vision

– Programming machines to do stereo visionProgramming machines to do stereo vision– Studied extensively in the past 25 yearsStudied extensively in the past 25 years– Difficult; still being researchedDifficult; still being researched

Page 5: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 5

Purpose of this lecture:Purpose of this lecture:

• An introduction to:An introduction to:– Basic principle of stereo visionBasic principle of stereo vision– Computational stereo analysisComputational stereo analysis

• How does it work?How does it work?• What is required?What is required?• Where are the difficulties?Where are the difficulties?

Page 6: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 6

Purpose of this lecture:Purpose of this lecture:

• An introduction to:An introduction to:– Basic principle of stereo visionBasic principle of stereo vision– Computational stereo analysisComputational stereo analysis

• How does it work?How does it work?• What is required?What is required?• Where are the difficulties?Where are the difficulties?

Page 7: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 7

Fundamentals of stereo visionFundamentals of stereo vision

• A camera model:A camera model:– Models how 3-D scene points are transformed into 2-Models how 3-D scene points are transformed into 2-

D image pointsD image points– The pinhole camera: a simple linear model for The pinhole camera: a simple linear model for

perspective projectionperspective projection

Page 8: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 8

Fundamentals of stereo visionFundamentals of stereo vision

• The goal of stereo analysis:The goal of stereo analysis:– The inverse process: From 2-D image coordinates to The inverse process: From 2-D image coordinates to

3-D scene coordinates3-D scene coordinates– Requires images from at least two viewsRequires images from at least two views

Page 9: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 9

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 10: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 10

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 11: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 11

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 12: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 12

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 13: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 13

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 14: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 14

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 15: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 15

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 16: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 16

Fundamentals of stereo visionFundamentals of stereo vision

• 3-D reconstruction3-D reconstruction

Page 17: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 17

PrerequisitesPrerequisites

• Camera model parameters must be known:Camera model parameters must be known:

– External parameters: External parameters: • Positions, orientationsPositions, orientations

– Internal parameters:Internal parameters:• Focal length, image center, distortion, etc..Focal length, image center, distortion, etc..

Page 18: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 18

PrerequisitesPrerequisites

• Camera calibrationCamera calibration

Page 19: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 19

Two subproblemsTwo subproblems

• Matching Matching – Finding corresponding elements in the two imagesFinding corresponding elements in the two images

• ReconstructionReconstruction– Establishing 3-D coordinates from the 2-D image Establishing 3-D coordinates from the 2-D image

correspondences found during matchingcorrespondences found during matching

Page 20: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 20

Two subproblemsTwo subproblems

• Matching Matching (hardest)(hardest)– Finding corresponding elements in the two imagesFinding corresponding elements in the two images

• ReconstructionReconstruction– Establishing 3-D coordinates from the 2-D image Establishing 3-D coordinates from the 2-D image

correspondences found during matchingcorrespondences found during matching

Page 21: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 21

• Which image entities should be matched?Which image entities should be matched?– Two main approachesTwo main approaches

• Pixel/area-based (lower-level)Pixel/area-based (lower-level)• Feature-based (higher-level)Feature-based (higher-level)

The matching problemThe matching problem

Page 22: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 22

Matching challengesMatching challenges

• Scene elements do not always look the same Scene elements do not always look the same in the two imagesin the two images– Camera-related problemsCamera-related problems

• Image noise, differing gain, contrast, etc..Image noise, differing gain, contrast, etc..

– Viewpoint-related problems:Viewpoint-related problems:• Perspective distortionsPerspective distortions• OcclusionsOcclusions• Specular reflectionsSpecular reflections

Page 23: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 23

Choice of camera setupChoice of camera setup

• BaselineBaseline– distance between cameras (focal points)distance between cameras (focal points)

• Trade-offTrade-off– Small baseline: Matching easierSmall baseline: Matching easier– Large baseline: Depth precision betterLarge baseline: Depth precision better

Page 24: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 24

Matching cluesMatching clues

• Correspondance search is a 1-D problemCorrespondance search is a 1-D problem– Matching point must lie on a lineMatching point must lie on a line

Page 25: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 25

Matching cluesMatching clues

• Epipolar geometryEpipolar geometry

Page 26: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 26

Matching cluesMatching clues

• Epipolar geometryEpipolar geometry

Page 27: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 27

RectificationRectification

• Simplifies the correspondance searchSimplifies the correspondance search– Makes all epipolar lines parallel and coincidentMakes all epipolar lines parallel and coincident– Corresponds to parallel camera configurationCorresponds to parallel camera configuration

Page 28: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 28

Goal: disparity mapGoal: disparity map

• Disparity: Disparity: – The horizontal displacement between corresponding The horizontal displacement between corresponding

pointspoints– Closely related to scene depthClosely related to scene depth

Page 29: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 29

More matching heuristicsMore matching heuristics

• Always valid:Always valid:– (Epipolar line)(Epipolar line)– UniquenessUniqueness– Minimum/maximum disparityMinimum/maximum disparity

• Sometimes valid:Sometimes valid:– OrderingOrdering– Local continuity (smoothness)Local continuity (smoothness)

Page 30: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 30

Area-based matchingArea-based matching

• Finding pixel-to-pixel correspondencesFinding pixel-to-pixel correspondences– For each pixel in the left image, search for the most For each pixel in the left image, search for the most

similar pixel in the right imagesimilar pixel in the right image

Page 31: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 31

Area-based matchingArea-based matching

• Finding pixel-to-pixel correspondencesFinding pixel-to-pixel correspondences– For each pixel in the left image, search for the most For each pixel in the left image, search for the most

similar pixel in the right imagesimilar pixel in the right image– Using neighbourhood windowsUsing neighbourhood windows

Page 32: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 32

Area-based matchingArea-based matching

• Similarity measures for two windowsSimilarity measures for two windows– SAD (sum of absolute differences)SAD (sum of absolute differences)– SSD (sum of squared differences)SSD (sum of squared differences)– CC (cross-correlation)CC (cross-correlation)– ……

Page 33: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 33

Feature-based matchingFeature-based matching

• Matching features:Matching features:– Edge pointsEdge points– lineslines– cornerscorners– ……

• Sparse reconstruction setsSparse reconstruction sets• Best if scene type is known Best if scene type is known a prioria priori

Page 34: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 34

Area-based matchingArea-based matching

• Choice of window sizeChoice of window size– Factors to considers:Factors to considers:

• AmbiguityAmbiguity• Noise sensitivityNoise sensitivity• Sensitivity towards viewpoint-related distortionsSensitivity towards viewpoint-related distortions• Expected object sizesExpected object sizes• Frequency of depth jumpsFrequency of depth jumps

Page 35: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 35

Area-based matchingArea-based matching

• Variable window positionVariable window position– Better matching at depth jumps (disparity edges)Better matching at depth jumps (disparity edges)

Page 36: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 36

Three or more viewpointsThree or more viewpoints

• More matching informationMore matching information– Additional epipolar constraintsAdditional epipolar constraints– More confident matchesMore confident matches

Page 37: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 37

SummarySummary

• Stereo vision: Stereo vision: – A method for 3-D analysis of a scene using images A method for 3-D analysis of a scene using images

from two or more viewpointsfrom two or more viewpoints

• Two subproblems:Two subproblems:– MatchingMatching– ReconstructionReconstruction

• Most difficult part: MatchingMost difficult part: Matching– Two main approaches:Two main approaches:

• Area based: Dense reconstructionArea based: Dense reconstruction• Feature based: Sparse reconstructionFeature based: Sparse reconstruction

Page 38: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 38

Modelling stereo quantification Modelling stereo quantification errorerror

Page 39: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 39

Stereo error quantificationStereo error quantification

The variance:

Numerical solution:

Page 40: Introduction to Binocular Stereo Vision

Introduction to binocular stereo vision 40

Error analytical vs. Numerical Error analytical vs. Numerical solutionsolution