Load clown - University of Minnesota



load clown

whos

image(X)

image(X); colormap(gray)

imshow(X); colormap(gray)

imshow(X,[]); colormap(gray)

imagesc(X); colormap(gray)

figure(1); image(X); colormap(gray)

figure(2); imagesc(X); colormap(gray)

size(colormap)

Y=X;

Y(101:200,:)=zeros(100,320);

close all

image(Y); colormap(gray)

Y=X;

Y=Y(1:2:end,1:2:end);

size(Y)

size(X)

imagesc(Y)

figure(1); imagesc(X)

figure(2); imagesc(Y); colormap(gray)

% colormap gray is already defined for figure(1), since it is not new

I=imread('mandril.png'); %could not find

I=imread('board.tif');

whos

imshow(X,[])

imshow(I,[])

X=I;

X1=X(:,:,1);

imshow(X1,[])

Xgray=rgb2gray(X);

I = imread('board.tif');

J = rgb2gray(I);

edit rgb2gray %the way to learn about the actual code

load clown

X_updown=X(end:-1:1,:);

image(X);colormap(gray)

image(X_updown);colormap(gray)

help meshgrid

size(X)

[Xx,Xy]=meshgrid(1:200,1:320);

Xz=double(X);

mesh(X,Y,Z)

mesh(Xx,Xy,Xz)

% it did not work out since we needed square images… T=zeros(320,320);

T(1:200,:)=X;

X=T

size(X)

[Xx,Xy]=meshgrid(1:320,1:320);

Xz=double(X);

mesh(Xx,Xy,Xz)

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download