function [r,g,b] = getRGB(I)
% function that returns the median RGB values for a Macbeth color square
% This is to try to eliminate the noise in the measurements by approximating
% the dominant intensities
I = double(I);
temp = I(:,:,1);
r = median(median(temp));
temp = I(:,:,2);
g = median(median(temp));
temp = I(:,:,3);
b = median(median(temp));
