



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Introduction: This problem set will focus on writing a program to morph one image into another. You will implement the approach described in: “Feature-Based Image Metamorphosis,” by T. Beier and S. Neely, Computer Graphics , 26(2) 25-42 (available on-line at: http://www.cs.princeton.edu/courses/archive/fall00/cs426/papers/beier92.pdf).
You will be given some basic code, as well as an executable for finished code. Some things to notice about this code:
A maximum of 20 extra credit points are available.
c. Suppose we render this texture into an image region that is a 16x16 square of pixels, using the commands: glBegin(GL_QUADS); glTexCoord2f(0,0); glVertex2f(0, 0); glTexCoord2f(1,0); glVertex2f(.5, 0); glTexCoord2f(1,1); glVertex2f(.5, 1); glTexCoord2f(0,1); glVertex2f(0,1); glEnd(); What is the intensity at the image location with coordinates (.2,.2)? At (.2,.6)?
d. Suppose we render this texture into an image region that is a 16x square of pixels, using the commands: glBegin(GL_TRIANGLES); glTexCoord2f(.2,.2); glVertex2f(.7,0); glTexCoord2f(.6,.6); glVertex2f(.7,1); glTexCoord2f(1,.2); glVertex2f(.9,0); glEnd(); What is the intensity at the image location with coordinates (.8,.2)?
d. It is smooth. That is, it has a derivative that is well-defined everywhere. To do this, you mainly need to show that at an integer value, if dk is some tiny delta that is going to zero, then: v(k) – v(k-dk) = v(k+dk) – v(k).
3. Color (10 points) a. If a pixel has RGB values of (.7, .3, .2), how would you describe its HSV values? b. If a pixel has a hue of green, a saturation of .5, and a value of .4, describe it with RGB values. c. Suppose you had a monitor that emitted light that was either cyan, magenta or yellow. How could you use this to create white light? d. Suppose you have three colors, A, B, and C, represented in RGB by (.7, .4, .3), (.4, .2, .2), and (1,0,0) respectively. Give the RGB representation of a new color that has the hue of A, the saturation of B, and the value of C.