Clear Filters
Clear Filters

how to take image as a user input from folder?

2 views (last 30 days)
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?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 3 Feb 2014
You can use uigetfile and copyfile functions
Azzi Abdelmalek
Azzi Abdelmalek on 3 Feb 2014
Edited: Azzi Abdelmalek on 3 Feb 2014
image=uigetfile([folder '\' ext])
copyfile(old_image,['C:\Users\Romesha\images\' image]);

Sign in to comment.

More Answers (2)

waseem almuhtaseb
waseem almuhtaseb on 14 Feb 2019

Alex Taylor
Alex Taylor on 3 Feb 2014
Depending on your exact use case, I'd also recommend looking at the imsave and imputfile functions exposed by the Image Processing Toolbox.


Find more on Read, Write, and Modify Image in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!