Image stitching. Image stitching. Video summarization. Applications of image stitching. Stitching = alignment + blending. geometrical registration

Similar documents
Image Mosaicing. Jinxiang Chai. Source: faculty.cs.tamu.edu/jchai/cpsc641_spring10/lectures/lecture8.ppt

Panoramic Image Mosaics

Homographies and Mosaics

Homographies and Mosaics

Panoramas. CS 178, Spring Marc Levoy Computer Science Department Stanford University

Panoramas. CS 178, Spring Marc Levoy Computer Science Department Stanford University

Panoramas. CS 178, Spring Marc Levoy Computer Science Department Stanford University

Dual-fisheye Lens Stitching for 360-degree Imaging & Video. Tuan Ho, PhD. Student Electrical Engineering Dept., UT Arlington

The Camera : Computational Photography Alexei Efros, CMU, Fall 2005

Photographing Long Scenes with Multiviewpoint

Creating a Panorama Photograph Using Photoshop Elements

Unit 1: Image Formation

Two strategies for realistic rendering capture real world data synthesize from bottom up

Multi Viewpoint Panoramas

Image formation - Cameras. Grading & Project. About the course. Tentative Schedule. Course Content. Students introduction

Recognizing Panoramas

Panoramic imaging. Ixyzϕθλt. 45 degrees FOV (normal view)

How to combine images in Photoshop

A short introduction to panoramic images

The Camera : Computational Photography Alexei Efros, CMU, Fall 2008

Colour correction for panoramic imaging

The key to a fisheye is the relationship between latitude ø of the 3D vector and radius on the 2D fisheye image, namely a linear one where

Midterm Examination CS 534: Computational Photography

Discovering Panoramas in Web Videos

Projection. Readings. Szeliski 2.1. Wednesday, October 23, 13

Why learn about photography in this course?

Cameras. Outline. Pinhole camera. Camera trial #1. Pinhole camera Film camera Digital camera Video camera High dynamic range imaging

lecture 24 image capture - photography: model of image formation - image blur - camera settings (f-number, shutter speed) - exposure - camera response

How do we see the world?

Computational Photography and Video. Prof. Marc Pollefeys

Objective Quality Assessment Method for Stitched Images

Computer Vision. The Pinhole Camera Model

Projection. Projection. Image formation. Müller-Lyer Illusion. Readings. Readings. Let s design a camera. Szeliski 2.1. Szeliski 2.

Digital Design and Communication Teaching (DiDACT) University of Sheffield Department of Landscape. Adobe Photoshop CS4 INTRODUCTION WORKSHOPS

Announcement A total of 5 (five) late days are allowed for projects. Office hours

Computational Photography

Cameras. Digital Visual Effects, Spring 2008 Yung-Yu Chuang 2008/2/26. with slides by Fredo Durand, Brian Curless, Steve Seitz and Alexei Efros

Building a Real Camera. Slides Credit: Svetlana Lazebnik

Video Registration: Key Challenges. Richard Szeliski Microsoft Research

multiframe visual-inertial blur estimation and removal for unmodified smartphones

Cameras. Shrinking the aperture. Camera trial #1. Pinhole camera. Digital Visual Effects Yung-Yu Chuang. Put a piece of film in front of an object.

Synthetic Stereoscopic Panoramic Images

Cameras. Outline. Pinhole camera. Camera trial #1. Pinhole camera Film camera Digital camera Video camera

Sequential Algorithm for Robust Radiometric Calibration and Vignetting Correction

Overview. Pinhole camera model Projective geometry Vanishing points and lines Projection matrix Cameras with Lenses Color Digital image

High-Resolution Interactive Panoramas with MPEG-4

Building a Real Camera

CLAIRVOYANCE: A Fast And Robust Precision Mosaicing System for Gigapixel Images

Lenses, exposure, and (de)focus

Vignetting Correction using Mutual Information submitted to ICCV 05

Fast Focal Length Solution in Partial Panoramic Image Stitching

ON THE CREATION OF PANORAMIC IMAGES FROM IMAGE SEQUENCES

Panoramic Image Stitching based on Feature Extraction and Correlation

Light Field based 360º Panoramas

As-Projective-As-Possible Image Stitching with Moving DLT

Advanced Diploma in. Photoshop. Summary Notes

Beacon Island Report / Notes

Cameras. CSE 455, Winter 2010 January 25, 2010

LENSES. INEL 6088 Computer Vision

Stitching distortion-free mosaic images for QWA using PTGui. Georg von Arx

Image Processing & Projective geometry

CREATION AND SCENE COMPOSITION FOR HIGH-RESOLUTION PANORAMAS

Projection. Announcements. Müller-Lyer Illusion. Image formation. Readings Nalwa 2.1

Computational Re-Photography Soonmin Bae, Aseem Agarwala, and Fredo Durand

Computational Rephotography

Tonemapping and bilateral filtering

Macro and Close-up Lenses

Deblurring. Basics, Problem definition and variants

Robust focal length estimation by voting in multi-view scene reconstruction

Cameras. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

Manifesting a Blackboard Image Restore and Mosaic using Multifeature Registration Algorithm

History of projection. Perspective. History of projection. Plane projection in drawing

Stitching panorama photographs with Hugin software Dirk Pons, New Zealand

Computational Photography

High Performance Imaging Using Large Camera Arrays

Image Formation and Capture. Acknowledgment: some figures by B. Curless, E. Hecht, W.J. Smith, B.K.P. Horn, and A. Theuwissen

Supplementary Material of

Image Formation: Camera Model

Single-view Metrology and Cameras

METHODS AND ALGORITHMS FOR STITCHING 360-DEGREE VIDEO

Brief summary report of novel digital capture techniques

Using Line and Ellipse Features for Rectification of Broadcast Hockey Video

Extended View Toolkit

Image Formation III Chapter 1 (Forsyth&Ponce) Cameras Lenses & Sensors

CS6670: Computer Vision

Panoramas. Featuring ROD PLANCK. Rod Planck DECEMBER 29, 2017 ADVANCED

6.098 Digital and Computational Photography Advanced Computational Photography. Bill Freeman Frédo Durand MIT - EECS

Continuous Flash. October 1, Technical Report MSR-TR Microsoft Research Microsoft Corporation One Microsoft Way Redmond, WA 98052

Film Cameras Digital SLR Cameras Point and Shoot Bridge Compact Mirror less

Dynamically Reparameterized Light Fields & Fourier Slice Photography. Oliver Barth, 2009 Max Planck Institute Saarbrücken

Robert Mark and Evelyn Billo

Image Formation and Capture

Panoramic Photo Stitching Tutorial

The ultimate camera. Computational Photography. Creating the ultimate camera. The ultimate camera. What does it do?

CS535 Fall Department of Computer Science Purdue University

Creating Stitched Panoramas

CSE 473/573 Computer Vision and Image Processing (CVIP)

Panoramic Mosaicing with a 180 Field of View Lens

What will be on the final exam?

Acquisition. Some slides from: Yung-Yu Chuang (DigiVfx) Jan Neumann, Pat Hanrahan, Alexei Efros

Transcription:

Image stitching Stitching = alignment + blending Image stitching geometrical registration photometric registration Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/3/22 with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac Applications of image stitching Video stabilization Video summarization Video compression Video matting Panorama creation Video summarization

Video compression Object removal input video Object removal Object removal remove foreground estimate background

Object removal Panorama creation background estimation Why panorama? Are you getting the whole picture? Compact Camera FOV = 50 x 35 Why panorama? Are you getting the whole picture? Compact Camera FOV = 50 x 35 Human FOV = 200 x 135

Why panorama? Are you getting the whole picture? Compact Camera FOV = 50 x 35 Human FOV = 200 x 135 Panoramic Mosaic = 360 x 180 Panorama examples Like HDR, it is a topic of computational photography, seeking ways to build a better camera mostly in software. Panorama mode in consumer cameras Mars: http://www.panoramas.dk/fullscreen3/f2_mars97.html Earth: http://earthobservatory.nasa.gov/newsroom/bluemarble/ A pencil of rays contains all views Mosaic as an image reprojection real camera synthetic camera mosaic projection plane Can generate any synthetic camera view as long as it has the same center of projection! The images are reprojected onto a common plane The mosaic is formed on this plane Mosaic is a synthetic wide-angle camera

Changing camera center Does it still work? PP1 synthetic PP Planar scene (or far away) PP1 PP3 PP2 PP2 PP3 is a projection plane of both centers of projection, so we are OK! This is how big aerial photographs are made Motion models 2D Motion models Parametric models as the assumptions on the relation between two images.

Motion models Cylindrical panorama 1. Take pictures on a tripod (or handheld) 2. Warp to cylindrical coordinate 3. Compute pairwise alignments Translation Affine Perspective 3D rotation 4. Fix up the end-to-end alignment 5. Blending 6. Crop the result and import into a viewer 2 unknowns 6 unknowns 8 unknowns 3 unknowns A case study: cylindrical panorama Cylindrical panoramas What if you want a 360 field of view? mosaic projection cylinder Steps Reproject each image onto a cylinder Blend Output the resulting mosaic

Taking pictures Translation model Kaidan panoramic tripod head Cylindrical projection Cylindrical reprojection Map 3D point (X,Y,Z) onto cylinder Y Z X unit cylinder Convert to cylindrical coordinates top-down view Focal length the dirty secret Convert to cylindrical image coordinates unwrapped cylinder cylindrical image Image 384x300 f = 180 (pixels) f = 280 f = 380

A simple method for estimating f Distortion No distortion Pin cushion Barrel Or, you can use other software, such as AutoStich, to help. Radial distortion of the image Caused by imperfect lenses Deviations are most noticeable for rays that pass through the edge of the lens Radial correction Input images Correct for bending in wide field of view lenses

Cylindrical warping Blending Why blending: parallax, lens distortion, scene motion, exposure difference Blending Blending

Blending Assembling the panorama Stitch pairs together, blend, then crop Problem: Drift Problem: Drift (x 1,y 1 ) (x n,y n ) Error accumulation small errors accumulate over time Solution copy of first image add another copy of first image at the end 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

End-to-end alignment and crop Viewer: panorama + + + + example: http://www.cs.washington.edu/education/courses/cse590ss/01wi/projects/project1/students/dougz/index.html Viewer: texture mapped model Determine pairwise alignment? Feature-based methods: only use feature points to estimate parameters We will study the Recognising panorama paper published in ICCV 2003 Run SIFT for each image, find feature matches. example: http://www.panoramas.dk/

Determine pairwise alignment? P =Mp, where M is a transformation matrix, p and p are feature matches It is possible to use more complicated models such as affine or perspective Avoid impact of outliers RANSAC RANSAC = Random Sample Consensus an algorithm for robust fitting of models in the presence of many data outliers Compare to robust statistics Given N data points x i, assume that mjority of them are generated from a model with parameters Θ, try to recover Θ. RANSAC algorithm Run k times: How many times? How big? (1) draw n samples randomly Smaller is better (2) fit parameters Θ with these n samples (3) for each of other N-n points, calculate its distance to the fitted model, count the number of inlier points, c Output Θ with the largest c How to define? Depends on the problem. How to determine k p: probability of real inliers P: probability of success after k trials n k P = 1 (1 p ) k log(1 P) = n log(1 p ) n samples are all inliers a failure failure after k trials for P=0.99 n 3 6 6 p 0.5 0.6 0.5 k 35 97 293

Example: line fitting n=2 Model fitting Measure distances

Count inliers Another trial c=3 c=3 The best model RANSAC for Homography c=15

RANSAC for Homography RANSAC for Homography Applications of panorama in VFX Spiderman 2 (background plate) Background plates Image-based lighting

Troy (image-based lighting) Project #2 Image stitching Assigned: 3/26 Due: 11:59pm 4/23 Work in pairs http://www.cgnetworks.com/story_custom.php?story_id=2195&page=4 Reference software Autostitch http://www.cs.ubc.ca/~mbrown/autostitch/autostitch.html Many others are available online. Tips for taking pictures Common focal point Rotate your camera to increase vertical FOV Tripod Fixed exposure?

Bells & whistles Recognizing panorama Bundle adjustment Handle dynamic objects Better blending techniques Artifacts Take your own pictures and generate a stitched image, be creative. http://www.cs.washington.edu/education/courses/cse590ss/01wi/projec ts/project1/students/allen/index.html Submission You have to turn in your complete source, the executable, a html report and an artifact. Report page contains: description of the project, what do you learn, algorithm, implementation details, results, bells and whistles Artifacts must be made using your own program. Reference Richard Szeliski, Image Alignment and Stitching, unpublished draft, 2005. R. Szeliski and H.-Y. Shum. Creating full view panoramic image mosaics and texture-mapped models, SIGGRAPH 1997, pp251-258. M. Brown, D. G. Lowe, Recognising Panoramas, ICCV 2003.