• Tidak ada hasil yang ditemukan

Dari hasil analisis pengujian sistem Tugas Akhir ini dapat diambil kesimpulan sebagai berikut :

1. Penggabungan dua metode Principal Components Analysis (PCA) dan jaringan syaraf tiruan Propagasi Balik yang diterapkan dalam sistem pengenalan plat motor memberikan hasil yang baik. Hal ini ditunjukkan dengan tingkat akurasi 58,227%. 1 Hidden layer dengan jumlah iterasi 400 dengan target 1 10 dan 15 neuron dengan gambar plat motor pada roda dua yang diambil tampak depan dengan fungsi aktivasi logsig dan tansig. 2. Semakin banyak pola yang dilatihkan maka semakin banyak pola yang dapat

dikenali tetapi dengan konsekuensi waktu yang dibutuhkan lebih lama dari proses pelatihan dengan menggunakan satu jenis citra latih.

3. Segmentasi yang dilakukan pada citra masukkan/plat nomor dalam proses pengujian berhasil dilakukan dengan baik, sehingga semua karakternya berhasil dipotong dan dilabeling.

4. Pengenalan pola plat nomor kendaraan bermotor dengan menggunakan PCA dan Propagasi Balik masih memiliki beberapa kekurangan antara lain :

b. Preprocessing citra dalam mengurangi ketidakrataan histogram belum sepenuhnya diterapkan khususnya dalam mengatasi pencahayaan dan kemiringan.

5.2 Saran

Rekomendasi atau saran untuk Tugas Akhir ini adalah :

1. Sistem dapat diujikan kembali dengan ekstraksi ciri dan menggunakan metode yang lain dan bahasa pemrograman lainnya.

2. Sistem dapat dikembangkan dengan pengambilan foto dari bagian samping kiri dan samping kanan dan juga plat kendaraan bermotor pada roda 4. 3. Pengujian dan analisis sistem dapat ditambahkan metode histogram

equalization, metode mengatasi kemiringan plat motor dan cara mengatasi pantulan cahaya yang berlebihan pada foto plat motor roda dua agar dapat mengenali lebih banyak plat motor.

4. Perlu dilakukakan penelitian lanjutan untuk membuat sistem secara realtime,

sehingga dapat menjadi sistem parkir yang cukup baik.

5. Penambahan jumlah neuron, penambahan jumlah lapisan, penambahan jumlah citra yang berbeda diharapkan memberikan perbedaan pada hasil persentasi ketepatan pengenalan terutama proses pelatihan citra latih.

6. Pengembangan selanjutnya dapat melakukan nambahan fungsi aktivasi yang berbeda, melakukan proses perhitungan dengan menggunakan PCA kembali dan menyelesaikan proses pelatihan dengan 5 sampel data yang berbeda.

122

Applications, United States of America, A Wiley-Interscience Publication.

Adhi Wijaya, Tria,. (2010). Implementasi Visi Komputer dan Segmentasi Citra Untuk Klasifikasi Bobot Telur Ayam Ras. Jurnal Seminar Nasional Teknologi Informasi 2010 (SNATI 2010), 19 Juni 2010, Yogyakarta.

Alfa Krisnadhi, Adila. (2003). Optimasi PCA Pada Sistem Pengenalan Wajah 3 Dimensi Menggunakan Algoritma Genetika. Jurnal Ilmu Komputer dan Teknologi Informasi, Vol 3 No.2., Oktebor 2003., Jawa Barat.

Anonim, (2010), Tanda Nomor kendaraan Bermotor, diakses dari

http://id.wikipedia.org/wiki/Tanda_nomor_kendaraan_bermotor/ tanggal 14 Maret 2012.

Anonim, (2010), Plat Nomor, Diakses dari http://id.wikipedia.org/wiki/Plat_nomor tanggal 14 Maret 2012.

Drs.Jong Jek, M.Sc., (2009), Jaringan Syaraf Tiruan dan Pemrogramannya menggunakan Matlab, Yogyakarta, Andi Offset.

Haykin, Simon, (1994), Neural Network a Comprehensive foundation, New Jersey, Prentice Hall.

Hagan, Martin T., (1996), Neural Network Design, 20 Park Plaza, Bostonm PWS Publishing Co.

Kusumadewi, Sri, (2003), Artificial Intelligence (Teknik dan Aplikasinya),

Yogyakarta, Graha Ilmu.

Kusumadewi, Sri; Hartati, Sri, (2010), NEURO-FUZZY : Integrasi Sistem Fuzzy dan Jaringan Syaraf, Yogyakarta, Graha Ilmu.

Liliana, (2003), Segmentasi Plat Nomor Kendaraan Dengan Menggunakan Metode Run-length Smearing Algorithm (RLSA). Jurnal Jurusan Teknik Informatika, Fakultas Teknologi Industri, Universitas Kristen Petra.

Lim, Resmana,. (2003), Sistem Pengenalan Plat Nomor Mobil Dengan Metode Principal Components Analysis. Jurnal Jurusan Teknik Infromatika dan Elektro, Universitas Kristen Petra.

Prasetyaningtyas, Yuanita,. (2010), Klasifikasi Tandan Tangan Manusia Dengan Metode Jaringan Syaraf Tiruan Backpropagation. S.Kom. Skripsi. Yogyakarta, Indonesia: Universitas Sanata Dharma.

Putra, Darma., (2010), Pengolahan Citra Digital, Yogyakarta, Penerbit Andi Yogyakarta.

Santoso, Budi., (2007), Data Mining, Teknik Pemanfaatan Data Untuk Keperluan Bisnis : Teknik dan Aplikasi. Yogyakarta, Graha Ilmu.

MenuHome.m

function varargout = MenuHome(varargin)

% MENUHOME M-file for MenuHome.fig

% Edit the above text to modify the response to help MenuHome

% Last Modified by GUIDE v2.5 01-May-2013 01:04:10

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @MenuHome_OpeningFcn, ...

'gui_OutputFcn', @MenuHome_OutputFcn, ...

'gui_LayoutFcn', [] , ...

'gui_Callback', []);

if nargin && ischar(varargin{1})

gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before MenuHome is made visible.

function MenuHome_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn. % hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to MenuHome (see VARARGIN)

% Choose default command line output for MenuHome

handles.output = hObject; axes(handles.axes1);

imshow(imread('logousd.jpg'));

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes MenuHome wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = MenuHome_OutputFcn(hObject, eventdata, handles)

% ---

function Untitled_1_Callback(hObject, eventdata, handles)

% hObject handle to Untitled_1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

figure(normcitra);

% ---

function Untitled_2_Callback(hObject, eventdata, handles)

% hObject handle to Untitled_2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

figure(Pelatihan);

% ---

function Untitled_3_Callback(hObject, eventdata, handles)

% hObject handle to Untitled_3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

figure(pengujiancitra);

% ---

function Untitled_4_Callback(hObject, eventdata, handles)

% hObject handle to Untitled_4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % figure(Pelatihan);

nomrcitra.m

function varargout = normcitra(varargin)

% NORMCITRA M-file for normcitra.fig

% Edit the above text to modify the response to help normcitra

% Last Modified by GUIDE v2.5 30-Apr-2013 22:48:41

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @normcitra_OpeningFcn, ...

'gui_OutputFcn', @normcitra_OutputFcn, ...

'gui_LayoutFcn', [] , ...

'gui_Callback', []);

if nargin && ischar(varargin{1})

gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before normcitra is made visible.

function normcitra_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn. % hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to normcitra (see VARARGIN)

% Choose default command line output for normcitra

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes normcitra wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = normcitra_OutputFcn(hObject, eventdata,

handles)

% varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of m as text

% str2double(get(hObject,'String')) returns contents of m as a double

% --- Executes during object creation, after setting all properties.

function m_CreateFcn(hObject, eventdata, handles)

% hObject handle to m (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

function n_Callback(hObject, eventdata, handles)

% hObject handle to n (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of n as text

% str2double(get(hObject,'String')) returns contents of n as a double

% --- Executes during object creation, after setting all properties.

function n_CreateFcn(hObject, eventdata, handles)

% hObject handle to n (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

function pushbutton1_Callback(hObject, eventdata, handles)

% hObject handle to pushbutton1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

global path

m=str2num(get(handles.m,'string')); %% Convert string matrix to

numeric array

n=str2num(get(handles.n,'string'));

jk=36; B=[]; for i=1:jk

pause(.02); %%memperlambat perjalanan setiap karakter

set(handles.edit4,'string',i);

cmd=['I=imread(' char(39) path

'D:\Skripsweet\DEVI\DATA\Data Uji\Miring Kiri 2\' num2str(i) '.jpg'

char(39) ');']; eval(cmd); I=rgb2gray(I); I=255-I; axes(handles.axes2); imshow(I);

% I=edu_imgcrop(I); %%mendeteksi setiap titik dari gambar dan setiap titiknya BW

axes(handles.axes3); imshow(I); I=imresize(I,[m n]); imshow(I); I=reshape(I,[],1); %%aray % I=double(I); B=[B I]; end %% Proses PCA C=cov(double(B')); [a b]=eig(C); b1=diag(b); jum=0; i=0; while jum<.999999999999999 jum=jum+b1(m*n-i)/sum(sum(b1)); i=i+1; end

[a1 b1]=sort(a(:,end),'descend');

b1=b1(1:i); Bbaru=[]; for i=1:length(b1) Bbaru(i,:)=B(b1(i,:),:); end [m1 n1]=size(Bbaru); Bnew=[]; for i=1:m1 for j=1:n1

% save data1 B Bbaru m1 n1 jk b1 Bnew jum C b1 a1 m n %% Bentuk Nommal

% save data2 B Bbaru1 m1 n1 jk b1 Bnew jum C b1 a1 m n %% Bentuk Miring Kanan 1

% save data3 B Bbaru2 m1 n1 jk b1 Bnew jum C b1 a1 m n %% Miring Kanan 2

% save data4 B Bbaru3 m1 n1 jk b1 Bnew jum C b1 a1 m n %% Miring Kiri 1

save data5 B Bbaru4 m1 n1 jk b1 Bnew jum C b1 a1 m n %%

Miring Kiri 2 % figure, for i=1:36 subplot(4,9,i); imshow(reshape(B(:,i),m,n)); end

% --- Executes on button press in pushbutton2.

function pushbutton2_Callback(hObject, eventdata, handles)

% hObject handle to pushbutton2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

close(normcitra);

function edit4_Callback(hObject, eventdata, handles)

% hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit4 as text % str2double(get(hObject,'String')) returns contents of edit4 as a double

% --- Executes during object creation, after setting all properties.

function edit4_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

% --- Executes on button press in pushbutton3.

function pushbutton3_Callback(hObject, eventdata, handles)

% hObject handle to pushbutton3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

global path

[n p]=uigetfile('*.jpg');

Pelatihan.m

function varargout = Pelatihan(varargin)

% PELATIHAN M-file for Pelatihan.fig

% Edit the above text to modify the response to help Pelatihan

% Last Modified by GUIDE v2.5 09-Apr-2013 20:43:29

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @Pelatihan_OpeningFcn, ...

'gui_OutputFcn', @Pelatihan_OutputFcn, ...

'gui_LayoutFcn', [] , ...

'gui_Callback', []);

if nargin && ischar(varargin{1})

gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before Pelatihan is made visible.

function Pelatihan_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn. % hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% UIWAIT makes Pelatihan wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = Pelatihan_OutputFcn(hObject, eventdata,

handles)

% varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure

varargout{1} = handles.output;

function edit4_Callback(hObject, eventdata, handles)

% hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit4 as text % str2double(get(hObject,'String')) returns contents of edit4 as a double

% --- Executes during object creation, after setting all properties.

function edit4_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

function edit5_Callback(hObject, eventdata, handles)

% hObject handle to edit5 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit5 as text % str2double(get(hObject,'String')) returns contents of edit5 as a double

% --- Executes during object creation, after setting all properties.

function edit5_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit5 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

function edit6_Callback(hObject, eventdata, handles)

% hObject handle to edit6 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit6 as text % str2double(get(hObject,'String')) returns contents of edit6 as a double

% --- Executes during object creation, after setting all properties.

function edit6_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit6 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

% --- Executes on button press in pushbutton1.

function pushbutton1_Callback(hObject, eventdata, handles)

% hObject handle to pushbutton1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

load data1

P=[Bbaru Bbaru1 Bbaru2 Bbaru3 Bbaru4];

T=[eye(jk) eye(jk) eye(jk) eye(jk) eye(jk)]; [R,Q] = size(P);

[S2,Q] = size(T);

S1 = 15; %% jumlah HiddenLayer

net = newff(minmax(P),[S1 S2],{'logsig' 'logsig'},'traingdx');

net.LW{2,1} = net.LW{2,1}*0.01; net.b{2} = net.b{2}*0.01;

net.performFcn = 'mse';

net.trainParam.goal = str2num(get(handles.edit1,'string'));

net.trainParam.show = 20;

net.trainParam.epochs = 50000; net.trainParam.mc = 0.95;

net.trainParam.min_grad=1e-50;

net.trainParam.lr=.65; %laju pembelajaran

tic;

[net,tr] = train(net,P,T);

set(handles.edit4,'string',tr.perf(end));

set(handles.edit7,'string',toc);

save NET1 net b1 Bbaru P Q R S1 S2

huruf='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; hasil=[]; for i=1:36 y=sim(net,Bbaru(:,i)); [a b]=max(y); hasil=[hasil b(1)]; end benar=0; for i=1:length(hasil) if (huruf(hasil(i))==huruf(i)) benar=benar+1; end end Vad=huruf(hasil); Vad1=benar*100/length(hasil);

set(handles.edit8,'string',Vad1);

save NET1 Vad Vad1

% --- Executes on button press in pushbutton2.

function pushbutton2_Callback(hObject, eventdata, handles)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

close(Pelatihan);

function edit1_Callback(hObject, eventdata, handles)

% hObject handle to edit1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit1 as text % str2double(get(hObject,'String')) returns contents of edit1 as a double

% --- Executes during object creation, after setting all properties.

function edit1_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

function edit2_Callback(hObject, eventdata, handles)

% hObject handle to edit2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit2 as text % str2double(get(hObject,'String')) returns contents of edit2 as a double

% --- Executes during object creation, after setting all properties.

function edit2_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

% Hints: get(hObject,'String') returns contents of edit3 as text % str2double(get(hObject,'String')) returns contents of edit3 as a double

% --- Executes during object creation, after setting all properties.

function edit3_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

function edit7_Callback(hObject, eventdata, handles)

% hObject handle to edit7 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit7 as text % str2double(get(hObject,'String')) returns contents of edit7 as a double

% --- Executes during object creation, after setting all properties.

function edit7_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit7 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

function edit8_Callback(hObject, eventdata, handles)

% hObject handle to edit8 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit8 as text % str2double(get(hObject,'String')) returns contents of edit8 as a double

% --- Executes during object creation, after setting all properties.

function edit8_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit8 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

pengujiancitra.m

function varargout = pengujiancitra(varargin)

% PENGUJIANCITRA M-file for pengujiancitra.fig % See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help pengujiancitra

% Last Modified by GUIDE v2.5 30-Apr-2013 23:33:25

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @pengujiancitra_OpeningFcn, ...

'gui_OutputFcn', @pengujiancitra_OutputFcn, ...

'gui_LayoutFcn', [] , ...

'gui_Callback', []);

if nargin && ischar(varargin{1})

gui_State.gui_Callback = str2func(varargin{1});

end

% --- Executes just before pengujiancitra is made visible.

function pengujiancitra_OpeningFcn(hObject, eventdata, handles,

varargin)

% This function has no output args, see OutputFcn. % hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to pengujiancitra (see VARARGIN)

% Choose default command line output for pengujiancitra

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes pengujiancitra wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = pengujiancitra_OutputFcn(hObject, eventdata,

handles)

% varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure

varargout{1} = handles.output;

function edit3_Callback(hObject, eventdata, handles)

% hObject handle to edit3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit3 as text % str2double(get(hObject,'String')) returns contents of edit3 as a double

% --- Executes during object creation, after setting all properties.

% hObject handle to edit3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

function edit4_Callback(hObject, eventdata, handles)

% hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit4 as text % str2double(get(hObject,'String')) returns contents of edit4 as a double

% --- Executes during object creation, after setting all properties.

function edit4_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'),

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white');

end

% --- Executes on button press in pushbutton1.

function pushbutton1_Callback(hObject, eventdata, handles)

% hObject handle to pushbutton1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

%% PROSES TESTING DENGAN MENGGUNAKAN HASIL POTONGAN GAMBAR SEGMENTASI

%% Preprocessing Plat yang telah dipotong %%

global I;

[n p]=uigetfile('*.jpg');

% hObject handle to edit1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit1 as text % str2double(get(hObject,'String')) returns contents of edit1 as a double

% --- Executes during object creation, after setting all properties.

function edit1_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit1 (see GCBO)

Dokumen terkait