Load an image which i choose from a spesific folder
Show older comments
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
Accepted Answer
More Answers (1)
PRAJWAL GOWDA HM
on 13 Jul 2019
0 votes
[filename,filepath]=uigetfile({'*.bmp'},'Select and image');
selectedImage = imread(strcat(filepath, filename));
imshow(selectedImage);
Categories
Find more on Audio and Video Data 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!