color_perception

color_perception - Data for problem on color perception...

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

View Full Document Right Arrow Icon
% Data for problem on color perception close all; clear all; % This defines 20 discrete wavelengths wavelength = 380:20:760; %(nm) % Define the vectors of cone responsiveness % Cone sensitivies for wavelengths in the visible range. This data is % based on a graph on page 93 in Wandell's "Foundations of Vision" L_cone_log = [-.9 -1.1 -1 -.8 -.7 -.6 -.5 -.4 -.3 -.25 -.3 -.4 -.8 -1.2 -1.6 -1.9 -2.4 -2.8 -3.6 -4]; M_cone_log = [-.8 -.85 -.85 -.6 -.5 -.4 -.3 -.2 -.1 -.15 -.3 -.7 -1.2 -1.7 -2.2 -2.9 -3.5 -4.2 -4.8 -5.5]; S_cone_log = [-.4 -.3 -.2 -.1 -.3 -.6 -1.2 -1.8 -2.5 -3.2 -4.1 -5 -6 -7 -8 -9 -10 -10.5 -11 -11.5]; % Raise everything to the 10 power to get the actual responsitivies. % These vectors contain the coefficients l_i, m_i, and s_i described in the % problem statement from shortest to longest wavelength. L_coefficients = 10.^(L_cone_log); M_coefficients = 10.^(M_cone_log); S_coefficients = 10.^(S_cone_log); % Plot the cone responsiveness. figure(1);
Background image of page 1

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

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

{[ snackBarMessage ]}

Page1 / 2

color_perception - Data for problem on color perception...

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