How can I run a function up to a point, display the Results up to the point and the execute the rest function?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Christos Stefos
am 29 Dez. 2013
Beantwortet: Walter Roberson
am 29 Dez. 2013
%I want to run this function up to imshow(I,[]); ,then display the image in the gui for %some seconds till the rest of the commands{image edit scripts} are executed.What would be the %appropriate command
function pushbutton1_Callback(hObject, eventdata, handles)
handles.output = hObject;
[fn, pn] = uigetfile('*.jpg','Please select your image file');
complete = strcat(pn,fn);
set(handles.edit1,'string',complete);
I = imread(complete);
imshow(I,[]);
handles.BI = I;
run('grayklim.m');
run('filterit.m');
run ('gemiseholes.m');
imshow(I,[]);
guidata(hObject, handles);
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Dez. 2013
imagehandle = imshow(I,[]);
drawnow();
then run your commands. When you want it to disappear,
delete(imagehandle); drawnow()
Note: you do not need run() there, though it is acceptable. You can use
grayklim
filterit
gemiseholes
instead of the run() statements
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!