Poniżej zamieszczam wczytanie obrazu
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global A FileName
[FileName, PathName ] =uigetfile({'*.jpg;*.tif;*.png;*.gif','All Image Files';...
'*.*', 'All Files (*.*)'}, ...
'Pick a file', ...
'MultiSelect', 'on');
addpath('zdjęcia','FExtraction');
% set(handles.axes1, 'string', 'bla'),
A = imread (FileName);
% axes(handles.axes1);
imshow(A,'Parent',handles.axes1);
oraz wczytanie guide
Kod: Zaznacz cały
h = findobj('Tag','GPA');
% if exists (not empty)
if ~isempty(h)
% get handles and other user-defined data associated to Gui1
g1data = guidata(h);
% maybe you want to set the text in Gui2 with that from Gui1
set(handles.text1,'String',get(g1data.edit1,'String'));
% maybe you want to get some data that was saved to the Gui1 app
x = getappdata(h,'x');
end
open Rtg_glowa_PA.fig;
close rtg_glowa