saveas doesn't wait until imcontrast is finished

11 次查看(过去 30 天)
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

采纳的回答

Stephen23
Stephen23 2020-10-5
h = imcontrast(gg);
waitfor(h)
Simply close the tool when you are finished, the code will then continue executing.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by