Professional Documents
Culture Documents
Name: Ephrem Demelash ID: R/0427/08: % Audio Read
Name: Ephrem Demelash ID: R/0427/08: % Audio Read
ID: R/0427/08
Lab 3
I)
% Audio Read
load chirp.mat;
sound(y, Fs);
II)
load trees
% Crop indexed image, specifying crop rectangle.
X2 = imcrop(X,map,[30 30 50 75]);
figure
% Display original image and cropped image.
subplot(1,2,1)
imshow(X,map)
title('Original Image')
subplot(1,2,2)
imshow(X2,map)
title('Cropped Image')
This one has an output of the second figure
Lab 6
I) i1 = imread('pears.png');
figure
imshow(i1);
This has an output of figure 1
a=imread('street1.jpg');
imshow(a);
b=rgb2gray(a);
imshow(b);
imhist(b);
i=imread('pout.tif');
j=imadjust(i);
figure,imshow(i),figure,imshow(j);
close all
subplot(1,2,1);
subplot(1,2,1), imshow(j);
subplot(1,2,1), imshow(j); subplot(1,2,2),imshow(imbinarize(j));