Mosaics CSE 455, Winter 2010 February 8, 2010 Neel Joshi, CSE 455, Winter 2010 2 Announcements  The Midterm went out Friday  See email to the class.

Slides:



Advertisements
Similar presentations
The fundamental matrix F
Advertisements

Lecture 11: Two-view geometry
More Mosaic Madness : Computational Photography Alexei Efros, CMU, Fall 2011 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen from.
CSCE 641 Computer Graphics: Image Mosaicing Jinxiang Chai.
Image alignment Image from
Mosaics con’t CSE 455, Winter 2010 February 10, 2010.
Computational Photography: Image Mosaicing Jinxiang Chai.
Announcements Project 2 Out today Sign up for a panorama kit ASAP! –best slots (weekend) go quickly...
Lecture 23: Structure from motion and multi-view stereo
Announcements Project 1 artifact voting ( announce later today) Project 2 out today (help session at end of class) IMPORTANT: choose Proj 2 partner.
Lecture 8: Geometric transformations CS4670: Computer Vision Noah Snavely.
Direct Methods for Visual Scene Reconstruction Paper by Richard Szeliski & Sing Bing Kang Presented by Kristin Branson November 7, 2002.
Homographies and Mosaics : Computational Photography Alexei Efros, CMU, Fall 2005 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen.
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Lecture 21: Multiple-view geometry and structure from motion
Lecture 6: Image transformations and alignment CS6670: Computer Vision Noah Snavely.
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
Image Stitching and Panoramas
Lecture 13: Projection, Part 2
Announcements Project 2 out today panorama signup help session at end of class Today mosaic recap blending.
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.
1Jana Kosecka, CS 223b Cylindrical panoramas Cylindrical panoramas with some slides from R. Szeliski, S. Seitz, D. Lowe, A. Efros,
Lecture 6: Image Warping and Projection CS6670: Computer Vision Noah Snavely.
CSCE 641 Computer Graphics: Image Mosaicing Jinxiang Chai.
Lecture 20: Two-view geometry CS6670: Computer Vision Noah Snavely.
More Mosaic Madness : Computational Photography Alexei Efros, CMU, Fall 2005 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen from.
Panoramas and Calibration : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Rick Szeliski.
Image Warping and Mosacing : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Rick Szeliski.
Announcements Project 1 Grading session this afternoon Artifacts due Friday (voting TBA) Project 2 out (online) Signup for panorama kits ASAP (weekend.
More Mosaic Madness : Computational Photography Alexei Efros, CMU, Fall 2006 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen from.
Global Alignment and Structure from Motion Computer Vision CSE455, Winter 2008 Noah Snavely.
Announcements Project 1 artifact voting Project 2 out today (help session at end of class)
Lecture 12: Structure from motion CS6670: Computer Vision Noah Snavely.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Announcements Midterm due Friday, beginning of lecture Guest lecture on Friday: Antonio Criminisi, Microsoft Research.
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
Image Stitching Ali Farhadi CSE 455
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Last Lecture (optical center) origin principal point P (X,Y,Z) p (x,y) x y.
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.
Announcements Project 3 due Thursday by 11:59pm Demos on Friday; signup on CMS Prelim to be distributed in class Friday, due Wednesday by the beginning.
Feature Matching. Feature Space Outlier Rejection.
Mosaics part 3 CSE 455, Winter 2010 February 12, 2010.
COS429 Computer Vision =++ Assignment 4 Cloning Yourself.
Announcements No midterm Project 3 will be done in pairs same partners as for project 2.
Mosaics Today’s Readings Szeliski and Shum paper (sections 1 and 2, skim the rest) –
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
Image Stitching Computer Vision CS 691E Some slides from Richard Szeliski.
Homographies and Mosaics : Computational Photography Alexei Efros, CMU, Fall 2006 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen.
CSE 185 Introduction to Computer Vision Stereo 2.
CS4670 / 5670: Computer Vision Kavita Bala Lecture 20: Panoramas.
COSC579: Image Align, Mosaic, Stitch
RANSAC and mosaic wrap-up
More Mosaic Madness : Computational Photography
Modeling the world with photos
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
More Mosaic Madness © Jeffrey Martin (jeffrey-martin.com)
Announcements Project 2 out today (help session at end of class)
More Mosaic Madness : Computational Photography
2D transformations (a.k.a. warping)
Image Stitching Computer Vision CS 678
Noah Snavely.
Announcements Project 1 Project 2 Vote for your favorite artifacts!
Announcements Project 1 artifact voting Project 2 out today
Computational Photography
Lecture 15: Structure from motion
Image Stitching Linda Shapiro ECE/CSE 576.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Mosaics CSE 455, Winter 2010 February 8, 2010

Neel Joshi, CSE 455, Winter Announcements  The Midterm went out Friday  See to the class  Also linked off the course colander  Open-note, Open-book, Non Open-Friend  Clarification questions only in office hours, over , and on the forum  You may still ask us general questions about the course material

Neel Joshi, CSE 455, Winter Announcements  Professor office hours are M 2:30-3:30  6 TA hours during the week (WF 4-5:30 and TTh 10-11:30).  We’ve enjoyed interactive with those that have come  We would love to see more of you!  We are also available for questions over or to meet by appointment outside of these times.  Late Days, the weekends don’t count

Neel Joshi, CSE 455, Winter Announcements  Class forum:  Course reader:  Other resources: Richard Szeliski's book Computer Vision: Algorithms and Applications. The book draft is currently available online. R. Hartley, A.Zisserman. Multiple View Geometry in Computer Vision. Cambridge University Press, R. Hartley, A.Zisserman., Multiple View Geometry - Tutorial. CVPR (1999). D. A. Forsyth, J. Ponce. Computer Vision a Modern Approach. Prentice Hall, 2003.

Neel Joshi, CSE 455, Winter Review From Last Time

Neel Joshi, CSE 455, Winter Structure from Motion  Snavely, Seitz, Szeliski, Photo Tourism: Exploring Photo Collections in 3D. SIGGRAPH

Neel Joshi, CSE 455, Winter p 1,1 p 1,2 p 1,3 Image 1 Image 2 Image 3 x1x1 x4x4 x3x3 x2x2 x5x5 x6x6 x7x7 R1,t1R1,t1 R2,t2R2,t2 R3,t3R3,t3

Neel Joshi, CSE 455, Winter Structure from motion Input: images with points in correspondence p i,j = (u i,j,v i,j ) Output structure: 3D location x i for each point p i motion: camera parameters R j, t j Objective function: minimize reprojection error Reconstruction (side) (top)

Neel Joshi, CSE 455, Winter p 1,1 p 1,2 p 1,3 Image 1 Image 2 Image 3 x1x1 x4x4 x3x3 x2x2 x5x5 x6x6 x7x7 R1,t1R1,t1 R2,t2R2,t2 R3,t3R3,t3

Neel Joshi, CSE 455, Winter SfM objective function  Given point x and rotation and translation R, t  Minimize sum of squared reprojection errors: predicted image location observed image location

Neel Joshi, CSE 455, Winter 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 (NLLS) optimization (bundle adjustment) – Levenberg-Marquardt is one common algorithm for NLLS – Lourakis, The Design and Implementation of a Generic Sparse Bundle Adjustment Software Package Based on the Levenberg-Marquardt Algorithm, –

Neel Joshi, CSE 455, Winter Scene reconstruction Feature detection Pairwise feature matching Pairwise feature matching Incremental structure from motion Correspondence estimation

Neel Joshi, CSE 455, Winter Mosaics  Today’s Readings  Szeliski and Shum paper (sections 1 and 2, skim the rest)  VR Seattle: Full screen panoramas (cubic): Mars:

Neel Joshi, CSE 455, Winter Image Mosaics + + … + = Goal Stitch together several images into a seamless composite

Neel Joshi, CSE 455, Winter How to do it?  Easier than Structure from Motion or Harder?  Easier  Let’s Start on your next project right now in class  Basic Procedure  Take a sequence of images from the same position  Rotate the camera about its optical center  Then what?  In Class Exercise

Neel Joshi, CSE 455, Winter Panoramic Stitching Input Goal Try doing using your brain, eyes, and hands – Can you align the images? Write an rough algorithm What steps are there, what do you need to find, what things are tricky

Neel Joshi, CSE 455, Winter How to do it?  Basic Procedure  Take a sequence of images from the same position  Rotate the camera about its optical center  Compute transformation between second image and first  Transform the second image to overlap with the first  Blend the two together to create a mosaic  If there are more images, repeat

Neel Joshi, CSE 455, Winter Aligning images  How to account for warping?  Translations are not enough to align the images  Photoshop demo Photoshop demo

Neel Joshi, CSE 455, Winter p 1,1 p 1,2 p 1,3 Image 1 Image 2 Image 3 x1x1 x4x4 x3x3 x2x2 x5x5 x6x6 x7x7 R1,t1R1,t1 R2,t2R2,t2 R3,t3R3,t3

Neel Joshi, CSE 455, Winter p 1,2 Image 1 Image 2 Image 3 x1x1 x4x4 x3x3 x2x2 x5x5 x6x6 x7x7 R1R1 R2R2 R3R3

Neel Joshi, CSE 455, Winter mosaic PP Image reprojection  The mosaic has a natural interpretation in 3D  The images are reprojected onto a common plane  The mosaic is formed on this plane

Neel Joshi, CSE 455, Winter Image reprojection  Basic question  How to relate two images from the same camera center?  how to map a pixel from PP1 to PP2 PP2 PP1 Answer Cast a ray through each pixel in PP1 Draw the pixel where that ray intersects PP2 Don’t need to know what’s in the scene!

Neel Joshi, CSE 455, Winter Image reprojection  Observation  Rather than thinking of this as a 3D reprojection, think of it as a 2D image warp from one image to another

Neel Joshi, CSE 455, Winter Homographies  Perspective projection of a plane  Lots of names for this:  homography, texture-map, colineation, planar projective map  Modeled as a 2D warp using homogeneous coordinates Hpp’ To apply a homography H Compute p’ = Hp (regular matrix multiply) Convert p’ from homogeneous to image coordinates –divide by w (third) coordinate

Neel Joshi, CSE 455, Winter Image warping with homographies image plane in frontimage plane below black area where no pixel maps to