How to load image from a folder in matlab gui then save it in a different folder with the result from the check boxes?
Ältere Kommentare anzeigen
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 Kommentare
Mahdi
am 2 Jun. 2014
I don't think you attached the image of your GUI. It's even better to attach all the files associated with it.
Mahdi
am 2 Jun. 2014
This also sounds like homework, can you show us your effort and ask for more detailed questions?
Misrak Seifu
am 2 Jun. 2014
Misrak Seifu
am 2 Jun. 2014
Mahdi
am 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.
Antworten (1)
Image Analyst
am 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 Kommentare
Misrak Seifu
am 2 Jun. 2014
Image Analyst
am 2 Jun. 2014
Personally I hate that kind of user interface. I'd much rather have a listbox which lets you see the image names, or at the very least (and not as friendly) a slider. The slider would be appropriate for cases of sequential files, like all files are image_001 through image_999 or something.
Misrak Seifu
am 2 Jun. 2014
Image Analyst
am 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.
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!