Afficher commentaires plus anciens
I have to get an image address through the Edit Box in the GUI. then, i want to read the image on that address using the imread function. how to do it?
Address is of the form C:\Users\user\Documents\MATLAB\xyz.png
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 5 Juin 2012
filename = get(handles.EDITBOXTAG, 'String'); %adjust EDITBOXTAG as needed
theimage = imread(filename);
2 commentaires
Shree Nath
le 5 Juin 2012
Walter Roberson
le 5 Juin 2012
theimage = imread(filename{1});
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!