Borrar filtros
Borrar filtros

How to call the images in pushbutton2 ?

1 visualización (últimos 30 días)
Sara
Sara el 30 de Abr. de 2017
Comentada: Sara el 1 de Mayo de 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 ?

Respuesta aceptada

Image Analyst
Image Analyst el 30 de Abr. de 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 comentarios
Image Analyst
Image Analyst el 30 de Abr. de 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 el 1 de Mayo de 2017
thanks for helping me :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by