Implementasi Jaringan Syaraf Tiruan Bidirectional Associative Memory Untuk Pengidentifikasian Telapak Tangan Manusia (Studi Kasus: Mahasiswa S1 Ilmu Komputer Usu Stambuk 2010 Kom A)

LAMPIRAN LISTING PROGRAM
1. depan.m (Antarmuka Home)
function varargout = depan(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name',
mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @depan_OpeningFcn, ...
'gui_OutputFcn', @depan_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.

function depan_OpeningFcn(hObject, eventdata, handles,
varargin)
handles.output = hObject;
guidata(hObject, handles);
function varargout = depan_OutputFcn(hObject, eventdata,
handles)
a=imread('fak.jpg');
axes(handles.axes3); imshow(a)
varargout{1} = handles.output;
function Train_Callback(hObject, eventdata, handles)
proses
delete(handles.figure1);
% ------------------------------------------------------------------function Test_Callback(hObject, eventdata, handles)
Test
delete(handles.figure1);
% ------------------------------------------------------------------function help_Callback(hObject, eventdata, handles)
help
delete(handles.figure1);

Universitas Sumatera Utara


% ------------------------------------------------------------------function about_Callback(hObject, eventdata, handles)
about
delete(handles.figure1);
% ------------------------------------------------------------------function Exit_Callback(hObject, eventdata, handles)
respon=keluar('Title','Konfirmasi Keluar');
switch lower(respon)
case 'tidak'
case 'ya'
close
end

% --- Executes during object creation, after setting all
properties.
function axes_CreateFcn(hObject, eventdata, handles)
2.

proses.m (Antarmuka Train)

function varargout = proses(varargin)

gui_Singleton = 1;
gui_State = struct('gui_Name',
mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @proses_OpeningFcn, ...
'gui_OutputFcn', @proses_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
% --- Executes just before proses is made visible.
function proses_OpeningFcn(hObject, eventdata, handles,

varargin)
handles.output = hObject;
guidata(hObject, handles);
% --- Outputs from this function are returned to the command
line.
function varargout = proses_OutputFcn(hObject, eventdata,
handles)

Universitas Sumatera Utara

varargout{1} = handles.output;
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
gb1=imread('yayang1.jpg');
gb2=imread('reni1.jpg');
gb3=imread('danny1.jpg');
gb4=imread('angga1.jpg');
gb5=imread('hayatun1.jpg');
gb6=imread('intan1.jpg');
gb7=imread('janwandi1.jpg');

gb8=imread('rasyid1.jpg');
gb9=imread('agus1.jpg');
gb10=imread('umri1.jpg');
gb11=imread('nurhennida1.jpg');
gb12=imread('rivai1.jpg');
gb13=imread('singgih1.jpg');
gb14=imread('teguh1.jpg');
gb15=imread('teti1.jpg');
gb16=imread('fajrul1.jpg');
gb17=imread('amalya1.jpg');
gb18=imread('vito1.jpg');
gb19=imread('sunfirst1.jpg');
gb20=imread('johanes1.jpg');
axes(handles.axes1); imshow(gb1)
axes(handles.axes2); imshow(gb2)
axes(handles.axes3); imshow(gb3)
axes(handles.axes4); imshow(gb4)
axes(handles.axes5); imshow(gb5)
axes(handles.axes6); imshow(gb6)
axes(handles.axes7); imshow(gb7)

axes(handles.axes8); imshow(gb8)
axes(handles.axes9); imshow(gb9)
axes(handles.axes10); imshow(gb10)
axes(handles.axes11); imshow(gb11)
axes(handles.axes12); imshow(gb12)
axes(handles.axes13); imshow(gb13)
axes(handles.axes14); imshow(gb14)
axes(handles.axes15); imshow(gb15)
axes(handles.axes16); imshow(gb16)
axes(handles.axes17); imshow(gb17)
axes(handles.axes18); imshow(gb18)
axes(handles.axes19); imshow(gb19)
axes(handles.axes20); imshow(gb20)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
gb1 =getimage(handles.axes1);

Universitas Sumatera Utara

gb2 =getimage(handles.axes2);

gb3 =getimage(handles.axes3);
gb4 =getimage(handles.axes4);
gb5 =getimage(handles.axes5);
gb6 =getimage(handles.axes6);
gb7 =getimage(handles.axes7);
gb8 =getimage(handles.axes8);
gb9 =getimage(handles.axes9);
gb10 =getimage(handles.axes10);
gb11 =getimage(handles.axes11);
gb12 =getimage(handles.axes12);
gb13 =getimage(handles.axes13);
gb14 =getimage(handles.axes14);
gb15 =getimage(handles.axes15);
gb16 =getimage(handles.axes16);
gb17 =getimage(handles.axes17);
gb18 =getimage(handles.axes18);
gb19 =getimage(handles.axes19);
gb20 =getimage(handles.axes20);
gb1= imresize(gb1,[200 300]);
gb2= imresize(gb2,[200 300]);

gb3= imresize(gb3,[200 300]);
gb4= imresize(gb4,[200 300]);
gb5= imresize(gb5,[200 300]);
gb6= imresize(gb6,[200 300]);
gb7= imresize(gb7,[200 300]);
gb8= imresize(gb8,[200 300]);
gb9= imresize(gb9,[200 300]);
gb10= imresize(gb10,[200 300]);
gb11= imresize(gb11,[200 300]);
gb12= imresize(gb12,[200 300]);
gb13= imresize(gb13,[200 300]);
gb14= imresize(gb14,[200 300]);
gb15= imresize(gb15,[200 300]);
gb16= imresize(gb16,[200 300]);
gb17= imresize(gb17,[200 300]);
gb18= imresize(gb18,[200 300]);
gb19= imresize(gb19,[200 300]);
gb20= imresize(gb20,[200 300]);
axes(handles.axes1);
axes(handles.axes2);

axes(handles.axes3);
axes(handles.axes4);
axes(handles.axes5);
axes(handles.axes6);
axes(handles.axes7);
axes(handles.axes8);
axes(handles.axes9);

imshow(gb1)
imshow(gb2)
imshow(gb3)
imshow(gb4)
imshow(gb5)
imshow(gb6)
imshow(gb7)
imshow(gb8)
imshow(gb9)

Universitas Sumatera Utara


axes(handles.axes10);
axes(handles.axes11);
axes(handles.axes12);
axes(handles.axes13);
axes(handles.axes14);
axes(handles.axes15);
axes(handles.axes16);
axes(handles.axes17);
axes(handles.axes18);
axes(handles.axes19);
axes(handles.axes20);

imshow(gb10)
imshow(gb11)
imshow(gb12)
imshow(gb13)
imshow(gb14)
imshow(gb15)
imshow(gb16)
imshow(gb17)

imshow(gb18)
imshow(gb19)
imshow(gb20)

% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
gb1 =getimage(handles.axes1);
gb2 =getimage(handles.axes2);
gb3 =getimage(handles.axes3);
gb4 =getimage(handles.axes4);
gb5 =getimage(handles.axes5);
gb6 =getimage(handles.axes6);
gb7 =getimage(handles.axes7);
gb8 =getimage(handles.axes8);
gb9 =getimage(handles.axes9);
gb10 =getimage(handles.axes10);
gb11 =getimage(handles.axes11);
gb12 =getimage(handles.axes12);
gb13 =getimage(handles.axes13);
gb14 =getimage(handles.axes14);
gb15 =getimage(handles.axes15);
gb16 =getimage(handles.axes16);
gb17 =getimage(handles.axes17);
gb18 =getimage(handles.axes18);
gb19 =getimage(handles.axes19);
gb20 =getimage(handles.axes20);

citra_double1=double(gb1);
citra_double2=double(gb2);
citra_double3=double(gb3);
citra_double4=double(gb4);
citra_double5=double(gb5);
citra_double6=double(gb6);
citra_double7=double(gb7);
citra_double8=double(gb8);
citra_double9=double(gb9);
citra_double10=double(gb10);
citra_double11=double(gb11);
citra_double12=double(gb12);
citra_double13=double(gb13);
citra_double14=double(gb14);

Universitas Sumatera Utara

citra_double15=double(gb15);
citra_double16=double(gb16);
citra_double17=double(gb17);
citra_double18=double(gb18);
citra_double19=double(gb19);
citra_double20=double(gb20);

[b k c]=size(citra_double1);
for x=1:b
for y=1:k
semua_elemen1=citra_double1(x,y,1)+citra_double1(x,y,2)+
citra_double1(x,y,3);
gray_mean1(x,y)=semua_elemen1/3;
semua_elemen2=citra_double2(x,y,1)+citra_double2(x,y,2)+
citra_double2(x,y,3);
gray_mean2(x,y)=semua_elemen2/3;
semua_elemen3=citra_double3(x,y,1)+citra_double3(x,y,2)+
citra_double3(x,y,3);
gray_mean3(x,y)=semua_elemen3/3;
semua_elemen4=citra_double4(x,y,1)+citra_double4(x,y,2)+
citra_double4(x,y,3);
gray_mean4(x,y)=semua_elemen4/3;
semua_elemen5=citra_double5(x,y,1)+citra_double5(x,y,2)+
citra_double5(x,y,3);
gray_mean5(x,y)=semua_elemen5/3;
semua_elemen6=citra_double6(x,y,1)+citra_double6(x,y,2)+
citra_double6(x,y,3);
gray_mean6(x,y)=semua_elemen6/3;
semua_elemen7=citra_double7(x,y,1)+citra_double7(x,y,2)+
citra_double7(x,y,3);
gray_mean7(x,y)=semua_elemen7/3;
semua_elemen8=citra_double8(x,y,1)+citra_double8(x,y,2)+
citra_double8(x,y,3);
gray_mean8(x,y)=semua_elemen8/3;
semua_elemen9=citra_double9(x,y,1)+citra_double9(x,y,2)+
citra_double9(x,y,3);
gray_mean9(x,y)=semua_elemen9/3;
semua_elemen10=citra_double10(x,y,1)+citra_double10(x,y,2)+
citra_double10(x,y,3);

Universitas Sumatera Utara

gray_mean10(x,y)=semua_elemen10/3;
semua_elemen11=citra_double11(x,y,1)+citra_double11(x,y,2)+
citra_double11(x,y,3);
gray_mean11(x,y)=semua_elemen11/3;
semua_elemen12=citra_double12(x,y,1)+citra_double12(x,y,2)+
citra_double12(x,y,3);
gray_mean12(x,y)=semua_elemen12/3;
semua_elemen13=citra_double13(x,y,1)+citra_double13(x,y,2)+
citra_double13(x,y,3);
gray_mean13(x,y)=semua_elemen13/3;
semua_elemen14=citra_double14(x,y,1)+citra_double14(x,y,2)+
citra_double14(x,y,3);
gray_mean14(x,y)=semua_elemen14/3;
semua_elemen15=citra_double15(x,y,1)+citra_double15(x,y,2)+
citra_double15(x,y,3);
gray_mean15(x,y)=semua_elemen15/3;
semua_elemen16=citra_double16(x,y,1)+citra_double16(x,y,2)+
citra_double16(x,y,3);
gray_mean16(x,y)=semua_elemen16/3;
semua_elemen17=citra_double17(x,y,1)+citra_double17(x,y,2)+
citra_double17(x,y,3);
gray_mean17(x,y)=semua_elemen17/3;
semua_elemen18=citra_double18(x,y,1)+citra_double18(x,y,2)+
citra_double18(x,y,3);
gray_mean18(x,y)=semua_elemen18/3;
semua_elemen19=citra_double19(x,y,1)+citra_double19(x,y,2)+
citra_double19(x,y,3);
gray_mean19(x,y)=semua_elemen19/3;
semua_elemen20=citra_double20(x,y,1)+citra_double20(x,y,2)+
citra_double20(x,y,3);
gray_mean20(x,y)=semua_elemen20/3;
end
end
gb1=uint8(gray_mean1);
gb2=uint8(gray_mean2);
gb3=uint8(gray_mean3);
gb4=uint8(gray_mean4);
gb5=uint8(gray_mean5);

Universitas Sumatera Utara

gb6=uint8(gray_mean6);
gb7=uint8(gray_mean7);
gb8=uint8(gray_mean8);
gb9=uint8(gray_mean9);
gb10=uint8(gray_mean10);
gb11=uint8(gray_mean11);
gb12=uint8(gray_mean12);
gb13=uint8(gray_mean13);
gb14=uint8(gray_mean14);
gb15=uint8(gray_mean15);
gb16=uint8(gray_mean16);
gb17=uint8(gray_mean17);
gb18=uint8(gray_mean18);
gb19=uint8(gray_mean19);
gb20=uint8(gray_mean20);
axes(handles.axes1); imshow(gb1)
axes(handles.axes2); imshow(gb2)
axes(handles.axes3); imshow(gb3)
axes(handles.axes4); imshow(gb4)
axes(handles.axes5); imshow(gb5)
axes(handles.axes6); imshow(gb6)
axes(handles.axes7); imshow(gb7)
axes(handles.axes8); imshow(gb8)
axes(handles.axes9); imshow(gb9)
axes(handles.axes10); imshow(gb10)
axes(handles.axes11); imshow(gb11)
axes(handles.axes12); imshow(gb12)
axes(handles.axes13); imshow(gb13)
axes(handles.axes14); imshow(gb14)
axes(handles.axes15); imshow(gb15)
axes(handles.axes16); imshow(gb16)
axes(handles.axes17); imshow(gb17)
axes(handles.axes18); imshow(gb18)
axes(handles.axes19); imshow(gb19)
axes(handles.axes20); imshow(gb20)
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
gb1 =getimage(handles.axes1);
gb2 =getimage(handles.axes2);
gb3 =getimage(handles.axes3);
gb4 =getimage(handles.axes4);
gb5 =getimage(handles.axes5);
gb6 =getimage(handles.axes6);
gb7 =getimage(handles.axes7);
gb8 =getimage(handles.axes8);
gb9 =getimage(handles.axes9);
gb10 =getimage(handles.axes10);
gb11 =getimage(handles.axes11);

Universitas Sumatera Utara

gb12
gb13
gb14
gb15
gb16
gb17
gb18
gb19
gb20

=getimage(handles.axes12);
=getimage(handles.axes13);
=getimage(handles.axes14);
=getimage(handles.axes15);
=getimage(handles.axes16);
=getimage(handles.axes17);
=getimage(handles.axes18);
=getimage(handles.axes19);
=getimage(handles.axes20);

h=fspecial('unsharp');
h1=imfilter(gb1,h);
h2=imfilter(gb2,h);
h3=imfilter(gb3,h);
h4=imfilter(gb4,h);
h5=imfilter(gb5,h);
h6=imfilter(gb6,h);
h7=imfilter(gb7,h);
h8=imfilter(gb8,h);
h9=imfilter(gb9,h);
h10=imfilter(gb10,h);
h11=imfilter(gb11,h);
h12=imfilter(gb12,h);
h13=imfilter(gb13,h);
h14=imfilter(gb14,h);
h15=imfilter(gb15,h);
h16=imfilter(gb16,h);
h17=imfilter(gb17,h);
h18=imfilter(gb18,h);
h19=imfilter(gb19,h);
h20=imfilter(gb20,h);
axes(handles.axes1); imshow(h1)
axes(handles.axes2); imshow(h2)
axes(handles.axes3); imshow(h3)
axes(handles.axes4); imshow(h4)
axes(handles.axes5); imshow(h5)
axes(handles.axes6); imshow(h6)
axes(handles.axes7); imshow(h7)
axes(handles.axes8); imshow(h8)
axes(handles.axes9); imshow(h9)
axes(handles.axes10); imshow(h10)
axes(handles.axes11); imshow(h11)
axes(handles.axes12); imshow(h12)
axes(handles.axes13); imshow(h13)
axes(handles.axes14); imshow(h14)
axes(handles.axes15); imshow(h15)
axes(handles.axes16); imshow(h16)
axes(handles.axes17); imshow(h17)
axes(handles.axes18); imshow(h18)

Universitas Sumatera Utara

axes(handles.axes19); imshow(h19)
axes(handles.axes20); imshow(h20)
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
gb1 =getimage(handles.axes1);
gb2 =getimage(handles.axes2);
gb3 =getimage(handles.axes3);
gb4 =getimage(handles.axes4);
gb5 =getimage(handles.axes5);
gb6 =getimage(handles.axes6);
gb7 =getimage(handles.axes7);
gb8 =getimage(handles.axes8);
gb9 =getimage(handles.axes9);
gb10 =getimage(handles.axes10);
gb11 =getimage(handles.axes11);
gb12 =getimage(handles.axes12);
gb13 =getimage(handles.axes13);
gb14 =getimage(handles.axes14);
gb15 =getimage(handles.axes15);
gb16 =getimage(handles.axes16);
gb17 =getimage(handles.axes17);
gb18 =getimage(handles.axes18);
gb19 =getimage(handles.axes19);
gb20 =getimage(handles.axes20);
gb1=(edge(gb1,'canny',0.17));
gb2=(edge(gb2,'canny',0.17));
gb3=(edge(gb3,'canny',0.17));
gb4=(edge(gb4,'canny',0.17));
gb5=(edge(gb5,'canny',0.17));
gb6=(edge(gb6,'canny',0.17));
gb7=(edge(gb7,'canny',0.17));
gb8=(edge(gb8,'canny',0.17));
gb9=(edge(gb9,'canny',0.17));
gb10=(edge(gb10,'canny',0.17));
gb11=(edge(gb11,'canny',0.17));
gb12=(edge(gb12,'canny',0.17));
gb13=(edge(gb13,'canny',0.17));
gb14=(edge(gb14,'canny',0.17));
gb15=(edge(gb15,'canny',0.17));
gb16=(edge(gb16,'canny',0.17));
gb17=(edge(gb17,'canny',0.17));
gb18=(edge(gb18,'canny',0.17));
gb19=(edge(gb19,'canny',0.17));
gb20=(edge(gb20,'canny',0.17));
[b k]=size(gb1);
for x=1:b
for y=1:k
if gb1(x,y)==0

Universitas Sumatera Utara

gb1(x,y)=1;
elseif gb1(x,y)>0
gb1(x,y)=0;
end
end
end
[b k]=size(gb2);
for x=1:b
for y=1:k
if gb2(x,y)==0
gb2(x,y)=1;
elseif gb2(x,y)>0
gb2(x,y)=0;
end
end
end
[b k]=size(gb3);
for x=1:b
for y=1:k
if gb3(x,y)==0
gb3(x,y)=1;
elseif gb3(x,y)>0
gb3(x,y)=0;
end
end
end
[b k]=size(gb4);
for x=1:b
for y=1:k
if gb4(x,y)==0
gb4(x,y)=1;
elseif gb4(x,y)>0
gb4(x,y)=0;
end
end
end
[b k]=size(gb5);
for x=1:b
for y=1:k
if gb5(x,y)==0
gb5(x,y)=1;
elseif gb5(x,y)>0
gb5(x,y)=0;
end
end
end

Universitas Sumatera Utara

[b k]=size(gb6);
for x=1:b
for y=1:k
if gb6(x,y)==0
gb6(x,y)=1;
elseif gb6(x,y)>0
gb6(x,y)=0;
end
end
end
[b k]=size(gb7);
for x=1:b
for y=1:k
if gb7(x,y)==0
gb7(x,y)=1;
elseif gb7(x,y)>0
gb7(x,y)=0;
end
end
end
[b k]=size(gb8);
for x=1:b
for y=1:k
if gb8(x,y)==0
gb8(x,y)=1;
elseif gb8(x,y)>0
gb8(x,y)=0;
end
end
end
[b k]=size(gb9);
for x=1:b
for y=1:k
if gb9(x,y)==0
gb9(x,y)=1;
elseif gb9(x,y)>0
gb9(x,y)=0;
end
end
end
[b k]=size(gb10);
for x=1:b
for y=1:k
if gb10(x,y)==0
gb10(x,y)=1;
elseif gb10(x,y)>0

Universitas Sumatera Utara

gb10(x,y)=0;
end
end
end
[b k]=size(gb11);
for x=1:b
for y=1:k
if gb11(x,y)==0
gb11(x,y)=1;
elseif gb11(x,y)>0
gb11(x,y)=0;
end
end
end
[b k]=size(gb12);
for x=1:b
for y=1:k
if gb12(x,y)==0
gb12(x,y)=1;
elseif gb12(x,y)>0
gb12(x,y)=0;
end
end
end
[b k]=size(gb13);
for x=1:b
for y=1:k
if gb13(x,y)==0
gb13(x,y)=1;
elseif gb13(x,y)>0
gb13(x,y)=0;
end
end
end
[b k]=size(gb14);
for x=1:b
for y=1:k
if gb14(x,y)==0
gb14(x,y)=1;
elseif gb14(x,y)>0
gb14(x,y)=0;
end
end
end
[b k]=size(gb15);
for x=1:b

Universitas Sumatera Utara

for y=1:k
if gb15(x,y)==0
gb15(x,y)=1;
elseif gb15(x,y)>0
gb15(x,y)=0;
end
end
end
[b k]=size(gb16);
for x=1:b
for y=1:k
if gb16(x,y)==0
gb16(x,y)=1;
elseif gb16(x,y)>0
gb16(x,y)=0;
end
end
end
[b k]=size(gb17);
for x=1:b
for y=1:k
if gb17(x,y)==0
gb17(x,y)=1;
elseif gb17(x,y)>0
gb17(x,y)=0;
end
end
end
[b k]=size(gb18);
for x=1:b
for y=1:k
if gb18(x,y)==0
gb18(x,y)=1;
elseif gb18(x,y)>0
gb18(x,y)=0;
end
end
end
[b k]=size(gb19);
for x=1:b
for y=1:k
if gb19(x,y)==0
gb19(x,y)=1;
elseif gb19(x,y)>0
gb19(x,y)=0;
end

Universitas Sumatera Utara

end
end
[b k]=size(gb20);
for x=1:b
for y=1:k
if gb20(x,y)==0
gb20(x,y)=1;
elseif gb20(x,y)>0
gb20(x,y)=0;
end
end
end
axes(handles.axes1);imshow(gb1)
axes(handles.axes2);imshow(gb2)
axes(handles.axes3);imshow(gb3)
axes(handles.axes4);imshow(gb4)
axes(handles.axes5);imshow(gb5)
axes(handles.axes6);imshow(gb6)
axes(handles.axes7);imshow(gb7)
axes(handles.axes8);imshow(gb8)
axes(handles.axes9);imshow(gb9)
axes(handles.axes10);imshow(gb10)
axes(handles.axes11);imshow(gb11)
axes(handles.axes12);imshow(gb12)
axes(handles.axes13);imshow(gb13)
axes(handles.axes14);imshow(gb14)
axes(handles.axes15);imshow(gb15)
axes(handles.axes16);imshow(gb16)
axes(handles.axes17);imshow(gb17)
axes(handles.axes18);imshow(gb18)
axes(handles.axes19);imshow(gb19)
axes(handles.axes20);imshow(gb20)

% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
gb1 =getimage(handles.axes1);
gb2 =getimage(handles.axes2);
gb3 =getimage(handles.axes3);
gb4 =getimage(handles.axes4);
gb5 =getimage(handles.axes5);
gb6 =getimage(handles.axes6);
gb7 =getimage(handles.axes7);
gb8 =getimage(handles.axes8);
gb9 =getimage(handles.axes9);
gb10 =getimage(handles.axes10);
gb11 =getimage(handles.axes11);
gb12 =getimage(handles.axes12);

Universitas Sumatera Utara

gb13
gb14
gb15
gb16
gb17
gb18
gb19
gb20

=getimage(handles.axes13);
=getimage(handles.axes14);
=getimage(handles.axes15);
=getimage(handles.axes16);
=getimage(handles.axes17);
=getimage(handles.axes18);
=getimage(handles.axes19);
=getimage(handles.axes20);

gb1=double(reshape(gb1,1,60000));
gb2=double(reshape(gb2,1,60000));
gb3=double(reshape(gb3,1,60000));
gb4=double(reshape(gb4,1,60000));
gb5=double(reshape(gb5,1,60000));
gb6=double(reshape(gb6,1,60000));
gb7=double(reshape(gb7,1,60000));
gb8=double(reshape(gb8,1,60000));
gb9=double(reshape(gb9,1,60000));
gb10=double(reshape(gb10,1,60000));
gb11=double(reshape(gb11,1,60000));
gb12=double(reshape(gb12,1,60000));
gb13=double(reshape(gb13,1,60000));
gb14=double(reshape(gb14,1,60000));
gb15=double(reshape(gb15,1,60000));
gb16=double(reshape(gb16,1,60000));
gb17=double(reshape(gb17,1,60000));
gb18=double(reshape(gb18,1,60000));
gb19=double(reshape(gb19,1,60000));
gb20=double(reshape(gb20,1,60000));
t1=[1 0 1 0 1 0 0 1 0 1 1];
t2=[0 0 0 1 0 1 0 0 0 0 0];
t3=[1 1 1 0 1 1 1 1 1 1 1];
t4=[0 1 0 1 0 0 1 0 1 0 1];
t5=[0 1 1 0 1 0 0 1 0 1 0];
t6=[0 1 0 1 0 1 0 0 0 0 0];
t7=[1 0 1 0 1 1 1 1 1 1 1];
t8=[0 0 0 1 0 0 1 0 1 0 0];
t9=[1 0 1 0 1 1 0 1 0 1 1];
t10=[0 0 0 1 0 0 0 0 0 0 1];
t11=[1 1 1 0 1 1 1 1 1 1 0];
t12=[0 1 0 1 0 0 1 0 1 0 0];
t13=[1 1 1 0 1 0 0 1 0 1 1];
t14=[1 1 0 1 0 1 0 0 0 0 1];
t15=[1 0 1 0 1 0 1 1 1 1 1];
t16=[0 0 0 1 0 1 1 0 1 0 0];
t17=[1 0 1 0 1 1 0 1 0 1 0];
t18=[0 0 0 1 0 0 0 0 0 0 0];
t19=[1 1 1 0 1 0 1 1 1 1 1];
t20=[0 1 0 1 0 1 1 0 1 0 0];

Universitas Sumatera Utara

t=[t1;t2;t3;t4;t5;t6;t7;t8;t9;t10;t11;t12;t13;t14;t15;t16;t17;
t18;t19;t20];
s
=[gb1;gb2;gb3;gb4;gb5;gb6;gb7;gb8;gb9;gb10;gb11;gb12;gb13;gb14
;gb15;gb16;gb17;gb18;gb19;gb20];
ya=2*t-1;
xa=2*s-1;
w=zeros(60000,11);
xlswrite('pelatihan.xlsx',w,'bobot','A1:K60000');
nilai_y = xa*w;
[r k]=size(nilai_y);
for i=1:r
for j=1:k
if nilai_y(i,j)0;
nilai_y(i,j)=1;
end
end
end
disp(nilai_y)
h=msgbox('Train finish and weight is saved','Information');
function Home_Callback(hObject, eventdata, handles)
depan
delete(handles.figure1);
% ------------------------------------------------------------------function Train_Callback(hObject, eventdata, handles)
proses
delete(handles.figure1);
% ------------------------------------------------------------------function Test_Callback(hObject, eventdata, handles)
Test
delete(handles.figure1);
% ------------------------------------------------------------------function Help_Callback(hObject, eventdata, handles)
help
delete(handles.figure1);
% ------------------------------------------------------------------function About_Callback(hObject, eventdata, handles)

Universitas Sumatera Utara

about
delete(handles.figure1);
% ------------------------------------------------------------------function Exit_Callback(hObject, eventdata, handles)
respon=keluar('Title','Konfirmasi Keluar');
switch lower(respon)
case 'tidak'
case 'ya'
close
end

3. test.m (Antarmuka Test)
function varargout = Test(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name',
mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Test_OpeningFcn, ...
'gui_OutputFcn', @Test_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
function Test_OpeningFcn(hObject, eventdata, handles,
varargin)
handles.output = hObject;
guidata(hObject, handles);
% --- Outputs from this function are returned to the command
line.
function varargout = Test_OutputFcn(hObject, eventdata,
handles)
varargout{1} = handles.output;
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
[nama_file,nama_path] = uigetfile({'*.jpg','File jpeg
(*.jpg)'},'Buka File Citra');

Universitas Sumatera Utara

if ~isequal(nama_file,0)
gbr=imread(fullfile(nama_path,nama_file))
axes(handles.axes1);
imshow(gbr);
else
return;
end;
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
citra=getimage(handles.axes1);
citra=imresize(citra,[200 300]);
citra_double=double(citra);
[b k c]=size(citra_double);
for x=1:b
for y=1:k
semua_elemen1=citra_double(x,y,1)+citra_double(x,y,2)+
citra_double(x,y,3);
gray_mean1(x,y)=semua_elemen1/3;
end
end
gbr=uint8(gray_mean1);
h=fspecial('unsharp');
m=imfilter(gbr,h);
m1=imfilter(m,h);
m2=imfilter(m1,h);
%m3=imfilter(m2,h);
%m4=imfilter(m3,h);
gb1=(edge(m2,'canny',0.17));
[b k]=size(gb1);
for x=1:b
for y=1:k
if gb1(x,y)==0
gb1(x,y)=1;
elseif gb1(x,y)>0
gb1(x,y)=0;
end
end
end
gbr=double(reshape(gb1,1,60000));
palm=2*gbr-1;
t1=[1
t2=[0
t3=[1
t4=[0
t5=[0
t6=[0
t7=[1
t8=[0
t9=[1

0
0
1
1
1
1
0
0
0

1
0
1
0
1
0
1
0
1

0
1
0
1
0
1
0
1
0

1
0
1
0
1
0
1
0
1

0
1
1
0
0
1
1
0
1

0
0
1
1
0
0
1
1
0

1
0
1
0
1
0
1
0
1

0
0
1
1
0
0
1
1
0

1
0
1
0
1
0
1
0
1

1];
0];
1];
1];
0];
0];
1];
0];
1];

Universitas Sumatera Utara

t10=[0
t11=[1
t12=[0
t13=[1
t14=[1
t15=[1
t16=[0
t17=[1
t18=[0
t19=[1
t20=[0

0
1
1
1
1
0
0
0
0
1
1

0
1
0
1
0
1
0
1
0
1
0

1
0
1
0
1
0
1
0
1
0
1

0
1
0
1
0
1
0
1
0
1
0

0
1
0
0
1
0
1
1
0
0
1

0
1
1
0
0
1
1
0
0
1
1

0
1
0
1
0
1
0
1
0
1
0

0
1
1
0
0
1
1
0
0
1
1

0
1
0
1
0
1
0
1
0
1
0

1];
0];
0];
1];
1];
1];
0];
0];
0];
1];
0];

t=[t1;t2;t3;t4;t5;t6;t7;t8;t9;t10;t11;t12;t13;t14;t15;t16;t17;
t18;t19;t20;];
y=2*t-1;
w=xlsread('pelatihan.xlsx','bobot','A1:K60000');
nilai = palm*w;
[r k]=size(nilai);
for i=1:r
for j=1:k
if nilai(i,j)0;
nilai_y(i,j)=1;
end
end
end
disp(nilai_y);
hasil='';
hasil2='';
if nilai_y==t1;
hasil='Yayang Kurniati ';
hasil2='101401057';
gb1=imread('fyayang.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t2;
hasil='Reni Ramadhani';
hasil2='101401017';
gb1=imread('freni.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t3;
hasil='Danny Rizky';
hasil2='101401037';
gb1=imread('fdanny.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t4;
hasil='Angga Wiranda'
hasil2='101401073';
gb1=imread('fangga.jpg');

Universitas Sumatera Utara

axes(handles.axes2); imshow(gb1)
elseif nilai_y==t5;
hasil='Hayatun Nufus'
hasil2='101401013';
gb1=imread('fhayatun.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t6
hasil='Intan PS Mat'
hasil2='101401021';
gb1=imread('fintan.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t7;
hasil='Janwandi Sinaga'
hasil2='101401095';
gb1=imread('fjanwandi.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t8;
hasil='Ahmad Rasyidi'
hasil2='101401001';
gb1=imread('cantik.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t9;
hasil='Agus Prabowo'
hasil2='101401019';
gb1=imread('fagus.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t10;
hasil='Umri Herdiansyah'
hasil2='101401033';
gb1=imread('fumri.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t11;
hasil='Nurhennida Sitepu';
hasil2='101401097';
gb1=imread('fnurhennida.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t12;
hasil='Rivai H Purba'
hasil2='101401047';
gb1=imread('frivai.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t13;
hasil='Singgih Trimukti'
hasil2='101401075';
gb1=imread('fsinggih.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t14;
hasil='Teguh Arif F'
hasil2='101401063';
gb1=imread('fteguh.jpg');

Universitas Sumatera Utara

axes(handles.axes2); imshow(gb1)
elseif nilai_y==t15;
hasil='Tetti Sinaga '
hasil2='101401067';
gb1=imread('fteti.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t16;
hasil='Fajrul Falah'
hasil2='101401041';
gb1=imread('ffajrul.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t17;
hasil='Amalya Chairy '
hasil2='101401085';
gb1=imread('famalya.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t18;
hasil='Vito Erpindo'
hasil2='101401087';
gb1=imread('fvito.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t19;
hasil='Sunfirst Lady JeanFera Nababan'
hasil2='101401083';
gb1=imread('fsunfirst.jpg');
axes(handles.axes2); imshow(gb1)
elseif nilai_y==t20;
hasil='Johanes Prima saragih'
hasil2='101401049';
gb1=imread('fjohanes.jpg');
axes(handles.axes2); imshow(gb1)
else
hasil='Tidak Dikenali';
hasil2='0';
gb1=imread('tidak.jpg');
axes(handles.axes2); imshow(gb1)
end
set(handles.edit1,'String',hasil);
set(handles.edit2,'String',hasil2);
% --- Executes during object creation, after setting all
properties.
function edit1_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in reset.
function reset_Callback(hObject, eventdata, handles)

Universitas Sumatera Utara

guidata(hObject,handles);
handles.reset=handles.axes2;
set(handles.edit1,'string','');
set(handles.edit2,'string','');
handles.reset=handles.axes1;
imshow(handles.reset);
% ------------------------------------------------------------------function Home_Callback(hObject, eventdata, handles)
depan
delete(handles.figure1);
% ------------------------------------------------------------------function Preprocessing_Callback(hObject, eventdata, handles)
proses
delete(handles.figure1);
% ------------------------------------------------------------------function Train_Callback(hObject, eventdata, handles)
Train
delete(handles.figure1);
% ------------------------------------------------------------------function Help_Callback(hObject, eventdata, handles)
help
delete(handles.figure1);
% ------------------------------------------------------------------function About_Callback(hObject, eventdata, handles)
about
delete(handles.figure1);
% ------------------------------------------------------------------function Exit_Callback(hObject, eventdata, handles)
respon=keluar('Title','Konfirmasi Keluar');
switch lower(respon)
case 'tidak'
case 'ya'
close
end
% --- Executes during object creation, after setting all
properties.
function edit2_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)

Universitas Sumatera Utara

a = getimage(handles.axes1);
nilai=str2num(get(handles.edit3,'string'));
b = imnoise(a,'gaussian',nilai*0.01);
axes(handles.axes1)
imshow(b);
function edit3_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all
properties.
function edit3_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

Universitas Sumatera Utara

CURRICULUM VITAE

Nama

: LennoraMarbun

Alamat Sekarang  : Jl. Pintu Air IV Gg Inpres, Medan

Alamat Orang Tua : Jl. Veteran No. 20 A, Doloksanggul
Telp/ Hp ☎

: 0819-7305-3319

Email

:

lennora@ymail.com

Pendidikan
1998 –2004

: SD Negeri173394 Doloksanggul

2004 – 2007

: SMP Negeri1Doloksanggul

2007 – 2010

: SMA Negeri1Doloksanggul

2010 – 2014

: Universitas Sumatera Utara (FasilkomTI –Ilmu Komputer)

Keahlian
Bahasa Pemrograman : C/C++, C#, MATLAB, OpenGL, PHP, HTML.
Database

: MySQL

Bahasa

: Indonesia, Inggris, Batak Toba.

Universitas Sumatera Utara

Dokumen yang terkait

Implementasi Jaringan Syaraf Metode Bidirectional Associative Memory untuk Pengenalan Pola Wajah

3 100 120

Implementasi Jaringan Syaraf Metode Bidirectional Associative Memory Untuk Pengenalan Pola Wajah

5 41 120

Implementasi Jaringan Syaraf Tiruan Bidirectional Associative Memory Untuk Pengidentifikasian Telapak Tangan Manusia (Studi Kasus: Mahasiswa S1 Ilmu Komputer Usu Stambuk 2010 Kom A)

3 13 108

Implementasi Jaringan Syaraf Metode Bidirectional Associative Memory Untuk Pengenalan Pola Wajah

0 0 6

Implementasi Jaringan Syaraf Metode Bidirectional Associative Memory Untuk Pengenalan Pola Wajah

0 0 2

Implementasi Jaringan Syaraf Tiruan Bidirectional Associative Memory Untuk Pengidentifikasian Telapak Tangan Manusia (Studi Kasus: Mahasiswa S1 Ilmu Komputer Usu Stambuk 2010 Kom A)

0 0 13

Implementasi Jaringan Syaraf Tiruan Bidirectional Associative Memory Untuk Pengidentifikasian Telapak Tangan Manusia (Studi Kasus: Mahasiswa S1 Ilmu Komputer Usu Stambuk 2010 Kom A)

0 0 1

Implementasi Jaringan Syaraf Tiruan Bidirectional Associative Memory Untuk Pengidentifikasian Telapak Tangan Manusia (Studi Kasus: Mahasiswa S1 Ilmu Komputer Usu Stambuk 2010 Kom A)

0 0 5

Implementasi Jaringan Syaraf Tiruan Bidirectional Associative Memory Untuk Pengidentifikasian Telapak Tangan Manusia (Studi Kasus: Mahasiswa S1 Ilmu Komputer Usu Stambuk 2010 Kom A)

0 2 18

Jaringan Syaraf Tiruan Bidirectional Associative Memory (BAM) Sebagai Identifikasi Pola Sidik jari Manusia ZAINAL ARIFIN

0 0 6