TEKNIK INFORMATIKA FAKULTAS SAINS DAN TEKNOLOGI UNIVERSITAS ISLAM NEGERI SUNAN KALIJAGA YOGYAKARTA 2014
1. Tahapan Eksekusi Program a. Muat gambar yang akan di deteksi
[filename, pathname] = uigetfile({'*.jpg';'*.bmp';'*.tif'}); a = imread([pathname filename]);
b. Konvert gambar yang menjadi Grayscale
S = rgb2gray(a)
c. Hough Transform edge detection
e = edge(S, 'canny'); imshow(e); radii = 15:1:40; h = circle_hough(e, radii, 'same', 'normalise'); peaks = circle_houghpeaks(h, radii, 'nhoodxy', 15, 'nhoodr', 21, 'npeaks', 10); imshow(e); hold on; for peak = peaks [x, y] = circlepoints(peak(3)); plot(x+peak(1), y+peak(2), 'g-'); end hold off
d. Hitung jumlah edge yang terhubung membentunk lingkaran 2. Tampilan Aplikasi