how to take image as a user input from folder?
조회 수: 1 (최근 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!