Homework 2 - Spectrum

Michael Callahan


I was unable to find the xyY values for my monitor at home, so I used xyY values from both Glassner and Bourke.

Glassner


In this image, RGB are just individually clamped to be in the range of 0-255.


Here I just normalize RGB. This washes out the yellows though, so I don't consider this a good mapping.


In these next three images, the RGB values are fitted to a squashed down sine curve, then clamped. I thought I'd try a sine curve instead of an exponential curve because I thought it would be more interesting to try. Note that only RGB values over 128 are fitted this way, values between 0 and 127 remain the same. The following were made by stretching a sine curve to fit 0-255 by scalar values 1.0, 0.8, and 0.5 respectively.




Bourke


Clamping RGB.


Normalizing RGB


Sine curve fitting for RGB values over 128.