1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Executes on button press in SIFTO.
function SIFTO_Callback(hObject, eventdata, handles)
% hObject handle to SIFTO (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% les entrées numériques
octaves=str2num(get(handles.octave,'String'));
intervals=str2num(get(handles.intervals,'String'));
contrast_threshold=str2num(get(handles.contrast_threshold,'String'));
seuilbord=str2num(get(handles.seuilbord,'String'));
% charger une image
a=imread('C:\TP\c-001-01.bmp');
im=im2double(a);
[ pos, scale, orient, desc ] = SIFT(im, octaves, intervals, ones(size(im)),contrast_threshold,seuilbord,1)
% affichage :
pos =
[]
scale =
[]
orient =
[]
desc =
[] |
Partager