clear;
% load the image
Texas = imread('txflag.jpg', 'jpg');
%USA = imread('usaflag.jpg', 'jpg');

% original image
figure(1);
image(Texas);
grid;

%figure(2);
%image(USA);
%grid;


% add gaussian noise 
T1 = imnoise(Texas, 'gaussian', 0, 0.01 );
T2 = imnoise(Texas, 'gaussian', 0, 0.02);
T3 = imnoise(Texas, 'gaussian', 0, 0.05);
T4 = imnoise(Texas, 'gaussian', 0, 0.1);
T5 = imnoise(Texas, 'gaussian', 0, 0.2);
T6 = imnoise(Texas, 'gaussian', 0, 0.5);

% Texas flag  + gaussian noise 
pause(1);
image(T1);

pause(1);
image(T2);

pause(1);
image(T3);

pause(1);
image(T4);

pause(1);
image(T5);

pause(1);
image(T6);





