Announcements No midterm Project 3 will be done in pairs same partners as for project 2.

Slides:



Advertisements
Similar presentations
The fundamental matrix F
Advertisements

Lecture 11: Two-view geometry
Building Rome in a Day Sameer Agarwal1 Noah Snavely2 Ian Simon1 Steven M. Seitz1 Richard Szeliski3 1University of Washington 2Cornell University 3Microsoft.
Stereo and Projective Structure from Motion
Discrete-Continuous Optimization for Large-scale Structure from Motion David Crandall, Andrew Owens, Noah Snavely, Dan Huttenlocher Presented by: Rahul.
Lecture 11: Structure from Motion
Structure from motion.
Single-view metrology
Lecture 23: Structure from motion and multi-view stereo
Lecture 11: Structure from motion, part 2 CS6670: Computer Vision Noah Snavely.
Direct Methods for Visual Scene Reconstruction Paper by Richard Szeliski & Sing Bing Kang Presented by Kristin Branson November 7, 2002.
Global Alignment and Structure from Motion
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
Many slides and illustrations from J. Ponce
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
Announcements Project 1 artifact voting Project 2 out today panorama signup help session at end of class Guest lectures next week: Li Zhang, Jiwon Kim.
Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.
Single-view geometry Odilon Redon, Cyclops, 1914.
Announcements Project 1 Grading session this afternoon Artifacts due Friday (voting TBA) Project 2 out (online) Signup for panorama kits ASAP (weekend.
Global Alignment and Structure from Motion Computer Vision CSE455, Winter 2008 Noah Snavely.
CSCE 641 Computer Graphics: Image-based Modeling (Cont.) Jinxiang Chai.
Lecture 12: Structure from motion CS6670: Computer Vision Noah Snavely.
Mosaics CSE 455, Winter 2010 February 8, 2010 Neel Joshi, CSE 455, Winter Announcements  The Midterm went out Friday  See to the class.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Image Stitching Ali Farhadi CSE 455
Multi-view geometry.
Structure from Motion Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/06/12 Many slides adapted from Lana Lazebnik, Silvio Saverese,
Mosaics Today’s Readings Szeliski, Ch 5.1, 8.1 StreetView.
Image stitching Digital Visual Effects Yung-Yu Chuang with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac.
CSCE 643 Computer Vision: Structure from Motion
CS4670 / 5670: Computer Vision KavitaBala Lecture 17: Panoramas.
EECS 274 Computer Vision Geometric Camera Calibration.
Mosaics part 3 CSE 455, Winter 2010 February 12, 2010.
Calibration.
COS429 Computer Vision =++ Assignment 4 Cloning Yourself.
Large-Scale Matrix Factorization with Missing Data under Additional Constraints Kaushik Mitra University of Maryland, College Park, MD Sameer Sheoreyy.
Lecture 9 Feature Extraction and Motion Estimation Slides by: Michael Black Clark F. Olson Jean Ponce.
Structure from motion Multi-view geometry Affine structure from motion Projective structure from motion Planches : –
EECS 274 Computer Vision Projective Structure from Motion.
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
CSE 185 Introduction to Computer Vision Stereo 2.
Lecture 10: Image alignment CS4670/5760: Computer Vision Noah Snavely
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Lecture 16: Image alignment
CS4670 / 5670: Computer Vision Kavita Bala Lecture 20: Panoramas.
Think-Pair-Share What visual or physiological cues help us to perceive 3D shape and depth?
Answering ‘Where am I?’ by Nonlinear Least Squares
Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/4/17
Modeling the world with photos
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
Structure from motion Input: Output: (Tomasi and Kanade)
Idea: projecting images onto a common plane
2D transformations (a.k.a. warping)
Announcements more panorama slots available now
Noah Snavely.
Announcements Project 1 artifact voting Project 2 out today
Multi-view geometry.
Lecture 8: Image alignment
Structure from motion.
Lecture 8: Image alignment
Announcements more panorama slots available now
Optical flow and keypoint tracking
Structure from motion Input: Output: (Tomasi and Kanade)
Lecture 15: Structure from motion
Image Stitching Linda Shapiro ECE/CSE 576.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Announcements No midterm Project 3 will be done in pairs same partners as for project 2

Global Alignment and Structure from Motion Today’s Readings Photo Tourism (Snavely et al., SIGGRAPH 2006) – (Adapted from slides by Noah Snavely)

Problem: Drift Solution add another copy of first image at the end this gives a constraint: y n = y 1 there are a bunch of ways to solve this problem –add displacement of (y 1 – y n )/(n -1) to each image after the first –compute a global warp: y’ = y + ax –run a big optimization problem, incorporating this constraint »best solution, but more complicated »known as “bundle adjustment” (x 1,y 1 ) copy of first image (x n,y n )

I1I1 I2I2 I3I3 I4I4 Global optimization t1t1 (0,0) t2t2 t3t3 t4t4 Input Output p1p1 p2p2 p3p3 We want to estimate t i. We know p i how do t i relate to p i ?

I1I1 I2I2 I3I3 I4I4 p1p1 p2p2 p3p3 Global optimization Recipe 1.Identify the variables you want to estimate in our case: t i Identify a set of objectives you want to satisfy 1. in our case: p i - p j = t i - t j and similar for q, r, s Define an objective function F over these variables, whose minimum occurs at the “answer” for these variables Find the minimum of F q2q2 q3q3 q4q4 r3r3 r4r4 s4s4 s1s1

I1I1 I2I2 I3I3 I4I4 p1p1 p2p2 p3p3 Objective function + similar terms for q, r, s q2q2 q3q3 q4q4 r3r3 r4r4 s4s4 s1s1

p1p1 p2p2 p3p3 Objective function Matrix form p i = (u i, v i ) t i = (x i, y i )

Objective Function Adding in q, r, s give a larger matrix equation Axb Defines a least squares problem: minimize Solution: Problem: there are multiple solutions for ! (det = 0) We can add a global offset to a solution and get the same error

Ambiguity in the solution Each of these solutions has the same error Called the gauge ambiguity Solution: fix the translation of one image (t 1 = (0,0)) (0,0) (-100,-100) (200,-200)

Structure from motion Computed 3D structure Images on the Internet

Structure from motion Camera 1 Camera 2 Camera 3 R 1,t 1 R 2,t 2 R 3,t 3 p1p1 p4p4 p3p3 p2p2 p5p5 p6p6 p7p7 minimize g (R, T, P)g (R, T, P) aka “bundle adjustment” (texts: Zisserman; Faugeras)ZissermanFaugeras

Given point x and rotation and translation R, t Minimize sum of squared reprojection errors: predicted image location observed image location SfM objective function

Solving structure from motion Minimizing g is difficult: –g is non-linear due to rotations, perspective division –lots of parameters: 3 for each 3D point, 6 for each camera –difficult to initialize –gauge ambiguity: error is invariant to a similarity transform (translation, rotation, uniform scale) Many techniques use non-linear least-squares optimization (bundle adjustment) –Levenberg-Marquardt is a popular algorithm – Good code online –Bundler: –Multicore:

Photo Tourism Photo tourism video: Photosynth:

? ?

Reconstructing Rome In a day... From ~1M images Using ~1000 cores Sameer Agarwal, Noah Snavely, Rick Szeliski, Steve Seitz

St. Peters (inside) Trevi Fountain St. Peters (outside) Il Vittoriano Coliseum (inside) Coliseum (outside) Forum

Rome 150K: Colosseum

Rome: St. Peters

Venice (250K images)

Venice: Canal

Dubrovnik

More info Rome-in-a-day page –