How to store an image in variable via GUI and then use it later in code?
Show older comments
Hi all, i'm pretty new at Matlab and I'm using it as a student. I'm working on a project and I stuck at some point. The idea is that we made an algorithm that's doing it's thing, using 2 photos and filtering them etc. That works fine when you enter the name of the file in .m file, but we need to create a GUI where you have buttons to load images (have axis to show them) and after that you have to press another button to begin it's simulation/task. How can I do that? I know how to load those images as a button callback (with browse options), but how to use those loaded images later on other button callbacks? Thank you in advance! I hope i was clear enough, and hope someone can help me cuz it's kinda urgent :)
Answers (2)
Fangjun Jiang
on 13 Jun 2011
0 votes
You need to pass variables among GUIs through their handles. There are plenty of QAs on this topic. Search the forum and see if you can find the answer, like
Image Analyst
on 14 Jun 2011
0 votes
Categories
Find more on Convert Image Type 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!