Professional Documents
Culture Documents
Nama: I Made Bayu Krisna Putra NIM: F1B015027 Tugas PCD Segementasi 2018 Memisahkan Suatu Objek Dalam Foto Script
Nama: I Made Bayu Krisna Putra NIM: F1B015027 Tugas PCD Segementasi 2018 Memisahkan Suatu Objek Dalam Foto Script
Nama: I Made Bayu Krisna Putra NIM: F1B015027 Tugas PCD Segementasi 2018 Memisahkan Suatu Objek Dalam Foto Script
NIM : F1B015027
Script :
close all;
clear all;
clc;
A= imread ('bayu.jpg');
size (A);
r= A (:,:,1);
g= A (:,:,2);
b= A (:,:,3);
grey= 0.3*(r) + 0.5*(g) + 0.2*(b);
figure,
subplot (2,2,1), imshow(A);
title('Gambar Ori');
subplot (2,2,2), imshow(grey);
title('Gambar Grey');
subplot (2,2,3), imhist(grey);
title('Histogram Grey');
subplot (2,2,4), imshow(Y);
title('Gambar Segmentasi');
Hasil :
4
x 10 Histogram Grey Gambar Segmentasi
4
0
0 100 200
Nama : Eva Estianingsih
NIM :
Script :
close all;
clear all;
clc;
A= imread ('eva.jpg');
size (A);
r= A (:,:,1);
g= A (:,:,2);
b= A (:,:,3);
grey= 0.3*(r) + 0.5*(g) + 0.2*(b);
figure,
subplot (2,2,1), imshow(A);
title('Gambar Ori');
subplot (2,2,2), imshow(grey);
title('Gambar Grey');
subplot (2,2,3), imhist(grey);
title('Histogram Grey');
subplot (2,2,4), imshow(Y);
title('Gambar Segmentasi');
Hasil :
15000
10000
5000
0
0 100 200