Upload
pratap-singh-chouhan
View
216
Download
4
Embed Size (px)
DESCRIPTION
Aaaaa
Citation preview
EXPERIMENT 2
clc;
clear all;
a=imread('C:\Documents and Settings\student1\Desktop\download.jpg');
t=255-a;
subplot(2,1,1);
imshow(a);
title('ORIGINAL IMAGE');
subplot(2,1,2);
imshow(t);
title('NEGATIVE IMAGE');
EXPERIMENT 3
clc;
clear all;
img=imread('C:\Documents and Settings\student1\Desktop\download.jpg');
subplot(2,2,1);
imshow(img);
title('ORIGINAL IMAGE');
subplot(2,2,2);
b=img(:,:,1);
imshow(b);
title('RED PLANE');
subplot(2,2,3);
c=img(:,:,2);
imshow(c);
title('GREEN PLANE');
subplot(2,2,4);
d=img(:,:,3);
imshow(d);
title('BLUE PLANE');
EXPERIMENT 4(RGB TO GRAY)
clc;
clear all;
img=imread('C:\Documents and Settings\student1\Desktop\download.jpg');
subplot(2,1,1);
imshow(img);
title('ORIGINAL IMAGE');
subplot(2,1,2);
b=rgb2gray(img);
imshow(b);
title('GRAY IMAGE');