Lecture 10: Cameras CS4670: Computer Vision Noah Snavely Source: S. Lazebnik.

Slides:



Advertisements
Similar presentations
Summary of Friday A homography transforms one 3d plane to another 3d plane, under perspective projections. Those planes can be camera imaging planes or.
Advertisements

The Camera : Computational Photography Alexei Efros, CMU, Fall 2006.
776 Computer Vision Jared Heinly Spring 2014 (slides borrowed from Jan-Michael Frahm, Svetlana Lazebnik, and others)
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...
Announcements. Projection Today’s Readings Nalwa 2.1.
1 Model Fitting Hao Jiang Computer Science Department Oct 8, 2009.
Fitting. We’ve learned how to detect edges, corners, blobs. Now what? We would like to form a higher-level, more compact representation of the features.
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2005 with a lot of slides stolen from Steve Seitz and.
Announcements Mailing list Project 1 test the turnin procedure *this week* (make sure it works) vote on best artifacts in next week’s class Project 2 groups.
Fitting a Model to Data Reading: 15.1,
Lecture 4a: Cameras CS6670: Computer Vision Noah Snavely Source: S. Lazebnik.
Lecture 12: Projection CS4670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Lecture 3a: Feature detection and matching CS6670: Computer Vision Noah Snavely.
Lecture 8: Image Alignment and RANSAC
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2006 with a lot of slides stolen from Steve Seitz and.
The Camera : Computational Photography Alexei Efros, CMU, Fall 2008.
Lecture 10: Robust fitting CS4670: Computer Vision Noah Snavely.
Computing transformations Prof. Noah Snavely CS1114
Perspective projection
Fitting.
Feature Matching and RANSAC : Computational Photography Alexei Efros, CMU, Fall 2005 with a lot of slides stolen from Steve Seitz and Rick Szeliski.
Northeastern University, Fall 2005 CSG242: Computational Photography Ramesh Raskar Mitsubishi Electric Research Labs Northeastern University September.
Robust fitting Prof. Noah Snavely CS1114
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.
Computer Vision - Fitting and Alignment
Lecture 12: Image alignment CS4670/5760: Computer Vision Kavita Bala
Advanced Computer Vision Feature-based Alignment Lecturer: Lu Yi & Prof. Fuh CSIE NTU.
Recap from Wednesday Two strategies for realistic rendering capture real world data synthesize from bottom up Both have existed for 500 years. Both are.
Fitting & Matching Lecture 4 – Prof. Bregler Slides from: S. Lazebnik, S. Seitz, M. Pollefeys, A. Effros.
Example: line fitting. n=2 Model fitting Measure distances.
EECS 274 Computer Vision Model Fitting. Fitting Choose a parametric object/some objects to represent a set of points Three main questions: –what object.
Computer Vision - Fitting and Alignment (Slides borrowed from various presentations)
Fitting image transformations Prof. Noah Snavely CS1114
Robust Estimation Course web page: vision.cis.udel.edu/~cv April 23, 2003  Lecture 25.
Fitting.
Lecture 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
Hough Transform CS 691 E Spring Outline Hough transform Homography Reading: FP Chapter 15.1 (text) Some slides from Lazebnik.
Invariant Local Features Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging.
Grouping and Segmentation. Sometimes edge detectors find the boundary pretty well.
776 Computer Vision Jan-Michael Frahm Spring 2012.
PNU Machine Vision Lecture 2a: Cameras Source: S. Lazebnik.
CS5670: Computer Vision Lecture 9: Cameras Noah Snavely
University of Ioannina
Fitting a transformation: feature-based alignment
The Camera : Computational Photography
A Brief Introduction of RANSAC
Lecture 7: Image alignment
RANSAC and mosaic wrap-up
A special case of calibration
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
Features Readings All is Vanity, by C. Allan Gilbert,
Object recognition Prof. Graeme Bailey
CS4670 / 5670: Computer Vision Lecture 12: Cameras Noah Snavely
Lecture 13: Cameras and geometry
The Camera : Computational Photography
Feature Matching and RANSAC
Announcements Midterm out today Project 1 demos.
Lecture 8: Image alignment
Lecture 8: Image alignment
Computational Photography
Calibration and homographies
Announcements Midterm out today Project 1 demos.
CS5760: Computer Vision Lecture 9: RANSAC Noah Snavely
CS5760: Computer Vision Lecture 9: RANSAC Noah Snavely
Image Stitching Linda Shapiro ECE/CSE 576.
Lecture 11: Image alignment, Part 2
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Lecture 10: Cameras CS4670: Computer Vision Noah Snavely Source: S. Lazebnik

Reading Szeliski

Announcements Project 2a: extended to Wednesday, October 6, at 8:59pm – Dominant orientation: you can either compute the maximum eigenvector, or the smoothed gradient (as in the MOPs paper) – Scale-space detection not required – You can use any OpenCV routine that duplicates what you did for P1 (cvSmooth, cvSobel, cvFilter) – Black Harris images: you may need to multiply the image by some large constant to see the Harris values

RANSAC Back to linear regression How do we generate a hypothesis? x y

RANSAC x y Back to linear regression How do we generate a hypothesis?

RANSAC General version: 1.Randomly choose s samples Typically s = minimum sample size that lets you fit a model 2.Fit a model (e.g., line) to those samples 3.Count the number of inliers that approximately fit the model 4.Repeat N times 5.Choose the model that has the largest set of inliers

How many rounds? If we have to choose s samples each time – with an outlier ratio e – and we want the right answer with probability p proportion of outliers e s5%10%20%25%30%40%50% Source: M. Pollefeys p = 0.99

How big is s? For alignment, depends on the motion model – Here, each sample is a correspondence (pair of matching points)

RANSAC pros and cons Pros – Simple and general – Applicable to many different problems – Often works well in practice Cons – Parameters to tune – Sometimes too many iterations are required – Can fail for extremely low inlier ratios – We can often do better than brute-force sampling

Final step: least squares fit Find average translation vector over all inliers

RANSAC An example of a “voting”-based fitting scheme Each hypothesis gets voted on by each data point, best hypothesis wins There are many other types of voting schemes – E.g., Hough transforms…

Hough transform  

Panoramas Now we know how to create panoramas! Given two images: – Step 1: Detect features – Step 2: Match features – Step 3: Compute a homography using RANSAC – Step 4: Combine the images together (somehow) What if we have more than two images?

Can we use homographies to create a 360 panorama? In order to figure this out, we need to learn what a camera is

360 panorama

Questions?

Image formation Let’s design a camera – Idea 1: put a piece of film in front of an object – Do we get a reasonable image?

Pinhole camera Add a barrier to block off most of the rays – This reduces blurring – The opening known as the aperture – How does this transform the image?

Camera Obscura Basic principle known to Mozi ( BC), Aristotle ( BC) Drawing aid for artists: described by Leonardo da Vinci ( ) Gemma Frisius, 1558 Source: A. Efros

Camera Obscura

Home-made pinhole camera Why so blurry? Slide by A. Efros

Pinhole photography Justin Quinnell, The Clifton Suspension Bridge. December 17th June 21st month exposure

Shrinking the aperture Why not make the aperture as small as possible? Less light gets through Diffraction effects...

Shrinking the aperture

Adding a lens A lens focuses light onto the film – There is a specific distance at which objects are “in focus” other points project to a “circle of confusion” in the image – Changing the shape of the lens changes this distance “circle of confusion”