Advanced Computer Vision Feature-based Alignment Lecturer: Lu Yi & Prof. Fuh CSIE NTU.

Slides:



Advertisements
Similar presentations
Recognising Panoramas M. Brown and D. Lowe, University of British Columbia.
Advertisements

Summary of Friday A homography transforms one 3d plane to another 3d plane, under perspective projections. Those planes can be camera imaging planes or.
Chapter 6 Feature-based alignment Advanced Computer Vision.
Multi-model Estimation with J-linkage Jeongkyun Lee.
Image alignment Image from
776 Computer Vision Jared Heinly Spring 2014 (slides borrowed from Jan-Michael Frahm, Svetlana Lazebnik, and others)
Image alignment Image from
ACM Multimedia 2008 Feng Liu 1, Yuhen-Hu 1,2 and Michael Gleicher 1.
Mosaics con’t CSE 455, Winter 2010 February 10, 2010.
Multiple View Geometry
Recognising Panoramas
Direct Methods for Visual Scene Reconstruction Paper by Richard Szeliski & Sing Bing Kang Presented by Kristin Branson November 7, 2002.
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.
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Automatic Panoramic Image Stitching using Local Features Matthew Brown and David Lowe, University of British Columbia.
Geometric Optimization Problems in Computer Vision.
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Automatic Image Stitching using Invariant Features Matthew Brown and David Lowe, University of British Columbia.
Fitting a Model to Data Reading: 15.1,
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.
Lecture 10: Robust fitting CS4670: Computer Vision Noah Snavely.
Computing transformations Prof. Noah Snavely CS1114
Fitting.
CSE 473/573 RANSAC & Least Squares Devansh Arpit.
Robust fitting Prof. Noah Snavely CS1114
Automatic Camera Calibration
Image Stitching Ali Farhadi CSE 455
CSE 185 Introduction to Computer Vision
Chapter 6 Feature-based alignment Advanced Computer Vision.
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Final Exam Review CS485/685 Computer Vision Prof. Bebis.
Image Stitching Shangliang Jiang Kate Harrison. What is image stitching?
Last Lecture (optical center) origin principal point P (X,Y,Z) p (x,y) x y.
The Brightness Constraint
Fitting & Matching Lecture 4 – Prof. Bregler Slides from: S. Lazebnik, S. Seitz, M. Pollefeys, A. Effros.
Image stitching Digital Visual Effects Yung-Yu Chuang with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac.
Example: line fitting. n=2 Model fitting Measure distances.
CSCE 643 Computer Vision: Structure from Motion
Computer Vision : CISC 4/689 Going Back a little Cameras.ppt.
Advanced Computer Vision CH6. Feature-based Alignment
EECS 274 Computer Vision Geometric Camera Calibration.
EECS 274 Computer Vision Model Fitting. Fitting Choose a parametric object/some objects to represent a set of points Three main questions: –what object.
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
Fitting image transformations Prof. Noah Snavely CS1114
776 Computer Vision Jan-Michael Frahm Spring 2012.
Fitting.
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
COS 429 PS3: Stitching a Panorama Due November 10 th.
CSCI 631 – Foundations of Computer Vision March 15, 2016 Ashwini Imran Image Stitching.
EE 7730 Parametric Motion Estimation. Bahadir K. Gunturk2 Parametric (Global) Motion Affine Flow.
Invariant Local Features Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging.
CSCI 631 – Foundations of Computer Vision March 15, 2016 Ashwini Imran Image Stitching Link: singhashwini.mesinghashwini.me.
776 Computer Vision Jan-Michael Frahm Spring 2012.
A Brief Introduction of RANSAC
Lecture 7: Image alignment
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
Lecture 8: Image alignment
Lecture 8: Image alignment
Computational Photography
Calibration and homographies
Back to equations of geometric transformations
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:

Advanced Computer Vision Feature-based Alignment Lecturer: Lu Yi & Prof. Fuh CSIE NTU

Content Pre-requisites: mainly about camera model Alignment Algorithm RANdom Sample Consensus (RANSAC) Pose Estimation

Sources EGGN 512 – Computer Vision course by Prof. Willliam Hoff Digital Visual Effects course by Prof. Yung-Yu Chuang Both are highly recommended

Taught Way Cover the main parts of textbook chapter 6 Lecture mostly depended on EGGN 512 course videos

Frames of Reference Image frames are 2D; other are 3D The “pose” (position and orientation) of a 3D rigid body has 6 degrees of freedom

Pre-requisites Image Formation Geometric Transformations (2D-2D, 3D-3D, 3D-2D) Camera Model (Camera Matrix = Intrinsic + Extrinsic camera matrix) All related contents are in textbook chapter 2: Image formation

Pre-requisites Review 1.Projective Transformation 2.Camera Matrix EGGN 512 – Lecture 5-1 3D-2D Transforms L4B3F8D4A5CAD8DA3 L4B3F8D4A5CAD8DA3 EGGN 512 – Lecture 5-2 3D-2D Transforms CAD8DA3 CAD8DA3

Alignment Algorithm EGGN 512 – Lecture 14-1 Alignment 8DA3 8DA3 EGGN 512 – Lecture 14-2 Alignment 8DA3 8DA3 EGGN 512 – Lecture 14-3 Alignment DA3 DA3 Slides AlignmentNonlinear.pdf AlignmentNonlinear.pdf

Alignment Algorithm Feature-based methods: only use feature points to estimate parameters Features: SIFT, SURF, Harris.etc.

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 For example, assume M is a 2x2 matrix Find M with the least square error

Determine pairwise alignment Overdetermined system

Normal Equation Given an overdetermined system the normal equation is that which minimizes the sum of the square differences between left and right sides Why?

Normal Equation n x m, n equations, m variables

Normal Equation

Determine pairwise alignment p’=Mp, where M is a transformation matrix, p and p’ are feature matches For translation model, it is easier. What if the match is false? Avoid impact of outliers. (Ans: RANSAC)

Application: Image Stitching Stitching = alignment + blending geometrical registration photometric registration

Application: Image Stitching Panorama – the whole picture Compact Camera FOV = 50 x 35°

Application: Image Stitching Panorama – the whole picture Compact Camera FOV = 50 x 35° Human FOV = 200 x 135°

Application: Image Stitching Panorama – the whole picture Compact Camera FOV = 50 x 35° Human FOV = 200 x 135° Panoramic Mosaic = 360 x 180°

Application: Image Stitching Example:

Application: Face Alignment Face alignment is the key preprocessing step for face recognition

Application: Face Alignment Examples from LFW dataset :

RANSAC Algorithm RANSAC = RANdom Sample Consensus An iterative method to estimate parameters of a mathematical model from a set of observed data which contains outliers [Wiki] Compare to robust statistics Given N data points x i, assume that majority of them are generated from a model with parameters , try to recover . Fischler, M. A., & Bolles, R. C. (1981). Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM, 24(6),

RANSAC Algorithm Run k times: (1) draw n samples randomly (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 many times? How big? Smaller is better How to define? Depends on the problem.

RANSAC Algorithm (How to determine K) p : probability of real inliers P : probability of success after k trials n samples are all inliers a failure failure after k trials npk for P=0.99

RANSAC Algorithm (Example: line fitting)

n=2

RANSAC Algorithm (Example: line fitting)

c=3

RANSAC Algorithm (Example: line fitting) c=3

RANSAC Algorithm (Example: line fitting) c=15

RANSAC Algorithm EGGN 512 – Lecture 27-1 RANSAC 5CAD8DA3&index=54 5CAD8DA3&index=54

RANSAC Algorithm (Example: Homography)

Pose Estimation EGGN 512 – Lecture 16-1 Pose Estimation CAD8DA3 CAD8DA3 EGGN 512 – Lecture 17-1 Pose from Lines 5CAD8DA3 5CAD8DA3

Pose Estimation EGGN 512 – Lecture 18-1 SVD AD8DA3 AD8DA3 EGGN 512 – Lecture 18-2 SVD AD8DA3 AD8DA3

Pose Estimation EGGN 512 – Lecture 19-1 Linear Pose Estimation CAD8DA3 CAD8DA3 EGGN 512 – Lecture 19-2 Linear Pose Estimation AD8DA3 AD8DA3 EGGN 512 – Lecture 19-3 Linear Pose Estimation 3Xfn1M&list=PL4B3F8D4A5CAD8DA3 3Xfn1M&list=PL4B3F8D4A5CAD8DA3

END