Azzera filtri
Azzera filtri

How to call the images in pushbutton2 ?

1 visualizzazione (ultimi 30 giorni)
Sara
Sara il 30 Apr 2017
Commentato: Sara il 1 Mag 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 ?

Risposta accettata

Image Analyst
Image Analyst il 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 Commenti
Image Analyst
Image Analyst il 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 il 1 Mag 2017
thanks for helping me :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by