how to take image as a user input from folder?
3 ビュー (過去 30 日間)
古いコメントを表示
hi, i want to take an image from user as an input and selected/input image is saved to another new folder.. how can i do this?
0 件のコメント
採用された回答
Azzi Abdelmalek
2014 年 2 月 3 日
You can use uigetfile and copyfile functions
3 件のコメント
Azzi Abdelmalek
2014 年 2 月 3 日
編集済み: Azzi Abdelmalek
2014 年 2 月 3 日
ext='*.bmp'
folder='C:\Users\Romesha\Desktop\2';
image=uigetfile([folder '\' ext])
old_image=fullfile(folder,image)
copyfile(old_image,['C:\Users\Romesha\images\' image]);
その他の回答 (2 件)
Alex Taylor
2014 年 2 月 3 日
Depending on your exact use case, I'd also recommend looking at the imsave and imputfile functions exposed by the Image Processing Toolbox.
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!