Load an image which i choose from a spesific folder
Mostra commenti meno recenti
I'm building a GUI in which i have a button that i want to load an image from specific folder.But i don't want a specific image.I want to have the choise to choose one image that i want(not multiple images just one).Is there any way to push that button open me the folder and choose my image? Images files must be (.bmp) Thanks a lot
Risposta accettata
Più risposte (1)
PRAJWAL GOWDA HM
il 13 Lug 2019
0 voti
[filename,filepath]=uigetfile({'*.bmp'},'Select and image');
selectedImage = imread(strcat(filepath, filename));
imshow(selectedImage);
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!