Interactive Computer Graphics. Hearn & Baker, chapter D transforms Hearn & Baker, chapter 5. Aliasing and Anti-Aliasing

Similar documents
Matrix Transformations. Affine Transformations

Coordinate transformations. 5554: Packet 8 1

Transforms. COMP 575/770 Spring 2013

Chapter 2 - Basic Mathematics for 3D Computer Graphics

2D and 3D Transformations AUI Course Denbigh Starkey

2D Image Transforms Computer Vision (Kris Kitani) Carnegie Mellon University

Perspective projection and Transformations

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

2D transformations: An introduction to the maths behind computer graphics

Computer Graphics: Geometric Transformations

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

Computer Vision cmput 428/615

2D TRANSFORMATIONS AND MATRICES

Section III: TRANSFORMATIONS

UNIT 2 2D TRANSFORMATIONS

Graphics and Interaction Transformation geometry and homogeneous coordinates

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

GEOMETRIC TRANSFORMATIONS AND VIEWING

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

Specifying Complex Scenes

Computer Graphics. Chapter 5 Geometric Transformations. Somsak Walairacht, Computer Engineering, KMITL

Image warping , , Computational Photography Fall 2017, Lecture 10

Linear and Affine Transformations Coordinate Systems

Last week. Machiraju/Zhang/Möller/Fuhrmann

2D and 3D Coordinate Systems and Transformations

Computer Graphics: Viewing in 3-D. Course Website:

ME5286 Robotics Spring 2014 Quiz 1 Solution. Total Points: 30

Game Engineering: 2D

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

Computer Science 336 Fall 2017 Homework 2

Computer Graphics 7: Viewing in 3-D

Shadows in Computer Graphics

Image Warping. Some slides from Steve Seitz

Transformations: 2D Transforms

Transformations Week 9, Lecture 18

Game Engineering CS S-05 Linear Transforms

Coordinate Transformations & Homogeneous Coordinates

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

CSC418 / CSCD18 / CSC2504

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication

Computer Graphics Geometric Transformations

3-D D Euclidean Space - Vectors

Assignment 2 : Projection and Homography

CSC 305 The Graphics Pipeline-1

Introduction to Homogeneous coordinates

N-Views (1) Homographies and Projection

CSE 252B: Computer Vision II

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

COMP30019 Graphics and Interaction Three-dimensional transformation geometry and perspective

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

Lecture 6 Sections 4.3, 4.6, 4.7. Wed, Sep 9, 2009

CS535 Fall Department of Computer Science Purdue University

Computer Graphics. Coordinate Systems and Change of Frames. Based on slides by Dianna Xu, Bryn Mawr College

Overview. Affine Transformations (2D and 3D) Coordinate System Transformations Vectors Rays and Intersections

CS4670: Computer Vision

Modeling Transformations

1 Transformations. Chapter 1. Transformations. Department of Computer Science and Engineering 1-1

Hello, welcome to the video lecture series on Digital Image Processing. So in today's lecture

2D Object Definition (1/3)

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

Advanced Computer Graphics Transformations. Matthias Teschner

Lecture 5 2D Transformation

CSE328 Fundamentals of Computer Graphics

Object Representation Affine Transforms. Polygonal Representation. Polygonal Representation. Polygonal Representation of Objects

Implementing a virtual camera. Graphics 2. Creating a view of the scene an outline. Virtual camera - definitions

Perspective Mappings. Contents

Computer Viewing. CS 537 Interactive Computer Graphics Prof. David E. Breen Department of Computer Science

3D Transformation. In 3D, we have x, y, and z. We will continue use column vectors:. Homogenous systems:. x y z. x y z. glvertex3f(x, y,z);

Camera Model and Calibration

3D Viewing. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

CSE452 Computer Graphics

(Refer Slide Time: 00:04:20)

Computer Graphics with OpenGL ES (J. Han) Chapter IV Spaces and Transforms

Linear transformations Affine transformations Transformations in 3D. Graphics 2009/2010, period 1. Lecture 5: linear and affine transformations

CMSC427: Computer Graphics Lecture Notes Last update: November 21, 2014

DRAFT: Mathematical Background for Three-Dimensional Computer Graphics. Jonathan R. Senning Gordon College

Affine Transformation. Edith Law & Mike Terry

Vector Algebra Transformations. Lecture 4

CS 4620 Midterm 1. Tuesday 22 October minutes

3D Viewing. Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

521466S Machine Vision Exercise #1 Camera models

C O M P U T E R G R A P H I C S. Computer Graphics. Three-Dimensional Graphics I. Guoying Zhao 1 / 52

Computer Science 426 Midterm 3/11/04, 1:30PM-2:50PM

More Mosaic Madness. CS194: Image Manipulation & Computational Photography. Steve Seitz and Rick Szeliski. Jeffrey Martin (jeffrey-martin.

Coordinate Frames and Transforms

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

Chapter 3 - Basic Mathematics for 3D Computer Graphics

To Do. Outline. Translation. Homogeneous Coordinates. Foundations of Computer Graphics. Representation of Points (4-Vectors) Start doing HW 1

Computer Graphics Seminar

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

Coordinate Spaces & Transformations. in InDesign CS4 CC Chapter 1

Viewing and Projection

EECE 478. Learning Objectives. Learning Objectives. Linear Algebra and 3D Geometry. Linear algebra in 3D. Coordinate systems

CS 428: Fall Introduction to. Transformations in OpenGL + hierarchical modeling. Andrew Nealen, Rutgers, /21/2009 1

Visualisation Pipeline : The Virtual Camera

Projection Lecture Series

Projective geometry for Computer Vision

Three-Dimensional Viewing Hearn & Baker Chapter 7

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Introduction to Computer Graphics 4. Viewing in 3D

Transcription:

Interactive Computer Graphics Aliasing and Anti-Aliasing Hearn & Baker, chapter 4-7 D transforms Hearn & Baker, chapter 5 Aliasing and Anti-Aliasing Problem: jaggies Also known as aliasing. It results from sampling a pattern (signal) at limited resolution.

Aliasing and Anti-Aliasing -Examples Aliasing Anti-Aliasing Aliasing in photos A piece of practical knowledge Example web page Often better to blur before resizing 4

Aliasing and Anti-Aliasing To fully understand the causes of aliasing requires the use of Signal Processing and Fourier Transforms. We can look at Aliasing from a more intuitive basis. 5 Aliasing and Anti-Aliasing Effects of Sampling 6

Aliasing and Anti-Aliasing Effects of Sampling 7 Aliasing and Anti-Aliasing Aliasing 8 4

Aliasing and Anti-Aliasing Anti-Aliasing is the process that attempts to prevent or fix the problem. More Resolution Unweighted Area Sampling Weighted Area Sampling Post image creation filtering 9 Aliasing and Anti-Aliasing More Resolution 5

Aliasing and Anti-Aliasing Unweighted Area Sampling Aliasing and Anti-Aliasing Unweighted Area Sampling Pixel Sub Pixels 55 * 4/9 = 6

Aliasing and Anti-Aliasing Weighted Area Sampling 96 Sub Pixels Pixel 4 Sub Pixels Weights 55 * (+++)/6 = 96 Aliasing and Anti-Aliasing Post image creation filtering = /9 * 55 = 85 4 7

Aliasing and Anti-Aliasing Post-image processing: fewer samples (less work) more blur (worse quality) Weighted area sampling: slightly less blurry than unweighted 5 Basic Graphics Transforms Translation Scaling Rotation Reflection Shear All Can be Expressed As Linear Functions of the Original Coordinates : x = Ax + By + C y = Dx + Ey + F x' A = y' D B E Cx F y 6 8

Preserve Parallel Lines Finite Points Map to Finite Points Translation, Rotation, and Reflection Preserve : Angles Lengths 7 x = x + y = y + Tx Ty P T Vectors : P = P + T Matrices : [ P ] = [ P] + [ T] P x Px Tx Px + T = + = P y Py Ty Py + T x y P Transform Polygons by Transforming Each Vertex 8 9

x = S y = S x y x y [ P ] = [ S][ P] P x Sx = P y Px Sx P = S ypy Sy P x y Uniform Scaling : Differential Scaling : S = S x Sy x Sy 9 (x,y ) φ r (x,y) r cos Θ = x r sin Θ = y Θ x = r cos( Θ + φ) = r cos Θ cosφ r sin Θsinφ y = r sin( Θ + φ) = r cos Θsinφ + r sin Θ cosφ Rotation about the Origin x = x cosφ y sinφ y = x sinφ + y cosφ P x cosφ = P y sinφ [ P ] = [ R(φ )][ P] sinφpx cosφ Py

Shear Transforms Shear: An action or stress resulting from applied forces that causes two contiguous parts of a body to slide relatively to each other. a Shear Transforms a Shear Translation in X a b Shear Translation in Y b

Shear Transforms Properties: It is an Affine Transform a and b are the proportionality constant A shear transform application: Fast and efficient rotation It will be used in perspective transformations Shear is easily invertable Shear Transforms Shear rotation α λ θ θ β co s sin = sin θ co sθ α = t a n θ ( ) β = s i n θ λ = t a n θ ( ) 4

5 Reflection Transforms Reflection is a transform that allows vectors to be flipped about an axis as if reflected in a mirror. Reflection About YZ Reflection About XZ Reflection About XY 6

Unify Transformation Operations All Transformations Represented as Matrix Products Tx [ T ] Ty [ S ] Sy [ R φ) ] Sx cosφ sinφ ( sinφ cosφ [ P ] = [ T][ P] [ P ] = [ S][ P] [ P ] = [ R(φ )][ P] Homogeneous Coordinates [ P] Px = Py NOT the z coordinate 7 Scaling About a Point Translate to Origin Apply Scale Matrix Translate Back to Original Position [ P ] = [ T][ S][ T][ P] T T T = T 8 4

Transform Combinations Rotation About a Point Translate to Origin Apply Rotation Matrix Translate Back to Original Position [ P ] = [ T ][ R(φ )][ T][ P] T φ T 9 Homogeneous coordinates in D How to represent perspective projection It is hard! y x= Given the coordinates of the orange point find the coordinates of the blue point Points: (x,y) (x,y,) x Equivalency: (x,y,w) (x/a, y/a, w/a) 5

An arbitrary camera? Need some systematic way of doing this (x c,y c ) (x,y ) Image plane (x,y ) Approach: One thing at a time First transform everything so that the camera is in the canonic position Matrix M Then perform projection Matrix P Combine the result P*M 6