% processing on the red_eye photo

im = imread('red_eye.jpg','jpg');
temp = double(im);
temp(:,:,2) = temp(:,:,2)*0.75;
temp(:,:,3) = temp(:,:,3)*0.833;
temp = temp/255;
image(temp);
pause(1);
imwrite(temp,'red_eye_red.jpg','jpg');

temp = double(im);
temp(:,:,1) = temp(:,:,1)*0.75;
temp(:,:,3) = temp(:,:,3)*0.833;
temp = temp/255;
image(temp);
pause(1);
imwrite(temp,'red_eye_gre.jpg','jpg');

temp = double(im);
temp(:,:,1) = temp(:,:,1)*0.75;
temp(:,:,2) = temp(:,:,2)*0.833;
temp = temp/255;
image(temp);
pause(1);
imwrite(temp,'red_eye_blu.jpg','jpg');
