saveas doesn't wait until imcontrast is finished
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Harald von der Osten
el 5 de Oct. de 2020
Comentada: Harald von der Osten
el 5 de Oct. de 2020
I would like to save the output of imcontrast using saveas like:
imcontrast(gg)
saveas(gcf,'Result.jpg')
but "saveas" doesn't wait until imcontrast is finished, so it saves the original version of image gg. Okay, when imcontast is finished I can use saveas "by hand", but I would like to prefer to do this in this code. Is there any possibilty to do this without using for example
pause(10);
? And how can I save the parameters used in imcontrast?
Thanks a lot
0 comentarios
Respuesta aceptada
Stephen23
el 5 de Oct. de 2020
h = imcontrast(gg);
waitfor(h)
Simply close the tool when you are finished, the code will then continue executing.
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!