University of Ioannina

Slides:



Advertisements
Similar presentations
CS 691 Computational Photography Instructor: Gianfranco Doretto Image Warping.
Advertisements

Fitting a transformation: feature-based alignment Wed, Feb 23 Prof. Kristen Grauman UT-Austin.
Feature Matching and Robust Fitting Computer Vision CS 143, Brown James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe 2008 AAAI Tutorial.
Photo by Carl Warner.
Fitting a transformation: feature-based alignment
Medical Imaging Mohammad Dawood Department of Computer Science University of Münster Germany.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz
Graphics-1 Gentle Introduction to Computer Graphics (2) Based on: –David Brogan’s “Introduction to Computer Graphics” Course Slides, University of Virginia.
Lecture 8: Geometric transformations CS4670: Computer Vision Noah Snavely.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2008 Some slides from Steve Seitz
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2005 Some slides from Steve Seitz
Lecture 9: Image alignment CS4670: Computer Vision Noah Snavely
Lecture 10: Robust fitting CS4670: Computer Vision Noah Snavely.
Image warping/morphing Digital Video Special Effects Fall /10/17 with slides by Y.Y. Chuang,Richard Szeliski, Steve Seitz and Alexei Efros.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/27/11 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
Alignment and Object Instance Recognition Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/16/12.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Fitting and Registration
Robust fitting Prof. Noah Snavely CS1114
Image Stitching Ali Farhadi CSE 455
CSE 185 Introduction to Computer Vision
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Computer Vision - Fitting and Alignment
Image Warping (Szeliski 3.6.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Slides from Alexei Efros and Steve Seitz
Fitting and Registration Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/14/12.
Multimedia Programming 06: Image Warping Departments of Digital Contents Sang Il Park.
Warping CSE 590 Computational Photography Tamara Berg.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/24/15 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/23/10 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
Model Fitting Computer Vision CS 143, Brown James Hays 10/03/11 Slides from Silvio Savarese, Svetlana Lazebnik, and Derek Hoiem.
Medical Image Analysis Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Advanced Multimedia Warping & Morphing Tamara Berg.
Computer Vision - Fitting and Alignment (Slides borrowed from various presentations)
CS 2750: Machine Learning Linear Regression Prof. Adriana Kovashka University of Pittsburgh February 10, 2016.
Recap from Monday DCT and JPEG Point Processing Histogram Normalization Questions: JPEG compression levels Gamma correction.
Image Warping Many slides from Alyosha Efros + Steve Seitz + Derek oeim Photo by Sean Carroll.
CS559: Computer Graphics Lecture 7: Image Warping and Panorama Li Zhang Spring 2008 Most slides borrowed from Yungyu ChuangYungyu Chuang.
CS559: Computer Graphics Lecture 7: Image Warping and Morphing Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Lecture 14: Feature matching and Transforms CS4670/5670: Computer Vision Kavita Bala.
Image Warping 2D Geometric Transformations
Transformations University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner.
Image warping/morphing Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/3/15 with slides by Richard Szeliski, Steve Seitz and Alexei Efros.
CSE 554 Lecture 8: Alignment
Prof. Adriana Kovashka University of Pittsburgh October 3, 2016
Segmentation by fitting a model: Hough transform and least squares
Fitting a transformation: feature-based alignment
University of Ioannina
Line Fitting James Hayes.
Computational Photography Derek Hoiem, University of Illinois
Fitting a transformation: Feature-based alignment May 2nd, 2017
Homogeneous Coordinates (Projective Space)
Image Warping (Szeliski Sec 2.1.2)
Lecture 7: Image alignment
Image Warping (Szeliski Sec 2.1.2)
Image Warping : Computational Photography
CS 2750: Machine Learning Linear Regression
A special case of calibration
Recap from Friday Image Completion Synthesis Order Graph Cut Scene Completion.
Image Warping : Computational Photography
2D transformations (a.k.a. warping)
Segmentation by fitting a model: robust estimators and RANSAC
Image Registration 박성진.
Image Warping (Szeliski Sec 2.1.2)
Calibration and homographies
CS5760: Computer Vision Lecture 9: RANSAC Noah Snavely
CS5760: Computer Vision Lecture 9: RANSAC Noah Snavely
Image Stitching Linda Shapiro ECE/CSE 576.
Computational Photography Derek Hoiem, University of Illinois
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

University of Ioannina Registration T-11 Computer Vision University of Ioannina Christophoros Nikou Images and slides from: James Hayes, Brown University, Computer Vision course D. Forsyth and J. Ponce. Computer Vision: A Modern Approach, Prentice Hall, 2003. Computer Vision course by Svetlana Lazebnik, University of North Carolina at Chapel Hill. Computer Vision course by Kristen Grauman, University of Texas at Austin.

How do we fit the best alignment?

Alignment-Registration Estimate parameters of model that maps one set of points to another Typically want to solve for a global transformation that accounts for *most* true correspondences Difficulties Noise (typically 1-3 pixels) Outliers (often 50%) Many-to-one matches or multiple objects

Parametric (global) warping p = (x,y) p’ = (x’,y’) Transformation T is a coordinate-changing machine: p’ = T(p) What does it mean that T is global? It is the same for any point p It can be described by just a few numbers (parameters) For linear transformations, we can represent T as a matrix p’ = Tp

Common transformations original scaling translation rotation affine perspective Slide credit (next few slides): A. Efros and/or S. Seitz

Scaling Scaling a coordinate means multiplying each of its components by a scalar Uniform scaling means this scalar is the same for all components:  2

Scaling Non-uniform scaling: different scalars per component: x  2, y 0.5

Scaling Scaling operation: Or, in matrix form: scaling matrix S

θ 2-D Rotation (x’, y’) (x, y) x’ = x cosθ - y sinθ y’ = x sinθ + y cosθ

2-D Rotation R This is easy to capture in matrix form: Even though sinθ and cosθ are nonlinear functions of θ, x’ is a linear combination of x and y y’ is a linear combination of x and y What is the inverse transformation? Rotation by θ For rotation matrices R

Basic 2D transformations Scaling Shearing Rotation Translation Affine is any combination of translation, scale, rotation, shear Affine

Affine Transformations Affine transformations are combinations of Linear transformations, and Translations Properties of affine transformations: Lines map to lines Parallel lines remain parallel Ratios are preserved Closed under composition or Ratios of distances along straight lines are preserved

Projective Transformations Projective transformations are combos of Affine transformations, and Projective warps Properties of projective transformations: Lines map to lines Parallel lines do not necessarily remain parallel Ratios are not preserved Closed under composition Models change of basis Projective matrix is defined up to a scale (8 DOF)

2D image transformations (reference table) Szeliski 2.1

Example: solving for translation B1 B2 B3 Given matched points in {A} and {B}, estimate the translation of the object

Example: solving for translation (tx, ty) B1 B2 B3 Least squares solution Write down objective function Derived solution Compute derivative Compute solution Computational solution a) Write in form Ax=b b) Solve using pseudo-inverse

Example: solving for translation B4 B1 B2 B3 (tx, ty) A4 B5 Problem: outliers RANSAC solution Sample a set of matching points (1 pair) Solve for transformation parameters Score parameters with number of inliers Repeat steps 1-3 N times

Example: solving for translation B4 B5 B6 A1 A2 A3 B1 B2 B3 (tx, ty) A4 A5 A6 Problem: outliers, multiple objects, and/or many-to-one matches Hough transform solution Initialize a grid of parameter values Each matched pair casts a vote for consistent values Find the parameters with the most votes Solve using least squares with inliers

Example: solving for translation (tx, ty) Problem: no initial guesses for correspondence

What if you want to align but have no prior matched pairs? Hough transform and RANSAC not applicable Important applications Medical imaging: match brain scans or contours Robotics: match point clouds

Iterative Closest Points (ICP) Algorithm Goal: estimate the transformation between two dense sets of points Initialize transformation (e.g., compute difference in means and scale) Assign each point in {Set 1} to its nearest neighbor in {Set 2} Estimate transformation parameters e.g., least squares or robust least squares Transform the points in {Set 1} using estimated parameters Repeat steps 2-4 until change is very small

Example: aligning boundaries   q p

Example: solving for translation (tx, ty) Problem: no initial guesses for correspondence ICP solution Find nearest neighbors for each point Compute transform using matches Move points using transform Repeat steps 1-3 until convergence

Registration of multimodal images What if the images are not acquired by the same acquisition system (e.g. medical images MRI, CT, PET, SPECT,…) Hypothesis: each tissue has a distinct gray value in each image modality (not necessarily the same) When the images are correctly registered, knowing the value of the tissue in one image reveals the value of the tissue in the second image

Mutual information The joint probability of intensities of the two images should be high This may be expressed by the mutual information of the two images considered as random variables: Recall that the entropy is given by:

Mutual information You can view this as the extent to which knowing the value of Y reduces the uncertainty about the value of X In other words, what does Y convey about X Registration may be achieved by maximizing the mutual information

Algorithm Summary Least Squares Fit Robust Least Squares closed form solution robust to noise not robust to outliers Robust Least Squares improves robustness to noise requires iterative optimization Hough transform robust to noise and outliers can fit multiple models only works for a few parameters (1-4 typically) RANSAC works with a moderate number of parameters (e.g, 1-8) Iterative Closest Point (ICP) For local alignment only: does not require initial correspondences