Determining the 2d transformation that brings one image into alignment (registers it) with another. And

Similar documents
CS770/870 Spring 2017 Transformations

Image Warping. Computational Photography Derek Hoiem, University of Illinois 09/28/17. Photo by Sean Carroll

MAN-522: COMPUTER VISION SET-2 Projections and Camera Calibration

CS4670: Computer Vision

CS559: Computer Graphics

Computer Graphics. Geometric Transformations

Computer Graphics. Geometric Transformations

Image Warping, mesh, and triangulation CSE399b, Spring 07 Computer Vision

CSE328 Fundamentals of Computer Graphics: Theory, Algorithms, and Applications

Affine and Projective Transformations

CS 2770: Intro to Computer Vision. Multiple Views. Prof. Adriana Kovashka University of Pittsburgh March 14, 2017

Modeling Transformations

Image Warping CSE399b, Spring 07 Computer Vision

CS F-07 Objects in 2D 1

Last Lecture. Edge Detection. Filtering Pyramid

3-Dimensional Viewing

How is project #1 going?

What and Why Transformations?

Warping, Morphing and Mosaics

Week 3. Topic 5 Asymptotes

Interactive Computer Graphics. Warping and morphing. Warping and Morphing. Warping and Morphing. Lecture 14+15: Warping and Morphing. What is.

Modeling Transformations

Image warping. image filtering: change range of image. image warping: change domain of image g(x) = f(h(x)) h(y)=0.5y+0.5. h([x,y])=[x,y/2] f h

CMSC 425: Lecture 10 Basics of Skeletal Animation and Kinematics

Computer Graphics. Jeng-Sheng Yeh 葉正聖 Ming Chuan University (modified from Bing-Yu Chen s slides)

Introduction to Homogeneous Transformations & Robot Kinematics

Lecture 4: Viewing. Topics:

Photo by Carl Warner

CS 335 Graphics and Multimedia. Geometric Warping

Introduction to Homogeneous Transformations & Robot Kinematics

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner

4. Two Dimensional Transformations

Geometric Image Transformations and Related Topics

Chap 7, 2009 Spring Yeong Gil Shin

Image Transformations

1. We ll look at: Types of geometrical transformation. Vector and matrix representations

Image Warping. Some slides from Steve Seitz

Computer Graphics. Si Lu. Fall er_graphics.htm 10/11/2017

Last Time. Correct Transparent Shadow. Does Ray Tracing Simulate Physics? Does Ray Tracing Simulate Physics? Refraction and the Lifeguard Problem

Geometric Model of Camera

Today s class. Geometric objects and transformations. Informationsteknologi. Wednesday, November 7, 2007 Computer Graphics - Class 5 1

3D Geometry and Camera Calibration

Lecture 1.3 Basic projective geometry. Thomas Opsahl

Image Warping : Computational Photography Alexei Efros, CMU, Fall Some slides from Steve Seitz

Multi-stable Perception. Necker Cube

Epipolar Constraint. Epipolar Lines. Epipolar Geometry. Another look (with math).

CS6670: Computer Vision

Scene Graphs & Modeling Transformations COS 426

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Fitting a transformation: Feature-based alignment April 30 th, Yong Jae Lee UC Davis

[ ] [ ] Orthogonal Transformation of Cartesian Coordinates in 2D & 3D. φ = cos 1 1/ φ = tan 1 [ 2 /1]

Image Warping. Some slides from Steve Seitz

CS770/870 Spring 2017 Transformations

Image Metamorphosis By Affine Transformations

Announcements. Equation of Perspective Projection. Image Formation and Cameras

Limitations of Thresholding

Geometric Transformations

Image warping/morphing

Prof. Feng Liu. Winter /05/2019

CSCI-4530/6530 Advanced Computer Graphics

Modeling Transformations

N-Views (1) Homographies and Projection

Lines and Their Slopes

0 COORDINATE GEOMETRY

What does OpenGL do?

CSCI-4530/6530 Advanced Computer Graphics

Image Warping. Many slides from Alyosha Efros + Steve Seitz. Photo by Sean Carroll

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Image stitching. Digital Visual Effects Yung-Yu Chuang. with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac

3D Computer Vision II. Reminder Projective Geometry, Transformations. Nassir Navab. October 27, 2009

The 3-D Graphics Rendering Pipeline

Modeling Transformations

Must first specify the type of projection desired. When use parallel projections? For technical drawings, etc. Specify the viewing parameters

Projections. Brian Curless CSE 457 Spring Reading. Shrinking the pinhole. The pinhole camera. Required:

Lesson 12: Sine 5 = 15 3

To Do. Computer Graphics (Fall 2004) Course Outline. Course Outline. Motivation. Motivation

Glossary alternate interior angles absolute value function Example alternate exterior angles Example angle of rotation Example

3D Sensing. Translation and Scaling in 3D. Rotation about Arbitrary Axis. Rotation in 3D is about an axis

M O T I O N A N D D R A W I N G

Uses of Transformations. 2D transformations Homogeneous coordinates. Transformations. Transformations. Transformations. Transformations and matrices

Transformations II. Week 2, Wed Jan 17

Modeling with CMU Mini-FEA Program

5.2. Exploring Quotients of Polynomial Functions. EXPLORE the Math. Each row shows the graphs of two polynomial functions.

Ray Tracing. Local Illumination. Object Space: Global Illumination. Image Space: Backward Ray Tracing. First idea: Forward Ray Tracing

Image Warping (Szeliski Sec 2.1.2)

I. This material refers to mathematical methods designed for facilitating calculations in matrix

of Straight Lines 1. The straight line with gradient 3 which passes through the point,2

Time To Hit The Slopes. Exploring Slopes with Similar Triangles

Systems of Linear Equations

Modeling Transformations

CS 351: Perspective Viewing

Homogeneous Coordinates

The Marching Cougars Lesson 9-1 Transformations

CS 450: COMPUTER GRAPHICS 2D TRANSFORMATIONS SPRING 2016 DR. MICHAEL J. REALE

9. f(x) = x f(x) = x g(x) = 2x g(x) = 5 2x. 13. h(x) = 1 3x. 14. h(x) = 2x f(x) = x x. 16.

But First: Multi-View Projective Geometry

Single View Geometry. Camera model & Orientation + Position estimation. What am I?

Week 10. Topic 1 Polynomial Functions

Scale Invariant Feature Transform (SIFT) CS 763 Ajit Rajwade

General Purpose Computation (CAD/CAM/CAE) on the GPU (a.k.a. Topics in Manufacturing)

Transcription:

Last two lectures: Representing an image as a weighted combination of other images. Toda: A different kind of coordinate sstem change. Solving the biggest problem in using eigenfaces? Toda Recognition b alignment: modeling the geometr of vision Homogeneous coordinates -- what s so special about? Determining the d transformation that brings one image into alignment (registers it) with another. Determining the d transformation that brings one image into alignment (registers it) with another. And Or. Determining the d transformation that brings one image into alignment (registers it) with another. Determining the d transformation that brings one image into alignment (registers it) with another.

Two parts Forward Geometric Transformation T(;θ) How one image should be warped to make another. How to interpolate data to warp one image. Moved image, I m Fied image, I f Transformed moving image, I m. It is mapped into the coordinate sstem of I f Transformation Models - A Start Translation and Independent Scaling Translation and scaling in d and d Similarit transformations in d and d Affine transformations in d and d We ve alread seen this in d: Transformations between piel and phsical coordinates Translation and scaling in the retina application In matri form: Where In homogeneous form: Similarit Transformations Components: Rotation (net slide) Translation dependent scaling Invariants Angles between vectors remain fied All lengths scale proportionall, so the ratio of lengths is preserved Eample applications: Multimodalit, intra-subject (same person) brain registration Registration of range images (no scaling) Rotations in d Assume (for now) that forward transformation is onl a rotation Image origins are in upper left corner; angles are measured clockwise with respect to ais I m I f

Similarit = Rotation, Translation and scale Affine Transformations As a result: X is (,) t Or: Geometr: Rotation, scaling (each dimension separatel), translation and shearing Invariants: Parallel lines remain parallel Ratio of lengths of segments along a line remains fied. Eample application: Mosaic construction for images of earth surface (flat surface, relativel non-oblique cameras) Affine Transformations in d Unified framework (ignore the ). In d, multipl location b arbitrar, but invertible matri: Translation + scale General affine A is an b matri. This matri product is A + t, (plus an etra row that sas =. Question, what would A look like for the similarit transform? What are homogeneous coordinates? Represent d points using numbers. Camera coordinates == Homogeneous coordinates Normal homogeneous (,) (w, w, w) Homogenous normal (a,b,c) (a/c, b/c) Wh important for vision? D coordinates are the homogeneous coordinate of their d image! canonical coordinates at the center of projection z f = in the image Origin: Blue point:

Camera coordinates == Homogeneous coordinates Camera coordinates == Homogeneous coordinates A camera identifies all points along a ra with a single image point. z Origin: in the image in space z f = Origin: in the image in space or s f = Blue point: Coordinates are equivalent up to a scale factor. Blue point: 6 9 s s s Eample coordinates Homogeneous or Projective Vanishing Points Coordinates are equivalent up to a scale factor. Points at infinit Image = 5 = 4 = - -.8 -.4 What would reasonable coordinates be for this point? Where would be located? So if m camera was facing the left filing cabinets, this point at infinit would reall be at infinit. Points at infinit Vanishing Points Translation + scale Back to math Unified framework. General affine Projective. What if ou allow ANY matri?

Projective Transformations General linear transformation Lengths, angle, and parallel lines are NOT preserved Coincidence, tangenc, and complicated ratios of lengths are the invariants Application: Mosaics of image taken b camera rotating about its optical center Mosaic images of planar surface Algebra of Projective Transformations Add non-zero bottom row to the homogeneous matri: Transformed point location: Or write out the elements of A b to make it easier So what? The above gave different was of transforming the coordinates of one image into the coordinates of another. Graphics question: Given one image, and the transformation, make the second image. Process: Take piel (,) of image, and put its color at piel T(,) in new image. Problems? Backward Transformation Because of the above, some techniques estimate the parameters of the backwards transformation, T-: From the fied image to the moving image Intensit-based algorithms generall estimate the backwards transformation And he, if our transformation is just a matri, ou don t have to work hard to find the backwards transformation. It s just the matri inverse. Mapping Piel Values - Going Backwards If ou project backward from a real piel, ou also won t land eactl on a piel??!!? (but there is a good wa of making up a value) Moving image, I m Fied image, I f Need to go backward to get piel value. This will generall not land on a single piel location. Instead ou need to do interpolation.

Use linear interpolation along the top and bottom horizontal lines to determine za and zb: za = ( f) z(i, j) + f z(i+, j) zb = ( f) z(i, j+)+ f z(i+, j+) Use linear interpolation along the vertical line between za and zb to determine z(,): z(,) = ( g) za + g zb Or, Summar of coordinate sstem transforms Images and image coordinate sstems Transformation models Forward and backward mapping Transformations: Similarit Affine Projective Non-linear and deformable (squish) z(,) = ( f) ( g) z(i, j) + f ( g) z(i+, j) + ( f) g z(i, j+) + f g z(i+, j+) Interpolation and Image Warping Eample warps. What kind? Ok ok, enough graphics Graphics question: Given one image, and the transformation, make the second image..6.68..98.6. 4.4 6.74 Vision Question: Given two images, what is the transformation between them? Solving for transformation Solving for transformation Find the T that maps points in H to points in I. The aren t, above, but suppose H and I are related b just a translation. Then what parameters are we tring to solve? How man equations do we need? Solving for a matri of unknowns What if the are affine? What if the are general projective?

Solving for transformation Net project Details online tomorrow. In the general case ou have a b matri A such that A = in homogenous coordinates. (is it reall = )? How can ou solve for A? A) Write a program which takes two images, ou click or otherwise input corresponding points, it finds their transformation and makes a mosaic. B) Choice. Either etend A to: ) find corresponding points automaticall. ) Work to combine 7 or 8 images into one mosaic. C) Choice Correct non-geometric problems Something else. Image How Registration man points do ou need? Lecture Intensities Application: Image Alignment