Effacer les filtres
Effacer les filtres

How to call the images in pushbutton2 ?

1 vue (au cours des 30 derniers jours)
Sara
Sara le 30 Avr 2017
Commenté : Sara le 1 Mai 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 ?

Réponse acceptée

Image Analyst
Image Analyst le 30 Avr 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 commentaires
Image Analyst
Image Analyst le 30 Avr 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 le 1 Mai 2017
thanks for helping me :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by