Last Lecture (optical center) origin principal point P (X,Y,Z) p (x,y) x y.

Slides:



Advertisements
Similar presentations
Last 4 lectures Camera Structure HDR Image Filtering Image Transform.
Advertisements

RANSAC and mosaic wrap-up cs129: Computational Photography James Hays, Brown, Fall 2012 © Jeffrey Martin (jeffrey-martin.com) most slides from Steve Seitz,
More Mosaic Madness : Computational Photography Alexei Efros, CMU, Fall 2011 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen from.
RANSAC and mosaic wrap-up cs195g: Computational Photography James Hays, Brown, Spring 2010 © Jeffrey Martin (jeffrey-martin.com) most slides from Steve.
Computer vision: models, learning and inference
Chapter 6 Feature-based alignment Advanced Computer Vision.
Image alignment Image from
Features CSE 455, Winter 2010 February 1, Neel Joshi, CSE 455, Winter Review From Last Time.
Mosaics con’t CSE 455, Winter 2010 February 10, 2010.
Announcements Project 2 Out today Sign up for a panorama kit ASAP! –best slots (weekend) go quickly...
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
Motion Analysis (contd.) Slides are from RPI Registration Class.
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.
Announcements Project 2 questions Midterm out on Thursday
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Uncalibrated Epipolar - Calibration
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 20: Light, color, and reflectance CS6670: Computer Vision Noah Snavely.
Image Stitching and Panoramas
Panorama signups Panorama project issues? Nalwa handout Announcements.
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.
Single-view geometry Odilon Redon, Cyclops, 1914.
Panoramas and Calibration : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Rick Szeliski.
Camera Calibration from Planar Patterns Homework 2 Help SessionCS223bStanford University Mitul Saha (courtesy: Jean-Yves Bouguet, Intel)
CSE 576, Spring 2008Projective Geometry1 Lecture slides by Steve Seitz (mostly) Lecture presented by Rick Szeliski.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Today: Calibration What are the camera parameters?
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.
Projective Geometry and Single View Modeling CSE 455, Winter 2010 January 29, 2010 Ames Room.
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
Automatic Camera Calibration
Image Stitching Ali Farhadi CSE 455
Chapter 6 Feature-based alignment Advanced Computer Vision.
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Advanced Computer Vision Feature-based Alignment Lecturer: Lu Yi & Prof. Fuh CSIE NTU.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Camera calibration Digital Visual Effects Yung-Yu Chuang with slides by Richard Szeliski, Steve Seitz,, Fred Pighin and Marc Pollefyes.
Image stitching Digital Visual Effects Yung-Yu Chuang with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac.
Project 2 –contact your partner to coordinate ASAP –more work than the last project (> 1 week) –you should have signed up for panorama kitssigned up –sign.
EECS 274 Computer Vision Geometric Camera Calibration.
Mosaics part 3 CSE 455, Winter 2010 February 12, 2010.
Last Two Lectures Panoramic Image Stitching
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Project 2 went out on Tuesday You should have a partner You should have signed up for a panorama kit Announcements.
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Homographies and Mosaics : Computational Photography Alexei Efros, CMU, Fall 2006 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen.
Lecture 16: Image alignment
Geometric Camera Calibration
CS4670 / 5670: Computer Vision Kavita Bala Lecture 20: Panoramas.
More Mosaic Madness © Jeffrey Martin (jeffrey-martin.com)
COSC579: Image Align, Mosaic, Stitch
Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/4/17
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/4/19
Digital Visual Effects, Spring 2008 Yung-Yu Chuang 2008/4/15
RANSAC and mosaic wrap-up
More Mosaic Madness : Computational Photography
Real-Time Image Mosaicing
More Mosaic Madness © Jeffrey Martin (jeffrey-martin.com)
Announcements Project 2 out today (help session at end of class)
Digital Visual Effects Yung-Yu Chuang
Image Stitching Computer Vision CS 678
Projective geometry Readings
More Mosaic Madness © Jeffrey Martin (jeffrey-martin.com)
Lecture 8: Image alignment
Image Stitching Linda Shapiro ECE/CSE 576.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Last Lecture (optical center) origin principal point P (X,Y,Z) p (x,y) x y

Camera calibration

Estimate both intrinsic and extrinsic parameters Mainly, two categories: 1.Using objects with known geometry as reference 2.Self calibration (structure from motion)

One app of camera pose application Virtual gaming – pla_ fb f0-d07339dc16a1

Camera calibration approaches Directly estimate 11 unknowns in the M matrix using known 3D points (Xi,Yi,Zi) and measured feature positions (ui,vi)

Linear regression

Solve for Projection Matrix M using least- square techniques

Normal equation (Geometric Interpretation) Given an overdetermined system the normal equation is that which minimizes the sum of the square differences between left and right sides

Normal equation (Differential Interpretation) n x m, n equations, m variables

Normal equation Carl Friedrich Gauss

Any issues with the method?

Nonlinear optimization A probabilistic view of least square Feature measurement equations Likelihood of M given {(u i,v i )}

Optimal estimation Log likelihood of M given {(u i,v i )} It is a least square problem (but not necessarily linear least square) How do we minimize C?

Nonlinear least square methods

Least square fitting number of data points number of parameters

Nonlinear least square fitting

Function minimization It is very hard to solve in general. Here, we only consider a simpler problem of finding local minimum. Least square is related to function minimization.

Function minimization

Quadratic functions Approximate the function with a quadratic function within a small neighborhood

Function minimization

Computing gradient and Hessian Gradient Hessian

Computing gradient and Hessian Gradient Hessian

Computing gradient and Hessian Gradient Hessian

Computing gradient and Hessian Gradient Hessian

Computing gradient and Hessian Gradient Hessian

Searching for update h GradientHessian Idea 1: Steepest Descent

Steepest descent method isocontourgradient

Steepest descent method It has good performance in the initial stage of the iterative process. Converge very slow with a linear rate.

Searching for update h GradientHessian Idea 2: minimizing the quadric directly Converge faster but needs to solve the linear system

Recap: Calibration Directly estimate 11 unknowns in the M matrix using known 3D points (Xi,Yi,Zi) and measured feature positions (ui,vi) Camera Model:

Recap: Calibration Directly estimate 11 unknowns in the M matrix using known 3D points (Xi,Yi,Zi) and measured feature positions (ui,vi) Linear Approach:

Recap: Calibration Directly estimate 11 unknowns in the M matrix using known 3D points (Xi,Yi,Zi) and measured feature positions (ui,vi) NonLinear Approach:

Practical Issue is hard to make and the 3D feature positions are difficult to measure!

A popular calibration tool

Multi-plane calibration Images courtesy Jean-Yves Bouguet, Intel Corp. Advantage Only requires a plane Don’t have to know positions/orientations Good code available online! –Intel’s OpenCV library: –Matlab version by Jean-Yves Bouget: –Zhengyou Zhang’s web site:

Step 1: data acquisition

Step 2: specify corner order

Step 3: corner extraction

Step 4: minimize projection error

Step 4: camera calibration

Step 5: refinement

Next Image Mosaics and Panorama Today’s Readings –Szeliski and Shum paper Full screen panoramas (cubic): Mars: New Years Eve:

Why Mosaic? Are you getting the whole picture? –Compact Camera FOV = 50 x 35° Slide from Brown & Lowe

Why Mosaic? Are you getting the whole picture? –Compact Camera FOV = 50 x 35° –Human FOV = 200 x 135° Slide from Brown & Lowe

Why Mosaic? Are you getting the whole picture? –Compact Camera FOV = 50 x 35° –Human FOV = 200 x 135° –Panoramic Mosaic = 360 x 180° Slide from Brown & Lowe

Mosaics: stitching images together Creating virtual wide-angle camera

Auto Stitch: the State of Art Method Demo Project 2 is a striped-down AutoStitch

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

Geometric Interpretation of Mosaics Image 1 Image 2 If we capture all the 360º rays in different images, we can assemble them into a panorama. The basic operation is projecting an image from one plane to another The projective transformation is scene-INDEPENDENT Optical Center

What is the transformation? Translations are not enough to align the images left on topright on top