Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.

Slides:



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

Geometric Transformations
1 Computer Graphics Chapter 6 2D Transformations.
Transformations II Week 2, Wed Jan 17
Lecture 11: Transformations CS4670/5760: Computer Vision Kavita Bala.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz
Elementary 3D Transformations - a "Graphics Engine" Transformation procedures Transformations of coordinate systems Translation Scaling Rotation.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
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
Image warping/morphing Digital Video Special Effects Fall /10/17 with slides by Y.Y. Chuang,Richard Szeliski, Steve Seitz and Alexei Efros.
2D Transformations x y x y x y. 2D Transformation Given a 2D object, transformation is to change the object’s Position (translation) Size (scaling) Orientation.
Introduction to Computer Graphics CS 445 / 645 Lecture 5 Transformations Transformations M.C. Escher – Smaller and Smaller (1956)
Geometric Transformation-2D
2D Transformations Unit - 3. Why Transformations? In graphics, once we have an object described, transformations are used to move that object, scale it.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/27/11 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Image Warping (Szeliski 3.6.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Slides from Alexei Efros and Steve Seitz
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.
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
Lecture Notes: Computer Graphics.
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
2D Geometric Transformations
Transformations Jehee Lee Seoul National University.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/23/10 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Advanced Multimedia Warping & Morphing Tamara Berg.
Geometric Transformations Sang Il Park Sejong University Many slides come from Jehee Lee’s.
Learning Objectives Affine transformations Affine transformations Translation Translation Rotation Rotation Scaling Scaling Reflection Reflection Shear.
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.
III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
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 15: Transforms and Alignment CS4670/5670: Computer Vision Kavita Bala.
Image Warping 2D Geometric Transformations
CSCE 441 Computer Graphics: 2D Transformations
Modeling Transformation
Transformations. Modeling Transformations  Specify transformations for objects  Allows definitions of objects in own coordinate systems  Allows use.
Transformations University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner.
Computer Graphics Lecture 15 Fasih ur Rehman. Last Class Combining Transformations Affine versus Rigid body Transformations Homogenous Transformations.
Image warping/morphing Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/3/15 with slides by Richard Szeliski, Steve Seitz and Alexei Efros.
3. Transformation
Computer Graphics Transformations.
Review: Transformations
3D Geometric Transformations
Computational Photography Derek Hoiem, University of Illinois
Computer Graphics Transformations.
Introduction to Computer Graphics CS 445 / 645
2D Transformations y y x x y x.
Homogeneous Coordinates (Projective Space)
Image Warping (Szeliski Sec 2.1.2)
Image Warping (Szeliski Sec 2.1.2)
Computer Graphics Transformations
Image Warping : Computational Photography
Recap from Friday Image Completion Synthesis Order Graph Cut Scene Completion.
Image Warping : Computational Photography
2D Geometric Transformations
Image Warping (Szeliski Sec 2.1.2)
Geometrical Transformations
Transformations.
Transformations 2 University of British Columbia
TWO DIMENSIONAL TRANSFORMATION
Translation in Homogeneous Coordinates
Computational Photography Derek Hoiem, University of Illinois
Presentation transcript:

Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park

Outline Review Image Warping –Translation Keyframe Animation

Review Image Warping –Scaling –Rotation –Together with a 2X2 matrix

Image Processing 2-2 Image Warping (Translation) Lots of slides taken from Alexei Efros

Review: 2x2 Matrices What types of transformations can be represented with a 2x2 matrix? 2D Identity? 2D Scale around (0,0)?

Review: 2x2 Matrices What types of transformations can be represented with a 2x2 matrix? 2D Rotate around (0,0)? 2D Shear?

Review: 2x2 Matrices What types of transformations can be represented with a 2x2 matrix? 2D Mirror about Y axis? 2D Mirror over (0,0)?

Review: 2x2 Matrices What types of transformations can be represented with a 2x2 matrix? 2D Translation? Only linear 2D transformations can be represented with a 2x2 matrix NO!

All 2D Linear Transformations Linear transformations are combinations of … –Scale, –Rotation, –Shear, and –Mirror Properties of linear transformations: –Origin maps to origin –Lines map to lines –Parallel lines remain parallel –Ratios are preserved –Closed under composition

Translation How can we represent translation? How can we represent it as a matrix?

Homogeneous Coordinates Homogeneous coordinates –represent coordinates in 2 dimensions with a 3-vector ( 동차좌표 )

Homogeneous Coordinates Q: How can we represent translation as a 3x3 matrix? A: Using the rightmost column:

Translation Example of translation t x = 2 t y = 1 Homogeneous Coordinates

Add a 3rd coordinate to every 2D point –(x, y, w) represents a point at location (x/w, y/w) –(x, y, 0) represents a point at infinity –(0, 0, 0) is not allowed Convenient coordinate system to represent many useful transformations (2,1,1) or (4,2,2)or (6,3,3) x y

Basic 2D Transformations Basic 2D transformations as 3x3 matrices Translate Rotate Scale

Affine Transformations Affine transformations are combinations of … –Linear transformations, and –Translations Properties of affine transformations: –Origin does not necessarily map to origin –Lines map to lines –Parallel lines remain parallel –Ratios are preserved –Closed under composition –Models change of basis ( 유사변환 )

Projective Transformations Projective transformations … –Affine transformations, and –Projective warps Properties of projective transformations: –Origin does not necessarily map to origin –Lines map to lines –Parallel lines do not necessarily remain parallel –Ratios are not preserved –Closed under composition –Models change of basis ( 사영변환 )

Matrix Composition Transformations can be combined by matrix multiplication p’ = T(t x,t y ) R(  ) S(s x,s y ) p Sequence of composition 1.First, Scaling 2.Next, Rotation 3.Finally, Translation

Inverse Transformation Translate Rotate Scale

Inverse Transformation p’ = T(t x,t y ) R(  ) S(s x,s y ) p P = S -1 (s x,s y ) R -1 (  ) T -1 (t x,t y ) p’

2D image transformations These transformations are a nested set of groups Closed under composition and inverse is a member

Keyframe Animation

Keyframes? –Define starting and ending points of any smooth transitions The workflow of traditional hand-drawn animation –1. Key frames by senior key artists –2. ‘clean-up’ and ‘inbetweens’ by inbetweeners keyframesinbetweens

Keyframe Animation The starting keyframe The ending keyframeThe completed animation

Keyframing: issues How do you know where to put the keyframes? Interface: How do you actually specify the key values? Inbetween: How do you make frames between keys

Making inbetweens Interpolation Start Time = 0 End Time = 1 Inbetween Time = α (0 ≤ α ≤1) ??

Making inbetweens Linear Interpolation Start Time = 0 End Time = 1 Inbetween Time = α (0 ≤ α ≤1) 1-αα

State vector How to represent a state? –By Numbers! (or Parameters!) –Examples) Color: R,G,B (H,S,V) Scale: Sx, Sy Rotation: θ Translation: Tx, Ty Position of vertices …

State vector A state vector: a collection of parameters –Example with 5 parameters Scale: Sx, Sy Rotation: θ Translation: Tx, Ty

Interpolation of state vector Keyframes: (at time=0) (at time=1)

Interpolation of state vector What is the state vector at time = α ? 1-αα α

Interpolation of state vector What is the state vector at time = α ? 1-αα α