1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| function Ouvrir_Callback(hObject, eventdata, handles)
% hObject handle to Ouvrir (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[file,path] = uigetfile('*.*');
%Chargement de l'image et affichage
handles.img = imread(sprintf('%s',path,file));
I=imhist(img);
%Affichage de l'aperçu
axes(handles.axes1)
handles.courant_data = handles.img;
subimage(handles.courant_data);
axes(handles.axes2)
handles.imgt = 256;
subimage(handles.imgt);
axes(handles.axes3)
subimage(handles.I);
%Grrrrrrrr
handles.output = hObject;
% Update handles structure
guidata(hObject, handles); |
Partager