More on Stereo - PowerPoint PPT Presentation

About This Presentation
Title:

More on Stereo

Description:

Image 1. Image 2. Incremental Computation ... Image 1. Image 2. Selecting Window Size. Small window: more detail, but more noise ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 26
Provided by: szymonrus
Category:
Tags: image1 | more | stereo

less

Transcript and Presenter's Notes

Title: More on Stereo


1
More on Stereo

2
Outline
  • Fast window-based correlation
  • Diffusion
  • Energy minimization
  • Graph cuts

3
Window-Based Correlation
  • For each pixel
  • For each disparity
  • For each pixel in window
  • Compute difference
  • Find disparity with minimum SSD

4
Reverse Order of Loops
  • For each disparity
  • For each pixel
  • For each pixel in window
  • Compute difference
  • Find disparity with minimum SSD at each pixel

5
Incremental Computation
  • Given SSD of a window, at some disparity

Image 1
Image 2
6
Incremental Computation
  • Want SSD at next location

Image 1
Image 2
7
Incremental Computation
  • Subtract contributions from leftmost column, add
    contributions from rightmost column


-

-
Image 1

-

-

-
-

-

Image 2
-

-

-

8
Selecting Window Size
  • Small window more detail, but more noise
  • Large window more robustness, less detail
  • Example

9
Selecting Window Size
3 pixel window
20 pixel window
10
Non-Square Windows
  • Compromise have a large window, but higher
    weight near the center
  • Example Gaussian
  • For each disparity
  • For each pixel
  • Compute weighted SSD

11
Diffusion
  • For each disparity
  • For each pixel
  • Compute difference in intensities
  • For n iterations
  • Ei ? (1-4l) Ei l SEj
  • Sum is over four neighbors of each pixel

12
Non-Linear Diffusion
  • To prevent blurring even more, only perform
    diffusion in ambiguous regions
  • For each pixel, compute certainty
  • High certainty iff one disparity has low
    error,all others have high error
  • For each pixel, only perform diffusion
    ifcertainty goes up

13
Certainty Metrics forNon-Linear Diffusion
  • Winner margin normalized difference between
    lowest and second-lowest error
  • Entropy

14
Results
  • Scharstein and Szeliski, 1996

3 pixel window
20 pixel window
Nonlinear diffusion
15
Energy Minimization
  • Another approach to improve quality of
    correspondences
  • Assumption disparities vary (mostly) smoothly
  • Minimize energy function EdatalEsmoothness
  • Edata how well does disparity match data
  • Esmoothness how well does disparity matchthat
    of neighbors regularization

16
Energy Minimization
  • If data and energy terms are nice (continuous,
    smooth, etc.) can try to minimize via gradient
    descent, etc.
  • In practice, disparities only piecewise smooth
  • Design smoothness function that doesnt penalize
    large jumps too much
  • Example V(a,b)min(a-b, K)

17
Energy Minimization
  • Hard to find global minima of non-smooth
    functions
  • Many local minima
  • Provably NP-hard
  • Practical algorithms look for approximate minima
    (e.g., simulated annealing)

18
Energy Minimization via Graph Cuts
  • Boykov, Veksler, and Zabih, 2001
  • Define a class of operations
  • e.g., change some of the disparities to a
  • Look for operations that reduce energy
  • Terminate when no operations of the class being
    considered reduce energy

19
Energy Minimization via Graph Cuts
  • Different kinds of operations
  • Challenge how to find operations that reduce
    energy the most

20
Energy Minimization via Graph Cuts
  • Represent possible operations ascuts through
    graphs
  • Graph cut minimal subset of edges that separates
    two (given) edges of graph
  • Fast algorithms for computing minimal-cost cuts

21
Energy Minimization via Graph Cuts
  • ?-? swap interchange ? and ? labels

22
Energy Minimization via Graph Cuts
  • ? expansion add pixels to ? class

23
Results
Image
Ground truth
Swap algorithm
Expansion algorithm
24
Results
Image
Ground truth
Normalized correlation
Simulated annealing
25
Energy Minimization forImage Smoothing
  • Apply same principle image should be close to
    original image, but piecewise smooth

Originalimage
Noiseadded
Local energyminimum withone-pixel changes
Local energyminimum witha-expansion
Write a Comment
User Comments (0)
About PowerShow.com