Title: CS148:%20Introduction%20to%20Computer%20Graphics%20and%20Imaging
1CS148 Introduction to Computer Graphics and
Imaging Final Review Session
2Outline
- Final Info
- Review of Topics
- Displays
- Exposure Tone Reproduction
- Mattes Compositing
- Filtering
- Sampling
- Compression
- Digital Video
- Modeling
3Final Exam Info
- Time Wed, Mar 21st at 1215pm
- Location Building 300, Rm 300
- Duration 2 hours
- Closed book
- Consists of a few (4 or 5) multi-part questions
- All material through modeling lecture
- Emphasis second half of class
- Strongly emphasized material on assignments
- Focus on material from lectures
- Also covered material from readings
- This review covers the second half, see the
midterm review for the first half of the material
4Displays
- Resolution - Spatial, temporal, and
color/intensity - Interlaced vs. Non-Interlaced (Progressive scan)
- Calibration not all displays have the same
colors, calibrate to match standard (e.g. sRGB)
5Displays
- CRT electron beam phosphors
- Plasma ionized gas forms plasma
- LCD twisted nematic cells
- DLP fast twitching micromirrors
- Laser Projection
- OLED
- Electronic Ink
6Exposure Tonemapping
- Contrast MaxMin
- World
- Possible 100,000,000,0001
- Typical 100,0001
- People 1001
- Media
- Printed Page 101
- Displays 801 (4001)
- Typical Viewing 51
10000 1000 100 10 1 .1 .01 .001 .0001
candela/m2 100 Eye 1
Sun Moon Stars
7Exposure Tonemapping
8Exposure Tonemapping
- Create HDR Image Weighted log-average based on
input images, shutter speeds, and response curve - Gamma display intensity is non-linear response
to voltage (monitor gamma 2.5) - Perception non-linear as well ( 1/3)
- Tone Reproduction map HDR to displayable range
- Linear map
- Remap through response/gamma
- Log L L / (1L)
- More complicated techniques (separate
luminance/color)
9Mattes Compositing
- Combine foreground and background objects
- a Coverage
- Area
- Opacity
- 1 Transparency
- CF foreground color, CB background color
- C a CF (1 a) CB
- Premultiplied a C aC (ar, ag, ab, a)
- Pulling a matte blue screen, image processing
a
10Mattes Compositing
- Blue screen matte extraction
- Given
- C Observed color
- CB Backing color (possibly per pixel)
- Compute
- CF (aFRF, aFGF, aFBF, aF)
- Matte Equation
- C CF (1 aF)CB
- 3 Equations, 4 Unknowns must make some
assumptions
11Convolution
- Convolution integration/summation of translated
filter with signal
12Fourier Transform
- Expresses any signal as sum of sin and cos
functions
13Fourier Transform
Fourier Transform
Spatial Domain f(x,y)
Frequency Domain F(?x, ?y)
Inverse Fourier Transform
Convolution Multiplication Multiplication
Convolution Sinc Box
14Fourier Transform
15Fourier Transform Low Pass
16Fourier Transform High Pass
17Fourier Transform Band Pass
18Sampling
- Imagers sample continuous functions
- sensors integrate over their area
- Examples of imagers
- retina ? photoreceptors
- digital camera ? CCD or CMOS array
- Digitally record value of signal periodically
(samples)
19Nyquist Frequency
- Nyquist Frequency ½ the sampling frequency
- A periodic signal with a frequency above the
Nyquist frequency cannot be distinguished from a
periodic signal below the Nyquist frequency - These indistinguishable signals are called aliases
20Sampling Spatial Domain
21Sampling Frequency Domain
22Undersampling Frequency Domain
23Reconstruction Frequency Domain
24Reconstruction Spatial Domain
25Compression
- Kolmogorov Complexity smallest program to
generate data - Lossless Coding
- Run length coding exploit obvious redundancy
- Huffman Coding variable length code, highly
probable characters -gt shorter codes - Transform Coding perform invertible transform
on data to make it more amenable to compression
(applies to lossless and lossy!)
26Bases
e1
e2
ae1 be2 (a,b) in this basis
Any vector can be expressed as linear combination
of either basis (pair of vectors)
b2
b1
mb1 nb2 (m,n) in this basis
27Lossy Image Compression (JPEG)
Discrete Cosine Transform
Quantization (Lossy Step)
Image
Transformed Image
Reorder Coding
Compressed Data Stream
JPEG2000 is similar but uses the wavelet
transform. Exploit human perception quantize
high frequencies more heavily since we are less
sensitive to them.
28Wavelet Transform
- Just another invertible transform (expresses
signal in different basis) - Generated in steps by calculating smoothed
(approximate) values and detail (corrective)
values - Resulting basis functions have compact support
they are only non-zero over a limited range
error in coefficient causes localized error
29Wavelet Transform
Full Transform
6.25
High Resolution Details Medium Resolution
Details Low Resolution Details Average Value
30Video
- Raster scan convert 2D signal to 1D
- Synchronize vertical refresh to swap buffers
- Television Amplitude modulation (next)
- Color TV use amplitude modulation to place
luminance and chrominance signals at different
frequencies - Less responsive to high frequencies in color
- Compression
- I-Frames JPEG Compression
- P,B-Frames Motion predictions encode
difference
31Amplitude Modulation
32Modeling
- Representations
- Dense Polygonal Meshes
- Bicubic surfaces
- Subdivision Surfaces
- Operations
- Instancing
- Transformation linear and non-linear
- Compression, simplification
- Deform, skin, morph, animate
- Smooth
- Set operations
33Bezier Curve
34Subdivision Surfaces
- Loop subdivision algorithm
- Extraordinary points
- Semi-regular meshes