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 次查看(过去 30 天)
显示 更早的评论
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 个评论
Mahdi
2014-6-2
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.
回答(1 个)
Image Analyst
2014-6-2
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 个评论
Image Analyst
2014-6-2
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!