Hello everyone, i am doing a gui in which i ll load 3 images into 3 axes. Now i want exactly those images to be loaded into the 3 axes in the next gui when i press a pushbutton . How do i go about it? Please do help me
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jeevan
am 4 Mai 2014
Beantwortet: Image Analyst
am 4 Mai 2014
[File, folders] = uigetfile('*.*', 'MultiSelect', 'on') filename1=strcat(folders,File{1}) filename2=strcat(folders,File{2}) filename3=strcat(folders,File{3})
image1=imread(filename1); axes(handles.axes2) imshow(image1) handles.img=image1; guidata(hObject, handles);
image2=imread(filename2); axes(handles.axes3) imshow(image2) handles.img=image2; guidata(hObject, handles);
image3=imread(filename3); axes(handles.axes1) imshow(image3) handles.img=image3; guidata(hObject, handles);
How can i load these 3 images in Main.m gui to Sub.m when i press pushbutton in sub.m?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 4 Mai 2014
It's not easy. See the FAQ : http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!