Translations. Geometric Image Transformations. Two-Dimensional Geometric Transforms. Groups and Composition

Similar documents
6.837 LECTURE 7. Lecture 7 Outline Fall '01. Lecture Fall '01

2D Transforms. Lecture 4 CISC440/640 Spring Department of Computer and Information Science

Imaging and 2D Transforms

Image Transforms & Warps. 9/25/08 Comp 665 Image Transforms & Warps 1

Vector Algebra Transformations. Lecture 4

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

Image warping , , Computational Photography Fall 2017, Lecture 10

Graphics Pipeline 2D Geometric Transformations

Geometric transformations in 3D and coordinate frames. Computer Graphics CSE 167 Lecture 3

Homogeneous Coordinates. Lecture18: Camera Models. Representation of Line and Point in 2D. Cross Product. Overall scaling is NOT important.

Lecture 4: Transforms. Computer Graphics CMU /15-662, Fall 2016

CSE528 Computer Graphics: Theory, Algorithms, and Applications

CS6670: Computer Vision

CSE328 Fundamentals of Computer Graphics

Lecture 5 2D Transformation

Geometric Transformations

calibrated coordinates Linear transformation pixel coordinates

2D/3D Geometric Transformations and Scene Graphs

CS4670: Computer Vision

The 3-D Graphics Rendering Pipeline

Computer Graphics Hands-on

Computer Graphics: Geometric Transformations

Specifying Complex Scenes

CS380: Computer Graphics 2D Imaging and Transformation. Sung-Eui Yoon ( 윤성의 ) Course URL:

Boardworks Ltd KS3 Mathematics. S1 Lines and Angles

Final Exam 1:15-3:15 pm Thursday, December 13, 2018

I can identify reflections, rotations, and translations. I can graph transformations in the coordinate plane.

Introduction to Geometric Algebra Lecture VI

Today. Today. Introduction. Matrices. Matrices. Computergrafik. Transformations & matrices Introduction Matrices

Computer Vision Projective Geometry and Calibration. Pinhole cameras

THE VIEWING TRANSFORMATION

EM225 Projective Geometry Part 2

Models and The Viewing Pipeline. Jian Huang CS456

TRANSFORMATIONS AND CONGRUENCE

Today. Parity. General Polygons? Non-Zero Winding Rule. Winding Numbers. CS559 Lecture 11 Polygons, Transformations

Geometry Assessment. Eligible Texas Essential Knowledge and Skills

Chapter 2 - Basic Mathematics for 3D Computer Graphics

COMP 558 lecture 19 Nov. 17, 2010

Camera model and multiple view geometry

Graphics and Interaction Transformation geometry and homogeneous coordinates

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

DD2429 Computational Photography :00-19:00

Computer Vision I - Algorithms and Applications: Multi-View 3D reconstruction

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS

Grade 10 Geometry 3 rd Nine Weeks Pacing Guide

CS 4204 Computer Graphics

Auto-calibration. Computer Vision II CSE 252B

Homework #1. Displays, Alpha Compositing, Image Processing, Affine Transformations, Hierarchical Modeling

N-Views (1) Homographies and Projection

This blog addresses the question: how do we determine the intersection of two circles in the Cartesian plane?

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)

Visual Recognition: Image Formation

Credit: UTokyo Online Education, GFK Series 2016 TSUBOI, Takashi

Introduction to Transformations. In Geometry

1 Affine and Projective Coordinate Notation

3D Mathematics. Co-ordinate systems, 3D primitives and affine transformations

Pin Hole Cameras & Warp Functions

Chapter 3: Kinematics Locomotion. Ross Hatton and Howie Choset

Lecture notes: Object modeling

Kinematics of the Stewart Platform (Reality Check 1: page 67)

A Correlation of Pearson Mathematics Geometry Common Core, 2015 To the Missouri Learning Standards for Mathematics Geometry

CSE 167: Introduction to Computer Graphics Lecture #3: Projection. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

B ABC is mapped into A'B'C'

CS452/552; EE465/505. Geometry Transformations

Chapter 5. Projections and Rendering

The basics of rigidity

Geometric Modeling of Curves

Image warping and stitching

Transformations. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Camera models and calibration

CHAPTER 3. Single-view Geometry. 1. Consequences of Projection

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

Agenda. Rotations. Camera models. Camera calibration. Homographies

2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into

(Refer Slide Time: 00:04:20)

Glossary of dictionary terms in the AP geometry units

Scope and Sequence for the Maryland Voluntary State Curriculum for Mathematics

Perspective Mappings. Contents

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor

Geometric transformations assign a point to a point, so it is a point valued function of points. Geometric transformation may destroy the equation

1. POINTS, LINES, AND ANGLES

Surface shading: lights and rasterization. Computer Graphics CSE 167 Lecture 6

Simple Formulas for Quasiconformal Plane Deformations

A Correlation of. To the. New York State Next Generation Mathematics Learning Standards Geometry

Big Mathematical Ideas and Understandings

window World space (Object space)

CS184, Fall 1997 Midterm #1 Professor Brian A. Barksy

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

Image warping and stitching

XPM 2D Transformations Week 2, Lecture 3

Assignment 2 : Projection and Homography

Game Mathematics. (12 Week Lesson Plan)

Camera calibration. Robotic vision. Ville Kyrki

TImath.com. Geometry. Reflections and Rotations. Time required 45 minutes ID: 8286

Unit Activity Correlations to Common Core State Standards. Geometry. Table of Contents. Geometry 1 Statistics and Probability 8

Computer Vision I - Appearance-based Matching and Projective Geometry

Connected Components of Underlying Graphs of Halving Lines

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

DRAFT: Analysis of Skew Tensegrity Prisms

CS602 MCQ,s for midterm paper with reference solved by Shahid

Transcription:

Geometric Image Transformations Algebraic Groups Euclidean Affine Projective Bovine Translations Translations are a simple family of two-dimensional transforms. Translations were at the heart of our Sprite implementations in Project #1. Translations have the following form x' = x + t x y' = y + t y For every translation there exists an inverse function which undoes the translation. In our case the inverse looks like: x = x' - t x y = y' - t y There also exists a special translation, called the identity, that leaves every point unchanged. x' = x + 0 y' = y + 0 Lecture 7 Slide 1 6.837 Fall '00 Lecture 7 Slide 3 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide01.html [10/3/2000 1:10:48 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide03.html [10/3/2000 1:10:55 PM] Two-Dimensional Geometric Transforms Geometric transforms are functions that map points from one place to another Geometric transforms can be applyed to drawing primitives (lines, conics, triangles) pixel coordinates of an image (or sprites) For Translations: Groups and Composition 1. There exists an inverse mapping for each function 2. There exists an identity mapping These properties might seem trivial at first glance, but they are actually very important, because when these conditions are shown for any class of functions it can be proven that such a class is closed under composition (i.e. any series of translations can be composed to a single translation). In mathematical parlance this the same as saying that translations form an algebraic group. We'll begin with simple transforms and generalize them. Lecture 7 Slide 2 6.837 Fall '00 Lecture 7 Slide 4 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide02.html [10/3/2000 1:10:54 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide04.html [10/3/2000 1:10:56 PM]

Rotations Another group of 2-transforms are the rotations about the origin. Problems with this Form Must consider Translation and Rotation separately Computing the inverse transform involves multiple steps Order matters between the R and T parts These problem can be remedied by considering our 2 dimensional image plane as a 2D subspace within 3D. Lecture 7 Slide 5 6.837 Fall '00 Lecture 7 Slide 7 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide05.html [10/3/2000 1:10:58 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide07.html [10/3/2000 1:11:01 PM] Euclidean Transforms The union of translations and rotation functions defines the Euclidean Set Choose a Subspace We can use any planar subspace as long as it does not contain the origin WLOG assume the our 2D space of points lies on the 3D plane z = 1 Now we can express all Euclidean Transforms in matrix form: Properties of Euclidean Transformations: They preserve distances They preserve angles How do you represent these functions? This gives us a three parameter group of Transformations. Lecture 7 Slide 6 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide06.html [10/3/2000 1:10:59 PM] Lecture 7 Slide 8 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide08.html [10/3/2000 1:11:03 PM]

Playing with Euclidean Transforms Playing with Similitude Transforms In what order are the translation and rotation performed? Will this family of transforms always generate points on our choosen 3-D plane? Why? Adds reflections Scales in x and y must be the same. Why? Order? Will this family of transforms always generate points on our choosen 3-D plane? Why? Lecture 7 Slide 9 6.837 Fall '00 Lecture 7 Slide 11 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide09.html [10/3/2000 1:11:04 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide11.html [10/3/2000 1:11:07 PM] Similitude Transforms We can define a 4-parameter superset of Euclidean Transforms with additional capabilities Affine Transformations A 6-parameter group of transforms Properties of Similtudes: Distance between any 2 points are changed by a fixed ratio Angles are preserved Maintains "similar" shape (similar triangles, circles map to circles, etc) Lecture 7 Slide 10 6.837 Fall '00 Lecture 7 Slide 12 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide10.html [10/3/2000 1:11:06 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide12.html [10/3/2000 1:11:08 PM]

Affine Properties Determining Affine Transforms The coordinates of three corresponding points uniquely determine and Affine Transform To the right is a simple illustration of how we can map our parameters into a four arbitrary numbers Properties of Affine Transforms: They perserve our selected plane (sometimes called the Affine plane) They preserve parallel lines If we know where we would like at least three points to map to, we can solve for an Affine transform that will give this mapping. Lecture 7 Slide 13 6.837 Fall '00 Lecture 7 Slide 15 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide13.html [10/3/2000 1:11:10 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide15.html [10/3/2000 1:11:12 PM] Playing with Affine Transforms Solution Method σ x scales the x-dimension σ y scales the y-dimension σ xy is often called the skew parameter We've used this technique several times now. We set up 6 linear equations in terms of our 6 unknown values. In this case, we know the coordinates before and after the mapping, and we wish to solve for the entries in our Affine transform matrix. This gives the following solution: Lecture 7 Slide 14 6.837 Fall '00 Lecture 7 Slide 16 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide14.html [10/3/2000 1:11:11 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide16.html [10/3/2000 1:11:14 PM]

Projective Transformations The most general linear transformation that we can apply to 2-D points Projective Transforms Since all of the resulting points are defined to within a non-zero scale factor. We can also scale the transformation by an arbitrary and it will still give the same result. There is something different about this group of transformations. The result will not necessarily lie on our selected plane. Since our world (to this point) is 2D we need some way to deal with this. We might as well choose α so that one of the parameters of our matrix is 1 (i.e. p 33 = 1). Lecture 7 Slide 17 6.837 Fall '00 Lecture 7 Slide 19 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide17.html [10/3/2000 1:11:16 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide19.html [10/3/2000 1:11:18 PM] Projection The mapping of points from an N-D space to a M-D subspace (M < N) Degrees of Freedom A projective transform has 8 free-parameters We need a rule for mapping points resulting of this transform back onto our plane z = 1. We will identify points by lines through the origin of the 3-D space that we have embedded our plane within. Thus, Since the origin lies on all of these lines (and thus cannot be uniquely specified) we will disallow it. This is no big loss since it wasn't on our selected plane anyway (This is the real reason that we chose a plane not containing the origin). If we want to find the coordinate of any point in our selected plane we need only scale it such that it's third coordinate, w, is 1. Lecture 7 Slide 18 6.837 Fall '00 Lecture 7 Slide 20 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide18.html [10/3/2000 1:11:17 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide20.html [10/3/2000 1:11:20 PM]

Specifying a projective transform Next Time A projective transform can be uniquely defined by how it maps 4 points Lecture 7 Slide 21 6.837 Fall '00 Lecture 7 Slide 23 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide21.html [10/3/2000 1:11:22 PM] http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide23.html [10/3/2000 1:11:28 PM] Projective Example With the applet on the right you can select any corner and drag it to where you would like. Things are starting to look 3-D... We'll get there soon. Lecture 7 Slide 22 6.837 Fall '00 http://graphics.lcs.mit.edu/classes/6.837/f00/lecture07/slide22.html [10/3/2000 1:11:24 PM]