You are on page 1of 9

............... fourth day............

%-- 2/27/08 11:38 PM --%


rtwintgt-setup
real time window
help image
image(a, [x, y, w, h])
image(a, [x, y, w, h], rotation)
image(i, [x, y, w, h])
image(i, [x, y, w, h], rotation)

............. fifth day.........

%-- 2/27/08 11:52 PM --%


help image processing
help comand window
help command window
command window
clc
log2
clc
magic(4)
magic(2)
magic(5)_
magic(6)
clc
t = 0:pi/6:4*pi;
[x,y,z] = cylinder(4+cos(t),30);
surf(x,y,z
surf(x,y,z)
t = 0:pi/6:4*pi;
surf(x,y,z)
t = 0:pi/6:4*pi;
[x,y,z] = cylinder(4+cos(t),30);
surf(x,y,z)
t = 0:pi/8:4*pi;
[x,y,z] = cylinder(4+cos(t),30);
surf(x,y,z)
t = 0:pi/10:4*pi;
[x,y,z] = rectangular(4+cos(t),30);
surf(x,y,z)
t = 0:pi/10:4*pi;
[x,y,z] = cylinder(4+sin(t),30);
surf(x,y,z)
t = 0:pi/10:4*pi;
[x,y,z] = cylinder(4+cos(t),30);
surf(x,y,z)
t = 0:pi/10:4*pi;
[x,y,z] = cylinder(4+cos(t),30);
surf(x,y,z)
t = 0:pi/10:4*pi;
[x,y,z] = cylinder(4+cos(t),30);
surf(x,y,z)
clc
t = 0:pi/6:4*pi;
[x,y,z] = cylinder(4+tan(t),30);
surf(x,y,z)
t = 0:pi/6:4*pi;
[x,y,z] = cylinder(4+cot(t),30);
surf(x,y,z)
t = 0:pi/6:4*pi;
[x,y,z] = cylinder(4+log(t),30);
surf(x,y,z)
f = figure;
set(f, 'papTuT,'cT) % Type this line.
set(f, 'paperunits','centimeters')
f = 0;pi/6/4*pi;
set(f, 'papTuT,'cT) % Type this line.
set(f, 'paperunits','centimeters')
set(f, 'papTuT,'cT) % Type this line.
f = figure;
set(f, 'papTuT,'cT) % Type this line.
set(f, 'paperunits','centimeters')
clc
ftsgui
clc
image(a)
image(a, [x, y, w, h])
image(a, [x, y, w, h], rotation)
clc
mage(imread('icon.tif'))
image(imread('icon.tif'))
(imread('icon.tif'))
clc
image(pic;)
image(pic)
clc
patch(x, y)
patch([0,.5,1] [0,1,0][0,0,1])
patch([0 .5 1], [0 1 0], [1 0 0])
atch([0 .6 1], [0 1 0], [1 0 0])
patch([0 .6 1], [0 1 0], [1 0 0])
patch([0 .5 1], [1 1 0], [1 0 0])
patch([0 .5 1], [1 1 0], [1 0 0],[0 0 1])
patch([0 .5 1], [1 1 0], [1 0 0],[0 0 1][0 .5 .9])
patch([0 .5 1], [1 1 0], [1 0 0],[0 1 1])
patch([0 .5 1], [1 1 0], [1 0 0],[1 1 1])
patch([0 .5 1], [1 1 0], [1 0 0],[1 2 1])
patch([0 .5 1], [1 0 0], [1 0 1],[1 0 1])
patch([0 .5 1], [1 0 0], [1 0 1],[1 1 0])
patch([0 .5 1], [1 0 1], [1 0 1],[1 1 0])

............................ six day....................

%-- 2/28/08 7:55 PM --%


patch([0,.5,1] [0,1,0][0,0,1])
patch([0 .5 1], [1 1 0], [1 0 0])
clc
help image
patch([0 .5 1], [1 0 0], [1 0 1],[1 0 1])
patch([0 .5 1], [1 0 0], [1 0 1],[1 0 0])
patch([0 .5 1], [1 0 0], [1 0 0],[1 0 1])
clc
patch([0 .5 1], [1 0 0], [1 0 0],[1 0 1])
patch([0 .5 1], [1 0 0], [1 0 1],[1 0 1])
patch([0 .5 1], [1 0 0], [1 0 1],[1 0 0])

........................... seventh day...............

%-- 2/28/08 7:59 PM --%


surf(X,Y,Z)
colormap hsv
colorbar
surf(X,Y,Z)
colormap hsv
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(X,Y,Z,'EdgeColor','black')surf(X,Y,Z)
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(X,Y,Z,'EdgeColor','black')
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(X,Y,Z,'EdgeColor','black')surf(X,Y,Z)
colormap hsv
colorbar
clc
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(X,Y,Z,'EdgeColor','black')surf(X,Y,Z)
colormap hsv
colorbar
magic 6
clc
magic4
magic[4]
magic [4]
clc
magic(4)
magic(6)
magic(2)
clc
help image processing
surf(X,Y,Z)
colormap hsv
colorbar
image(C)
image(x,y,C)
C = rand(4,1);
image(C,'CDataMapping','scaled')
axis image
C = rand(6,1);
image(C,'CDataMapping','scaled')
axis image
C = rand(8,3);
image(C,'CDataMapping','scaled')
axis image
A = imread(di,jpg)
[X,map] = imread(di,jpg)
di = imread(di,jpeg)
[X,map] = imread(di,jpeg)
clc
jimage = im2java(I)
jimage = im2java(X,MAP)
jimage = im2java(RGB)

.......................... eight days...............

%-- 3/1/08 2:23 AM --%


clc
f= imread(e:/pic/ap);
f= imread(e:/pic/ap/jpg);
f= imread(e:\pic\ap\jpg);
clc
f=imread(ap,jpg)
clc
a=imread(e;\pic\ap\jpg)
a=imread(e;\pic\ap.jpg)
A= imread(e:\pic\ap\jpg);
A= imread(e:\pic\ap.jpg);
a= imread(e:\pic\ap.jpg);
clc
a= imread(e:\pic\ap\jpg);
imread(e:\pic\ap\jpeg)
clc
a= imread(e:\pic\ap.jpg)
imread(ap,jpg)
a= imread(e:\pic\ap,jpg)
clc
p=imread('e:\pic\ap\jpg')
p= imread('e:\pic\ap.jpg');
p==> imread('e)
p = imread('e:\pic\ap\jpg');
p==> imread('e:\pic\ap\jpg');
clc
p= imread('e:\pics\ap\jpg');
p= imread('e:\pics\ap\jpg')
p=imread('e:\pics\ap\jpg');
p=imread('e:\pics\ap,jpg');
p=imread('e:\pics\ap.jpg');
clc
p=imread('e:\pics\ap.jpg');
imshow(p);
whos
imhist(p);
figure, imhist(p)
p, imhist(p)

...................... nineth days.............


%-- 3/1/08 4:15 AM --%
clc
p=imread('e:\pics\ap.jpg');
imshow(p);

/////////////////////////////// continue//////////

%-- 3/1/08 4:20 AM --%


p=imread('e:\pics\ap.jpg');
imshow(p)
whos
imwrite(p,ap,jpg);
imwrite(p,jpg);
imwrite(p);
imwrite(p,jpg);
impinfo

//////////////////// countinue///////////

%-- 3/5/08 12:49 AM --%


clc
x = rand(100,1)*16 - 8;
y = rand(100,1)*16 - 8;
r = sqrt(x.^2 + y.^2) + eps;
z = sin(r)./r;
x = rand(100,1)*16 - 8;
y = rand(100,1)*16 - 8;
r = sqrt(x.^2 + y.^2) + eps;
z = sin(r)./r;
xlin = linspace(min(x),max(x),33);
ylin = linspace(min(y),max(y),33);
[X,Y] = meshgrid(xlin,ylin);
Z = griddata(x,y,z,X,Y,'cubic');
mesh(X,Y,Z) %interpolated
axis tight; hold on
plot3(x,y,z,'.','MarkerSize',15)
mesh(X,Y,Z,C) %interpolated
axis tight; hold on
plot3(x,y,z,C,'.','MarkerSize',15)
mesh(X,Y,Z) %interpolated
axis tight; hold on
plot3(x,y,z,'.','MarkerSize',30)
mesh(X,Y,Z) %interpolated
axis tight; hold on
plot3(x,y,z,'.','MarkerSize',45)
mesh(X,Y,Z) %interpolated
axis tight; hold off
plot3(x,y,z,'.','MarkerSize',15)
mesh(X,Y,Z) %interpolated
axis ; hold on
plot3(x,y,z,'.','MarkerSize',15)
mesh(X,Y,Z) %interpolated
hold on
plot3(x,y,z,'.','MarkerSize',15)
mesh(X,Y,Z) %interpolated
axis tight; hold on
plot3(x,y,z,'.','MarkerSize',5)
mesh(X,Y,Z) %interpolated
axis tight; hold on
plot3(x,y,z,'.','MarkerSize',5)
theta = pi*(-n:2:n)/n;
phi = (pi/2)*(-n:2:n)'/n;
X = cos(phi)*cos(theta);
Y = cos(phi)*sin(theta);
Z = sin(phi)*ones(size(theta));
colormap([0 0 0;1 1 1])
C = hadamard(2^k);
surf(X,Y,Z,C)
axis square

........................ tenth days..............

%-- 3/5/08 2:14 AM --%


p=imread('e:\pics\ap.jpg');
imshow
imshow(p)

//////////////// countinue//////////

%-- 3/7/08 11:36 AM --%


clc
A = imread('e:\\pics\at.jpg');
whosA
whos A
[m,n]= size(A);
size (A)
imshow (A);
clc
A = imread('e:\\pics\at2.jpg');
whos A
size(A);
size(A)
imshow(A)
imwrite(A,'at2.jpg')
imAinfo at2.jpg
imAinfo 'at2.jpg'
k=imAinfo ('at2.jpg')
info = imAinfo(at2,jpg)
imAinfo 'at2.jpg'
imAinfo ('at2.jpg');
imfinfo at2.jpg
k=imfinfo('at2.jpg');
image_bytes=k.width*k.hight*k.bitdepth/8;
A = imread('e:\\pics\at3.jpg');
clc
A = imread('e:\\pics\at3.jpg');
whos A
size(A)
A = imread('e:\\pics\at4.jpg');
imfinfo at4.jpg
imwrite(A,'at4.jpg');
imfinfo ('at4.jp')
imfinfo at4.jpg
k=imfinfo('at4.jpg');
image_bytes=k.width*k.hight*k.bitdepth/8;
A = imread('e:\\pics\at3.jpg');
clc
A = imread('e:\\pics\at5.jpg');
imwrite(A,'at5.jpg');
imfinfo at5.jpg
k=imfinfo('at5.jpg');
image_bytes=k.width*k.hight*k.bitdepth/8;
image_bytes = k.width*k.hight*k.bitdepth/8;
image_bytes=k.width*k.hight*k.bitdepth/8;
info = imfinfo('at5.jpg')
imwrite(A,'at5.jpg','compression','parameter','resolution',[])
res=round(200*2.25/1.5);
imwrite(A,'at5.jpg','compression','none','resolution',300 300)
b=rgb2gry(A);
c= im2bw(A,t)
c= im2bw(A)
p=A(end:-1:1,:);
imshow(p)
imshow(b)
b=rgb2gry(A);
imshow(c)
p=A(end:-1:1,:);
imshow(p)
t=p(end:-1:1,:);
imshow(t)
f=t(257:302,257:302);
imshow(f)
f=t(500:600,500:600);
imshow(f)
f=t(550:700,550:700);
imshow(f)
fs=A(1:2:end,1:2:end);
imshow(fs)
plot(A(550,:))
s=sum(A;)
s=sum(A);
imshow(s)
[s,p]=sumprod(A,c);
p=prod(A)
p=prod(A);
p=pro(A);
p=prod(s);
imshow(p)
ad=imadjust(A,[0 1],[1 0]);
imshow(ad)
ad=imadjust(A,[0.5 1],[1 0.5]);
imshow(ad)
ad=imadjust(A,[0.5 0],[1 0.5]);
ad=imadjust(A,[0.5 0.85],[1 0.5]);
imshow(ad)
ad=imadjust(A,[0.5 0.85],[0.85 0.5]);
imshow(ad)
ad=imadjust(A,[0.5 1],[1 0.5]);
imshow(ad)
co=imcompliment(A)
co = imcomplement(A)
ad1=imadjust(A,[],[],2);
imshow(ad1)
ad1=imadjust(A,[],[],5);
imshow(ad1)
ad1=imadjust(A,[],[],1);
imshow(ad1)
ad1=imadjust(A,[],[],0);
imshow(ad1)
ad1=imadjust(A,[],[],0.5);
imshow(ad1)
ad2=imadjust(c,[],[],0.5);
ad2=imadjust(t,[],[],0.5);
imshow(ad2)
ad2=imadjust(t,[],[],1);
imshow(ad2)
ad2=imadjust(t,[],[],2);
imshow(ad2)
ad01=imadjust(t,[0.5 1],[1 0.5]);
imshow(ad01)
ad01=imadjust(t,[0 1],[1 0]);
imshow(ad01)
ad01=imadjust(t,[0.5 2],[2 0.5]);
ad2=imadjust(t,[],[],2);
imshow(ad2)
con=c*log(1 + double(A))
gd= im2uint8(mat2gray(A));
imshow(gd)
imshow(gd),figure,imshow(a)
imshow(gd), figure ,imshow(A)
g=con=c*log(1 + double(gd))
g=con=c*log(0 + double(gd))
g=con=c*log(1 - double(gd))
g=im2unit8(mat2gray(log(1 + double(A))));
imshow(g)
g=intrans(A, 'stretch',mean2(im2double(A)),0.9);
h=imhist(A);
h=imhist(t)
h=imhist(A)
h=imhist(t)
h1=h(1:10:256);
hor=1:10:256;
bar(hor,h1
bar(hor,h1)
axis([0 255 0 15000])
set(gca,'xtick',0:50:255)
set(gca,'ytick',0:50:255)
imshow(h1),figure,imshow(hor)
bar(hor,h1)
imshow(A)
figure,imhist(A)
imhist(A)
k=imhist(A)
imhist(t)
ylim('auto')
g=hiteq(t,256);
d=rgb2gray(A)

........................ eleventh days.................


%-- 3/8/08 9:35 AM --%
clc
A = imread('e:\\pics\at5.jpg');
imshow(A)
ad1=imadjust(A,[],[],0.5);imshow(ad1)
ad2=imadjust(t,[],[],2);
ad2=imadjust(A,[],[],2);
imshow(ad2)
imshow(A),figure,imshow(ad1),figure,imshow(ad2)
p=A(end:-1:1,:);
imshow(p)
t=p(end:-1:1,:);
imshow(t)
f=A(500:600,500:600);
imshow(f)
ad01=imadjust(t,[0.5 2],[2 0.5]);
real time window

You might also like