week13_fs - 1. 3 Points [Interactivity] Gamut runs from...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. 3 Points [Interactivity] Gamut runs from almost no interactivity, as in a slide show, to full-blown immersive virtual reality. In a slide show, one can control the pace, usually with no jumps. Jumps are next level. Then control of media– start, stop, search, scroll, zoom. Then control of variables, as in DB query. Then control objects on the screen. Finally, control entire simulation. 2. 4 Points [Colour] int hist[256][256][256]; //image is an appropriate struct with int fields red,green,blue for i=0. .(MAX_Y-1) for j=0. .(MAX_X-1) { R = image[i][j].red; G = image[i][j].green; B = image[i][j].blue; hist[R][G][B]++; } 3. 3 Points [Colour] Answer: Find XYZ via X = i E ( λ x ( λ ) and similarly for Y and Z . Convert to RGB using, say, the NTSC 3 × 3 matrix — this assumes linear signals, which we do have so far. For a Planckian radiator at 6000 K, e.g., we get R=255,G=255,B=221, once we normal- ize to max==255. Then we still have to do a gamma-correction: e.g., we raise the RGB/255 values to the power 0.5, say, and get
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/15/2010 for the course CMPT 365 taught by Professor Markdrew during the Spring '10 term at Simon Fraser.

Page1 / 2

week13_fs - 1. 3 Points [Interactivity] Gamut runs from...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online