210 likes | 525 Views
Stereo Matching Using Dynamic Programming. Jim Rehg CS 4495/7495 Computer Vision Lecture 4 Mon Sept 2, 2002. Correspondence. It is fundamentally ambiguous, even with stereo constraints. Ordering constraint…. …and its failure. Occluded Pixels. Dis-occluded Pixels.
E N D
Stereo Matching Using Dynamic Programming Jim Rehg CS 4495/7495 Computer Vision Lecture 4 Mon Sept 2, 2002
Correspondence • It is fundamentally ambiguous, even with stereo constraints Ordering constraint… …and its failure
Occluded Pixels Dis-occluded Pixels Search Over Correspondences Three cases: • Sequential – cost of match • Occluded – cost of no match • Disoccluded – cost of no match Left scanline Right scanline
Occluded Pixels Stereo Matching with Dynamic Programming Dynamic programming yields the optimal path through grid. This is the best set of matches that satisfy the ordering constraint Left scanline Start Dis-occluded Pixels Right scanline End
Dynamic Programming 1 1 1 2 2 2 3 3 3 Principle of Optimality for an n-stage assignment problem:
Dynamic Programming 1 1 1 2 2 2 3 3 3 Principle of Optimality for an n-stage assignment problem:
Dynamic Programming 1 1 1 2 2 2 3 3 3 Principle of Optimality for an n-stage assignment problem:
Dynamic Programming 1 1 1 2 2 2 3 3 3 Principle of Optimality for an n-stage assignment problem:
Dynamic Programming 1 1 1 2 2 2 3 3 3 Principle of Optimality for an n-stage assignment problem:
Dynamic Programming 1 1 1 2 2 2 3 3 3 Back-chaining recovers the optimal path and its cost:
Occluded Pixels Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors.Backtrack from the terminal to get the optimal path. Left scanline Dis-occluded Pixels Right scanline Terminal
Occluded Pixels Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors.Backtrack from the terminal to get the optimal path. Left scanline Dis-occluded Pixels Right scanline Terminal
Occluded Pixels Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors.Backtrack from the terminal to get the optimal path. Left scanline Dis-occluded Pixels Right scanline Terminal
Occluded Pixels Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors.Backtrack from the terminal to get the optimal path. Left scanline Dis-occluded Pixels Right scanline Terminal
Occluded Pixels Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors.Backtrack from the terminal to get the optimal path. Left scanline Dis-occluded Pixels Right scanline Terminal
Occluded Pixels Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors.Backtrack from the terminal to get the optimal path. Left scanline Dis-occluded Pixels Right scanline Terminal
Occluded Pixels Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors.Backtrack from the terminal to get the optimal path. Left scanline Dis-occluded Pixels Right scanline Terminal
Computing Correspondence • Another approach is to match edges rather than windows of pixels: • Which method is better? • Edges tend to fail in dense texture (outdoors) • Correlation tends to fail in smooth featureless areas
Computing Correspondences • Both methods fail for smooth surfaces • There is currently no good solution to the correspondence problem