Clear Filters
Clear Filters

How to load image from a folder in matlab gui then save it in a different folder with the result from the check boxes?

3 views (last 30 days)
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
Misrak Seifu
Misrak Seifu on 2 Jun 2014
so what i want to do is, i have a folder with 2000 pictures in it. And i want to load the pictures after the other. And when one picture loads on the gui i want to use to the check boxes to select what i want and then save the image in a different folder.
Mahdi
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.

Sign in to comment.

Answers (1)

Image Analyst
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
Misrak Seifu
Misrak Seifu on 2 Jun 2014
But the folder i have will have around 10,000 pictures. And i don't think you understand my question. And what i want to do is to code in matlab to go to this one folder that has all my pictures and when i push next on gui, it should pop me the first image then when i finish with that and press save push button it should save it to different folder then when i press next again should bring the next picture and so on...
I am sorry if this is too much, but i don't really know about programing but i really think this will make a big different one the project i want to work on.
Thank you
Image Analyst
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.

Sign in to comment.

Categories

Find more on Display Image 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!