SlideShare a Scribd company logo
Stereo
Many slides adapted from Steve Seitz
Binocular stereo
• Given a calibrated binocular stereo pair, fuse it to
produce a depth image
image 1 image 2
Dense depth map
Binocular stereo
• Given a calibrated binocular stereo pair, fuse it to
produce a depth image
• Humans can do it
Stereograms: Invented by Sir Charles Wheatstone, 1838
Binocular stereo
• Given a calibrated binocular stereo pair, fuse it to
produce a depth image
• Humans can do it
Autostereograms: www.magiceye.com
Binocular stereo
• Given a calibrated binocular stereo pair, fuse it to
produce a depth image
• Humans can do it
Autostereograms: www.magiceye.com
Basic stereo matching algorithm
• For each pixel in the first image
• Find corresponding epipolar line in the right image
• Examine all pixels on the epipolar line and pick the best match
• Triangulate the matches to get depth information
• Simplest case: epipolar lines are scanlines
• When does this happen?
Simplest Case: Parallel images
• Image planes of cameras
are parallel to each other
and to the baseline
• Camera centers are at same
height
• Focal lengths are the same
Simplest Case: Parallel images
• Image planes of cameras
are parallel to each other
and to the baseline
• Camera centers are at same
height
• Focal lengths are the same
• Then, epipolar lines fall
along the horizontal scan
lines of the images
Depth from disparity
f
x x’
z
O Baseline
B
O’
X
f
disparity  x  x

B  f
z
Disparity is inversely proportional to depth!
Stereo image rectification
Stereo image rectification
• reproject image planes onto a common
plane parallel to the line between optical centers
• pixel motion is horizontal after this transformation
• two homographies (3x3 transform), one for each
input image reprojection
 C. Loop and Z. Zhang. Computing Rectifying Homographies for
Stereo Vision. IEEE Conf. Computer Vision and Pattern Recognition,
1999.
Rectification example
Basic stereo matching algorithm
• If necessary, rectify the two stereo images to transform
epipolar lines into scanlines
• For each pixel x in the first image
• Find corresponding epipolar scanline in the right image
• Examine all pixels on the scanline and pick the best match x’
• Compute disparity x-x’ and set depth(x) = 1/(x-x’)
Correspondence problem
Multiple matching hypotheses satisfy the epipolar
constraint, but which one is correct?
Correspondence problem
• Let’s make some assumptions to simplify the
matching problem
• The baseline is relatively small (compared to the depth of
scene points)
• Then most scene points are visible in both views
• Also, matching regions are similar in appearance
Correspondence problem
• Let’s make some assumptions to simplify the
matching problem
• The baseline is relatively small (compared to the depth of
scene points)
• Then most scene points are visible in both views
• Also, matching regions are similar in appearance
Matching cost
disparity
Left Right
scanline
Correspondence search with similarity constraint
• Slide a window along the right scanline and compare
contents of that window with the reference window in
the left image
• Matching cost: SSD or normalized correlation
Left Right
scanline
Correspondence search with similarity constraint
SSD
Left Right
scanline
Correspondence search with similarity constraint
Norm. corr
Effect of window size
• Smaller window
+ More detail
– More noise
• Larger window
+ Smoother disparity maps
– Less detail
W = 3 W = 20
The similarity constraint
• Corresponding regions in two images should be similar in
appearance
• …and non-corresponding regions should be different
• When will the similarity constraint fail?
Limitations of similarity constraint
Textureless surfaces Occlusions, repetition
Non-Lambertian surfaces, specularities
Results with window search
Window-based matching Ground truth
Data
Better methods exist...
Graph cuts Ground truth
Y.Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy
Minimization via Graph Cuts, PAMI 2001
For the latest and greatest: http://www.middlebury.edu/stereo/
How can we improve window-based matching?
• The similarity constraint is local (each reference
window is matched independently)
• Need to enforce non-local correspondence
constraints
Non-local constraints
• Uniqueness
• For any point in one image, there should be at most one
matching point in the other image
Non-local constraints
• Uniqueness
• For any point in one image, there should be at most one
matching point in the other image
• Ordering
• Corresponding points should be in the same order in both views
Non-local constraints
• Uniqueness
• For any point in one image, there should be at most one
matching point in the other image
• Ordering
• Corresponding points should be in the same order in both views
Ordering constraint doesn’t hold
Non-local constraints
• Uniqueness
• For any point in one image, there should be at most one
matching point in the other image
• Ordering
• Corresponding points should be in the same order in both views
• Smoothness
• We expect disparity values to change slowly (for the most part)
Scanline stereo
• Try to coherently match pixels on the entire scanline
• Different scanlines are still optimized independently
Left image Right image
“Shortest paths” for scan-line stereo
Left image
Right image
Ohta & Kanade ’85, Cox et al. ‘96
Sleft
right
S
q
Left
occlusio
n
t
Right
occlusion
s p
Can be implemented with dynamic programming
Coccl
Coccl
I
I
Ccorr
Slide credit: Y
. Boykov
Coherent stereo on 2D grid
• Scanline stereo generates streaking artifacts
• Can’t use dynamic programming to find spatially
coherent disparities/ correspondences on a 2D grid
Stereo matching as energy minimization
I1
I2 D
• Energy functions of this form can be minimized using
graph cuts
Y.Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization
via Graph Cuts, PAMI 2001
W1(i) W2(i+D(i)) D(i)
E   Edata(I1, I2 , D)  Esmooth (D)
neighbors i, j
Esmooth  D(i)  D( j)
2
1 2
data 
i
W(i) W (i D(i))
E 
Stereo matching as energy minimization
I1
I2 D
W1(i) W2(i+D(i)) D(i)
• Probabilistic interpretation: we want to find a Maximum A
Posteriori (MAP) estimate of disparity image D:
P(D | I1, I2 )  P(I1, I2 | D)P(D)
 log P(D | I1, I2 )  log P(I1, I2 | D)  log P(D)
E   Edata (I1, I2, D)  Esmooth(D)
The role of the baseline
Small Baseline Large Baseline
Small baseline: large depth error
Large baseline: difficult search problem
Source: S. Seitz
Problem for wide baselines: Foreshortening
• Matching with fixed-size windows will fail!
• Possible solution: adaptively vary window size
• Another solution: model-based stereo
Model-based stereo
Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering
Architecture from Photographs. SIGGRAPH 1996.
Model-based stereo
key image offset image
Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering
Architecture from Photographs. SIGGRAPH 1996.
Model-based stereo
key image warped offset image
displacement map
Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering
Architecture from Photographs. SIGGRAPH 1996.
Laser scanning
Optical triangulation
• Project a single stripe of laser light
• Scan it across the surface of the object
• This is a very precise version of structured light scanning
CCD
Laser
Object
Direction of travel
Laser sheet
CCD image plane
Cylindrical lens
Digital Michelangelo Project
http://graphics.stanford.edu/projects/mich/
Source: S. Seitz
Laser scanned models
The Digital Michelangelo Project, Levoy et al.
Source: S. Seitz
Laser scanned models
The Digital Michelangelo Project, Levoy et al.
Source: S. Seitz
Laser scanned models
The Digital Michelangelo Project, Levoy et al.
Source: S. Seitz
Laser scanned models
The Digital Michelangelo Project, Levoy et al.
Source: S. Seitz
1.0 mm resolution (56 million triangles)
Aligning range images
• A single range scan is not sufficient to describe a
complex surface
• Need techniques to register multiple range images
B. Curless and M. Levoy, A Volumetric Method for Building Complex Models from
Range Images, SIGGRAPH 1996
Aligning range images
• A single range scan is not sufficient to describe a
complex surface
• Need techniques to register multiple range images
… which brings us to multi-view stereo

More Related Content

What's hot

Lec07 corner blob
Lec07 corner blobLec07 corner blob
Lec07 corner blobBaliThorat1
 
Lighting and shading
Lighting and shadingLighting and shading
Lighting and shadingeshveeen
 
Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface Bhuvnesh Pratap
 
Graphics Lecture 7
Graphics Lecture 7Graphics Lecture 7
Graphics Lecture 7Saiful Islam
 
smallpt: Global Illumination in 99 lines of C++
smallpt:  Global Illumination in 99 lines of C++smallpt:  Global Illumination in 99 lines of C++
smallpt: Global Illumination in 99 lines of C++鍾誠 陳鍾誠
 
SIFT vs other Feature Descriptor
SIFT vs other Feature DescriptorSIFT vs other Feature Descriptor
SIFT vs other Feature DescriptorNisar Ahmed Rana
 
Michal Erel's SIFT presentation
Michal Erel's SIFT presentationMichal Erel's SIFT presentation
Michal Erel's SIFT presentationwolf
 
Computer vision - photometric
Computer vision - photometricComputer vision - photometric
Computer vision - photometricWael Badawy
 
SURF - Speeded Up Robust Features
SURF - Speeded Up Robust FeaturesSURF - Speeded Up Robust Features
SURF - Speeded Up Robust FeaturesMarta Lopes
 
GRPHICS05 - Rendering (2)
GRPHICS05 - Rendering (2)GRPHICS05 - Rendering (2)
GRPHICS05 - Rendering (2)Michael Heron
 

What's hot (17)

Lec03 light
Lec03 lightLec03 light
Lec03 light
 
Lec07 corner blob
Lec07 corner blobLec07 corner blob
Lec07 corner blob
 
Lec08 fitting
Lec08 fittingLec08 fitting
Lec08 fitting
 
Lec12 epipolar
Lec12 epipolarLec12 epipolar
Lec12 epipolar
 
Lighting and shading
Lighting and shadingLighting and shading
Lighting and shading
 
Illumination Model
Illumination ModelIllumination Model
Illumination Model
 
Lighting and shading
Lighting and shadingLighting and shading
Lighting and shading
 
GRPHICS06 - Shading
GRPHICS06 - ShadingGRPHICS06 - Shading
GRPHICS06 - Shading
 
Edges and lines
Edges and linesEdges and lines
Edges and lines
 
Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface
 
Graphics Lecture 7
Graphics Lecture 7Graphics Lecture 7
Graphics Lecture 7
 
smallpt: Global Illumination in 99 lines of C++
smallpt:  Global Illumination in 99 lines of C++smallpt:  Global Illumination in 99 lines of C++
smallpt: Global Illumination in 99 lines of C++
 
SIFT vs other Feature Descriptor
SIFT vs other Feature DescriptorSIFT vs other Feature Descriptor
SIFT vs other Feature Descriptor
 
Michal Erel's SIFT presentation
Michal Erel's SIFT presentationMichal Erel's SIFT presentation
Michal Erel's SIFT presentation
 
Computer vision - photometric
Computer vision - photometricComputer vision - photometric
Computer vision - photometric
 
SURF - Speeded Up Robust Features
SURF - Speeded Up Robust FeaturesSURF - Speeded Up Robust Features
SURF - Speeded Up Robust Features
 
GRPHICS05 - Rendering (2)
GRPHICS05 - Rendering (2)GRPHICS05 - Rendering (2)
GRPHICS05 - Rendering (2)
 

Similar to Lec13 stereo converted

Introduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer VisionIntroduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer Visionothersk46
 
Passive stereo vision with deep learning
Passive stereo vision with deep learningPassive stereo vision with deep learning
Passive stereo vision with deep learningYu Huang
 
Computer Vision - Stereo Vision
Computer Vision - Stereo VisionComputer Vision - Stereo Vision
Computer Vision - Stereo VisionWael Badawy
 
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013Sunando Sengupta
 
1 [Autosaved].pptx
1 [Autosaved].pptx1 [Autosaved].pptx
1 [Autosaved].pptxSsdSsd5
 
Caustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic PatternsCaustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic PatternsBudianto Tandianus
 
Computer Vision panoramas
Computer Vision  panoramasComputer Vision  panoramas
Computer Vision panoramasWael Badawy
 
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Konrad Wenzel
 
2 basic imaging and radiometry
2 basic imaging and radiometry2 basic imaging and radiometry
2 basic imaging and radiometryzjnsrbt
 
CVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation Fields
CVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation FieldsCVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation Fields
CVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation FieldsJun Saito
 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingcairo university
 
06 image features
06 image features06 image features
06 image featuresankit_ppt
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methodssujeeshkumarj
 

Similar to Lec13 stereo converted (20)

Introduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer VisionIntroduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer Vision
 
Passive stereo vision with deep learning
Passive stereo vision with deep learningPassive stereo vision with deep learning
Passive stereo vision with deep learning
 
Computer Vision - Stereo Vision
Computer Vision - Stereo VisionComputer Vision - Stereo Vision
Computer Vision - Stereo Vision
 
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
 
1 [Autosaved].pptx
1 [Autosaved].pptx1 [Autosaved].pptx
1 [Autosaved].pptx
 
Caustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic PatternsCaustic Object Construction Based on Multiple Caustic Patterns
Caustic Object Construction Based on Multiple Caustic Patterns
 
Computer Vision panoramas
Computer Vision  panoramasComputer Vision  panoramas
Computer Vision panoramas
 
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
 
2 basic imaging and radiometry
2 basic imaging and radiometry2 basic imaging and radiometry
2 basic imaging and radiometry
 
CVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation Fields
CVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation FieldsCVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation Fields
CVPR 2012 Review Seminar - Multi-View Hair Capture using Orientation Fields
 
Ct image artifacts
Ct image artifactsCt image artifacts
Ct image artifacts
 
PPT s11-machine vision-s2
PPT s11-machine vision-s2PPT s11-machine vision-s2
PPT s11-machine vision-s2
 
october23.ppt
october23.pptoctober23.ppt
october23.ppt
 
Part2
Part2Part2
Part2
 
PPT s12-machine vision-s2
PPT s12-machine vision-s2PPT s12-machine vision-s2
PPT s12-machine vision-s2
 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matching
 
PPT s06-machine vision-s2
PPT s06-machine vision-s2PPT s06-machine vision-s2
PPT s06-machine vision-s2
 
november6.ppt
november6.pptnovember6.ppt
november6.ppt
 
06 image features
06 image features06 image features
06 image features
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
 

More from BaliThorat1

8 operating system concept
8 operating system concept8 operating system concept
8 operating system conceptBaliThorat1
 
6 input output devices
6 input output devices6 input output devices
6 input output devicesBaliThorat1
 
2 windows operating system
2 windows operating system2 windows operating system
2 windows operating systemBaliThorat1
 
5 computer memory
5 computer memory5 computer memory
5 computer memoryBaliThorat1
 
4 computer languages
4 computer languages4 computer languages
4 computer languagesBaliThorat1
 
1 fundamentals of computer
1 fundamentals of computer1 fundamentals of computer
1 fundamentals of computerBaliThorat1
 
1 fundamentals of computer system
1 fundamentals of computer system1 fundamentals of computer system
1 fundamentals of computer systemBaliThorat1
 
Computer generation and classification
Computer generation and classificationComputer generation and classification
Computer generation and classificationBaliThorat1
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartBaliThorat1
 
6 cpu scheduling
6 cpu scheduling6 cpu scheduling
6 cpu schedulingBaliThorat1
 
5 process synchronization
5 process synchronization5 process synchronization
5 process synchronizationBaliThorat1
 
1 intro and overview
1 intro and overview1 intro and overview
1 intro and overviewBaliThorat1
 
Lec01 introduction
Lec01 introductionLec01 introduction
Lec01 introductionBaliThorat1
 

More from BaliThorat1 (18)

Lec15 sfm
Lec15 sfmLec15 sfm
Lec15 sfm
 
8 operating system concept
8 operating system concept8 operating system concept
8 operating system concept
 
7 processor
7 processor7 processor
7 processor
 
6 input output devices
6 input output devices6 input output devices
6 input output devices
 
2 windows operating system
2 windows operating system2 windows operating system
2 windows operating system
 
5 computer memory
5 computer memory5 computer memory
5 computer memory
 
4 computer languages
4 computer languages4 computer languages
4 computer languages
 
1 fundamentals of computer
1 fundamentals of computer1 fundamentals of computer
1 fundamentals of computer
 
1 fundamentals of computer system
1 fundamentals of computer system1 fundamentals of computer system
1 fundamentals of computer system
 
Computer generation and classification
Computer generation and classificationComputer generation and classification
Computer generation and classification
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
6 cpu scheduling
6 cpu scheduling6 cpu scheduling
6 cpu scheduling
 
5 process synchronization
5 process synchronization5 process synchronization
5 process synchronization
 
4 threads
4 threads4 threads
4 threads
 
3 processes
3 processes3 processes
3 processes
 
2 os structure
2 os structure2 os structure
2 os structure
 
1 intro and overview
1 intro and overview1 intro and overview
1 intro and overview
 
Lec01 introduction
Lec01 introductionLec01 introduction
Lec01 introduction
 

Recently uploaded

Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfVivekanand Anglo Vedic Academy
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345beazzy04
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...sanghavirahi2
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTechSoup
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxricssacare
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringDenish Jangid
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Abhinav Gaur Kaptaan
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 

Recently uploaded (20)

Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 

Lec13 stereo converted

  • 1. Stereo Many slides adapted from Steve Seitz
  • 2. Binocular stereo • Given a calibrated binocular stereo pair, fuse it to produce a depth image image 1 image 2 Dense depth map
  • 3. Binocular stereo • Given a calibrated binocular stereo pair, fuse it to produce a depth image • Humans can do it Stereograms: Invented by Sir Charles Wheatstone, 1838
  • 4. Binocular stereo • Given a calibrated binocular stereo pair, fuse it to produce a depth image • Humans can do it Autostereograms: www.magiceye.com
  • 5. Binocular stereo • Given a calibrated binocular stereo pair, fuse it to produce a depth image • Humans can do it Autostereograms: www.magiceye.com
  • 6. Basic stereo matching algorithm • For each pixel in the first image • Find corresponding epipolar line in the right image • Examine all pixels on the epipolar line and pick the best match • Triangulate the matches to get depth information • Simplest case: epipolar lines are scanlines • When does this happen?
  • 7. Simplest Case: Parallel images • Image planes of cameras are parallel to each other and to the baseline • Camera centers are at same height • Focal lengths are the same
  • 8. Simplest Case: Parallel images • Image planes of cameras are parallel to each other and to the baseline • Camera centers are at same height • Focal lengths are the same • Then, epipolar lines fall along the horizontal scan lines of the images
  • 9.
  • 10.
  • 11. Depth from disparity f x x’ z O Baseline B O’ X f disparity  x  x  B  f z Disparity is inversely proportional to depth!
  • 13. Stereo image rectification • reproject image planes onto a common plane parallel to the line between optical centers • pixel motion is horizontal after this transformation • two homographies (3x3 transform), one for each input image reprojection  C. Loop and Z. Zhang. Computing Rectifying Homographies for Stereo Vision. IEEE Conf. Computer Vision and Pattern Recognition, 1999.
  • 15. Basic stereo matching algorithm • If necessary, rectify the two stereo images to transform epipolar lines into scanlines • For each pixel x in the first image • Find corresponding epipolar scanline in the right image • Examine all pixels on the scanline and pick the best match x’ • Compute disparity x-x’ and set depth(x) = 1/(x-x’)
  • 16. Correspondence problem Multiple matching hypotheses satisfy the epipolar constraint, but which one is correct?
  • 17. Correspondence problem • Let’s make some assumptions to simplify the matching problem • The baseline is relatively small (compared to the depth of scene points) • Then most scene points are visible in both views • Also, matching regions are similar in appearance
  • 18. Correspondence problem • Let’s make some assumptions to simplify the matching problem • The baseline is relatively small (compared to the depth of scene points) • Then most scene points are visible in both views • Also, matching regions are similar in appearance
  • 19. Matching cost disparity Left Right scanline Correspondence search with similarity constraint • Slide a window along the right scanline and compare contents of that window with the reference window in the left image • Matching cost: SSD or normalized correlation
  • 20. Left Right scanline Correspondence search with similarity constraint SSD
  • 21. Left Right scanline Correspondence search with similarity constraint Norm. corr
  • 22. Effect of window size • Smaller window + More detail – More noise • Larger window + Smoother disparity maps – Less detail W = 3 W = 20
  • 23. The similarity constraint • Corresponding regions in two images should be similar in appearance • …and non-corresponding regions should be different • When will the similarity constraint fail?
  • 24. Limitations of similarity constraint Textureless surfaces Occlusions, repetition Non-Lambertian surfaces, specularities
  • 25. Results with window search Window-based matching Ground truth Data
  • 26. Better methods exist... Graph cuts Ground truth Y.Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization via Graph Cuts, PAMI 2001 For the latest and greatest: http://www.middlebury.edu/stereo/
  • 27. How can we improve window-based matching? • The similarity constraint is local (each reference window is matched independently) • Need to enforce non-local correspondence constraints
  • 28. Non-local constraints • Uniqueness • For any point in one image, there should be at most one matching point in the other image
  • 29. Non-local constraints • Uniqueness • For any point in one image, there should be at most one matching point in the other image • Ordering • Corresponding points should be in the same order in both views
  • 30. Non-local constraints • Uniqueness • For any point in one image, there should be at most one matching point in the other image • Ordering • Corresponding points should be in the same order in both views Ordering constraint doesn’t hold
  • 31. Non-local constraints • Uniqueness • For any point in one image, there should be at most one matching point in the other image • Ordering • Corresponding points should be in the same order in both views • Smoothness • We expect disparity values to change slowly (for the most part)
  • 32. Scanline stereo • Try to coherently match pixels on the entire scanline • Different scanlines are still optimized independently Left image Right image
  • 33. “Shortest paths” for scan-line stereo Left image Right image Ohta & Kanade ’85, Cox et al. ‘96 Sleft right S q Left occlusio n t Right occlusion s p Can be implemented with dynamic programming Coccl Coccl I I Ccorr Slide credit: Y . Boykov
  • 34. Coherent stereo on 2D grid • Scanline stereo generates streaking artifacts • Can’t use dynamic programming to find spatially coherent disparities/ correspondences on a 2D grid
  • 35. Stereo matching as energy minimization I1 I2 D • Energy functions of this form can be minimized using graph cuts Y.Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization via Graph Cuts, PAMI 2001 W1(i) W2(i+D(i)) D(i) E   Edata(I1, I2 , D)  Esmooth (D) neighbors i, j Esmooth  D(i)  D( j) 2 1 2 data  i W(i) W (i D(i)) E 
  • 36. Stereo matching as energy minimization I1 I2 D W1(i) W2(i+D(i)) D(i) • Probabilistic interpretation: we want to find a Maximum A Posteriori (MAP) estimate of disparity image D: P(D | I1, I2 )  P(I1, I2 | D)P(D)  log P(D | I1, I2 )  log P(I1, I2 | D)  log P(D) E   Edata (I1, I2, D)  Esmooth(D)
  • 37. The role of the baseline Small Baseline Large Baseline Small baseline: large depth error Large baseline: difficult search problem Source: S. Seitz
  • 38. Problem for wide baselines: Foreshortening • Matching with fixed-size windows will fail! • Possible solution: adaptively vary window size • Another solution: model-based stereo
  • 39. Model-based stereo Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering Architecture from Photographs. SIGGRAPH 1996.
  • 40. Model-based stereo key image offset image Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering Architecture from Photographs. SIGGRAPH 1996.
  • 41. Model-based stereo key image warped offset image displacement map Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering Architecture from Photographs. SIGGRAPH 1996.
  • 42. Laser scanning Optical triangulation • Project a single stripe of laser light • Scan it across the surface of the object • This is a very precise version of structured light scanning CCD Laser Object Direction of travel Laser sheet CCD image plane Cylindrical lens Digital Michelangelo Project http://graphics.stanford.edu/projects/mich/ Source: S. Seitz
  • 43. Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz
  • 44. Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz
  • 45. Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz
  • 46. Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz 1.0 mm resolution (56 million triangles)
  • 47. Aligning range images • A single range scan is not sufficient to describe a complex surface • Need techniques to register multiple range images B. Curless and M. Levoy, A Volumetric Method for Building Complex Models from Range Images, SIGGRAPH 1996
  • 48. Aligning range images • A single range scan is not sufficient to describe a complex surface • Need techniques to register multiple range images … which brings us to multi-view stereo