% 
% inverseGammaColors.m
%
% do the inverse gamma correction to the macbeth colors for both cameras
%

load sonyColors;
load olympusColors;

colors = zeros(3,24);

for i=1:18
 for j=1:3
  colors(j,:) = sonyColors(i,j,:);
 end
 sonyInverseGammaColors(i,:,:) = inverseGammaCorrection(colors, 'sony');

 for j=1:3
  colors(j,:) = olympusColors(i,j,:);
 end
 olympusInverseGammaColors(i,:,:) = inverseGammaCorrection(colors, 'olympus');
end

save sonyInverseGammaColors sonyInverseGammaColors;
save olympusInverseGammaColors olympusInverseGammaColors;
