Computational Photography - Homework 1

RAW to JPEG conversion

Associated Matlab files: raw2jpg.m, demosaic.m, white_balance.m, gamma_correct.m, histoclip.m

Demosaicing

Original raw image
Demosaiced image
Demosaiced image with 3x3 median filter

White Balancing

White balanced image

Gamma Correction

Gamma corrected image
Grayscale histogram

Histogram Clipping

Clipped histogram
Grayscale histogram of final image

Inferring the tone response curve

Matlab file: tonemap.m

Response curves

Red
Green
Blue

Gamma corrected response curves

Red
Green
Blue