Lecture 15 - Warping and Morphing I

Lecture 15 - Warping and Morphing I - Interactive Computer...

Info icon This preview shows pages 1–17. Sign up to view the full content.

Interactive Computer Graphics: Lecture 15 Warping and Morphing
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Warping and Morphing Graphics Lecture 15: Slide 2 What is – warping ? – morphing ? ?
Image of page 2
Warping and Morphing What is – warping ? – morphing ? ? Graphics Lecture 15: Slide 3
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Warping and Morphing What is – warping ? – morphing ? Graphics Lecture 15: Slide 4
Image of page 4
Warping and Morphing: Slide 5 Warping • The term warping refers to the geometric transformation of graphical objects (images, surfaces or volumes) from one coordinate system to another coordinate system. • Warping does not affect the attributes of the underlying graphical objects. Attributes may be – color (RGB, HSV) – texture maps and coordinates – normals, etc.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Morphing • The term morphing stands for metamorphosing and refers to an animation technique in which one graphical object is gradually turned into another. • Morphing can affect both the shape and attributes of the graphical objects. Graphics Lecture 15: Slide 6
Image of page 6
Warping and Morphing What is – warping ? – morphing ? Graphics Lecture 15: Slide 7
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Morphing = Object Averaging The aim is to find an average between two objects Not an average of two images of objects …but an image of the average object ! How can we make a smooth transition in time? Do a weighted average over time t How do we know what the average object looks like? Need an algorithm to compute the average geometry and appearance Graphics Lecture 15: Slide 8
Image of page 8
Averaging P Q v = Q - P P + 0.5 v = P + 0.5( Q P ) = 0.5 P + 0.5 Q P + 1.5 v = P + 1.5( Q P ) = -0.5 P + 1.5 Q (extrapolation) Linear Interpolation (Affine Combination): New point a P + b Q , defined only when a+b = 1 So a P + b Q = a P +(1- a ) Q What’s the average of P and Q ? Graphics Lecture 15: Slide 9
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image blending Determines how to combine attributes associated with geometrical primitives. Attributes may include – color – texture coordinates – normals • Blending – cross-dissolve – adaptive cross-dissolve – alpha-channel blending – z-buffer blending
Image of page 10
Image blending: Cross-dissolve Blending with cross-dissolve: – intensities – RGB space – HSV space – texture space B A I t I t I + = ) 1 (
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image blending: Cross-dissolve RGB Texture
Image of page 12
Morphing using cross-dissolve But what is the images are not aligned? Graphics Lecture 15: Slide 13
Image of page 13

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Morphing using warping and cross-dissolve Align first, then cross-dissolve Graphics Lecture 15: Slide 14
Image of page 14
Morphing = (warping) 2 + blending
Image of page 15

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Morphing GenerateAnimation(Image 0 , Image 1 ) begin foreach intermediate frame time t do Warp 0 = WarpImage(Image 0 , t) Warp 1 = WarpImage(Image 1 , t) foreach pixel p in FinalImage do Result(p) = (1- t )Warp 0 + t Warp 1 end end end
Image of page 16
Image of page 17
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern