how to take image as a user input from folder?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
romasha
le 3 Fév 2014
Réponse apportée : waseem almuhtaseb
le 14 Fév 2019
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 3 Fév 2014
You can use uigetfile and copyfile functions
3 commentaires
Azzi Abdelmalek
le 3 Fév 2014
Modifié(e) : Azzi Abdelmalek
le 3 Fév 2014
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]);
Plus de réponses (2)
waseem almuhtaseb
le 14 Fév 2019
[path,~]=imgetfile();
Im=imread(path);
Im=im2double(Im);
0 commentaires
Alex Taylor
le 3 Fév 2014
Depending on your exact use case, I'd also recommend looking at the imsave and imputfile functions exposed by the Image Processing Toolbox.
0 commentaires
Voir également
Catégories
En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!