saveas doesn't wait until imcontrast is finished
조회 수: 10 (최근 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
댓글 수: 0
채택된 답변
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 Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!