Professional Documents
Culture Documents
Tugas 1, Sudaesy
Tugas 1, Sudaesy
Script:
i=imread('sudaesy.jpg');
subplot(2,2,1); imshow(i); title('foto asli'); size(i)
resize = imresize(i,0.2);
subplot(2,2,2); imshow(resize); title('foto resize'); size(resize)
grey=rgb2gray(i);
subplot(2,2,3); imshow(grey); title('Gambar Grayscale');
Hasil :
Size foto asli dan foto resize: