Clear Filters
Clear Filters

How to call the images in pushbutton2 ?

1 view (last 30 days)
Sara
Sara on 30 Apr 2017
Commented: Sara on 1 May 2017
Hi. i want to ask,lets say i have 10 images in folder. i want to set at pushbutton1, first load image1 . at pushbutton2 i want to process(my coding) the image1 that i load . pushbutton3 , i set reset. so then after finished the process, i reset and want to load image 2 also at pushbutton1 . how can i call the process of the images 2 ,3 and so on at pushbutton2 ?

Accepted Answer

Image Analyst
Image Analyst on 30 Apr 2017
Why not just read it in and process it all in one button press? Otherwise you'll have to follow the methods in the FAQ if you want to do your more cumbersome, user-unfriendly method: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
  3 Comments
Image Analyst
Image Analyst on 30 Apr 2017
Why not use MAGIC? http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component Simply put all your code into the AnalyzeSingleImage function.
Otherwise, just don't have pushbuttons 2 and 3 and take all the code from those buttons' callback functions and transfer them to the callback of pushbutton 1.
Sara
Sara on 1 May 2017
thanks for helping me :)

Sign in to comment.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!