ユーザーから画像の名前を取得し、それを既存の画像と比較して、一致するかどうかを表示できるようにするmatlab関数を作成しました。
function matchin
handles = guidata(gcbo);
set(handles.h_text,'String','performing matching...');
[image1, pathname]= uigetfile('*.bmp','Open An Fingerprint image');
Directory = fullfile ('F:','matlab','bin');
D = dir(fullfile(Directory,'*.bmp'));
set(handles.h_text,'String','matching complete....');
for i = 1:numel(D)
if strcmp(image1,D(i).name)
disp('matched');
else
disp('not matched');
end
end
上記のコードはファイル名が存在するかどうかをチェックしますが、ファイル名の代わりに画像自体を比較したいと思います。どうすればいいですか?助けてください。
よろしく
プリヤ