You are on page 1of 3

%-- 9/6/14 3:09 AM --%

imread
imread (D:\)
imread (D:\Penguins.bmp)
imread (\\D:\Penguins.bmp)
A=imread ('D:\Penguins.bmp')
imshow (A)
figure (R)
figure , imshow (R)
figure, imshow (R)
R=A (:,:,1)
figure, imshow (R)
Y=rgb2gray(A);
figure, imshow (Y)
figure, imshow (R)
C=A(5:8,5:8)
figure, imshow (C)
C=A(200:600,200:600)
figure, imshow (C)
imshow (C)
A1=A(1:384,1;512)
A1=A(1:384,1:512)
A2=A(1:384,513:1024), A3=A(385:768,1:512), A4=A(385:768,513:1024)
figure, imshow (A1)
figure, imshow (A2)
figure, imshow (A3)
figure, imshow (A4)
B=[A4A3;A2A1]
B=[A4 A3;A2 A1]
figure, imshow (B)
B2=[A1 A2;A3 A4]
figure, imshow (B2)
figure, imshow (B)
B3=[A1 A2;A4]
B3=[A2;A4]
figure, imshow (B3)
A2=A(1:384,512:1024), A4=A(385:768,515:1024)
B4=[A2;A4]
A2=A(1:384,512:1024), A4=A(385:768,512:1024)
B4=[A2;A4]
figure, imshow (B)
figure, imshow (B1)
figure, imshow (B2)
%-- 9/6/14 7:02 AM --%
A=imread ('D:\Penguins.bmp')
I=imread ('D:\Penguins.bmp');
figure, imshow (I);
Y=rgb2gray(I);
figure, imshow (I);
figure, imshow (Y);
s=255-Y
s=255-Y;
figure, imshow (s);
s=1-Y;

figure, imshow (s);


s=2-Y;
figure, imshow (s);
s=Y/255;
figure, imshow (s);
s=double(Y)/255;
figure, imshow (s);
s=log(1+Y);
s=lg(1+Y);
s=l0g10(1+Y);
s=log10(1+Y);
r=double(Y)/255;
figure, imshow (r);
s=log10(1+r);
figure, imshow (s);
s=r.^(2);
figure, imshow (s);
imshow (s, {});
imshow (s, []);
imshow (s,[]);
figure, imshow (s,[]);
s=log10(1+r);
figure, imshow (s,[]);
figure, imshow (s);
s=log10(1+r);
figure, imshow (s);
figure, imshow (s,[]);
imread ('D:\Tulips');
imread ('D:\Tulips.bmp');
A=imread ('D:\Penguins.bmp');
A=imread ('D:\Tulips.bmp');
figure, imshow (A0;
figure, imshow (A);
Y=rgb2gray(A);
figure,
imshow(Y);
B=255-Y;
figure,
imshow(B);
r=double(Y)/255;
figure, imshow (r);
s=log10(1+r);
figure, imshow (s);
Lmin=min(s);
Lmax=max(s);
i=((r-Lmin)/Lmax-Lmin).255);
i=((s-Lmin)/Lmax-Lmin).255);
A=imread ('D:\Tulips.bmp');
figure, imshow (A);
close all
A=imread('D:\1.bmp');
figure, imshow(A);
B=rgb2gray(A);
figure, imshow(B)

C=inhist(C);
C=inhist(B);
C=imhist(B);
figure, imshow(C);
D=histeq(C);
figure, imshow(D);
D=histeq(B);
figure, imshow(D);
imhist(B, 256);
imhist(B, 255);
D=histeq(B, 255);
figure, imshow(D);
imhist(D, 255);
m=128;
sigma=20;
x=0:255;
h=exp[-((x-m).^2)/2*(sigma.^2)];
h=exp[-((x-m).^2)/2.(sigma.^2)];
h=exp[-((x-m).^2)/(2.(sigma.^2))];
h=exp(-((x-m).^2)/(2*(sigma.^2))/;
h=exp(-((x-m).^2)/(2*(sigma.^2));
h=exp(-((x-m).^2)/(2*(sigma.^2)));
plot(h)
stem(h)
figure, imshow(B);
C=histeq(B,h);
figure, imshow(C);
figure, imhist(C)

You might also like