You are on page 1of 2

Tugas 1:

Nama : Riyan Rizkiyawan


NIM : F1B014084

%tampil foto asli


i=imread('2017.jpg');
subplot(2,2,1);
imshow(i);
title('Foto Asli');
size(i)

%tampil foto resize


resize = imresize(i,[300 230]);
subplot(2,2,2);
imshow(resize);
title('Foto Resize 300 x 230');
size(resize)

%tampil foto grayscale


grey=rgb2gray(i);
subplot(2,2,3);
imshow(grey);
title('Grayscale Image')
size(grey)

%tampil histogram
hist=imhist(grey);
subplot(2,2,4);
plot(hist);
title('Histogram')
Size

You might also like