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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
| function varargout = interface_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;
% --- Executes on button press in upload1.
function upload1_Callback(hObject, eventdata, handles)
% hObject handle to upload1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
axes(handles.axes1);
[filename,pathname]=uigetfile('*.tif','Select a picture');
I=imread(fullfile(pathname,filename),'tif');
%I=imread('kim.tif_10clustcomponents02.tif');
imshow(I);
% --- Executes on button press in upload2.
function upload2_Callback(hObject, eventdata, handles)
% hObject handle to upload2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
axes(handles.axes2);
[filename,pathname]=uigetfile('*.tif','Select a picture');
I=imread(fullfile(pathname,filename),'tif');
%I=imread('kim.tif_10clustcomponents10.tif');
imshow(I);
% --- Executes on button press in upload3.
function upload3_Callback(hObject, eventdata, handles)
% hObject handle to upload3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
axes(handles.axes4);
[filename,pathname]=uigetfile('*.tif','Select a picture');
I=imread(fullfile(pathname,filename),'tif');
%I=imread('kim.tif_10clustcomponents08.tif');
imshow(I);
%I1=contents(get(hObject,'value'));
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
axes(handles.axes3);
%handles.axes3=handles.axes1+handles.axes2
if hObject==handles.im1
x=get(handles.axes1,'CData');
set(handles.im1,'CData',x);
end
imshow(get(handles.im1,'CData'));
% --- Executes on button press in im1.
function im1_Callback(hObject, eventdata, handles)
% hObject handle to im1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of im1
if hObject==handles.im1
x=get(handles.axes1,'CData');
set(handles.im1,'CData',x);
end |
Partager