How to load image from a folder in matlab gui then save it in a different folder with the result from the check boxes?
1 view (last 30 days)
Show older comments
How can i load an image from a folder with a push button named "Load image" then select the different attributes on the check box for that one image then save the image in a different folder and when one image is saved continue with the next image from the folder. I have attached a picture of the gui i created, maybe it will make more sense. Urgent
Thank you,
5 Comments
Mahdi
on 2 Jun 2014
I would recommend using the tutorial videos available on the MATLAB website using GUIDE. Found here along with Doug's helpful videos here. I think you can find you specific issue here.
From there, you would just have to code what the buttons do. You can also look on the file exchange to see if someone has already done what you requested.
Answers (1)
Image Analyst
on 2 Jun 2014
You need to put an axes on that figure. Use the tag axesImage, then in the callback function for load, do
myImage = imread(filename);
axes(handles.axesImage);
imshow(myImage);
I really recommend you have a list box loaded up with all the images rather than make the user suffer through using upgetfile() to select their image. The listbox callback would display the image like I showed above.
4 Comments
Image Analyst
on 2 Jun 2014
If you don't want to do them a file at a time, then see the FAQ:
You can process all the images in just one shot rather than the user clicking some control (button, listbox, slider or whatever) 10,000 times.
See Also
Categories
Find more on Migrate GUIDE Apps 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!