% % getColors.m % % the script to get all the macbeth images for both sony and olympus cameras % % read in all the files for i=1:9 filename = strcat('sony/psn0000', num2str(i), '.bmp'); image = imread(filename); sonyColors(i,:,:) = getMacbethColors(image); end for i=10:18 filename = strcat('sony/psn000', num2str(i), '.bmp'); image = imread(filename); sonyColors(i,:,:) = getMacbethColors(image); end for i=1:9 filename = strcat('olympus/PIC0000', num2str(i), '.bmp'); image = imread(filename); olympusColors(i,:,:) = getMacbethColors(image); end for i=10:18 filename = strcat('olympus/PIC000', num2str(i), '.bmp'); image = imread(filename); olympusColors(i,:,:) = getMacbethColors(image); end % get the colors save 'sonyColors' sonyColors; save 'olympusColors' olympusColors;