How to save an image using a push button on MATLAB gui
5 次查看(过去 30 天)
显示 更早的评论
Hi,
I have just started working with MATLAB GUI. I can open an image, process the image but unable to save the image to a destination folder.
Any help will be appreciated.
0 个评论
采纳的回答
Walter Roberson
2015-8-26
[filename, foldername] = uiputfile('Where do you want the file saved?');
complete_name = fullfile(foldername, filename);
imwrite(TheArray, complete_name);
6 个评论
Image Analyst
2017-3-19
They are returned from uiputfile() - it's whatever the user chose. You can also use imsave() instead of uiputfile().
Walter Roberson
2017-3-19
In other words they are not constants, they are values returned by the uigetfile routine according what the user chooses.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!