User interface with GUI and callbacks working as interruption in a main function

Is it possible to create an interface that execute a main and the callbacks functions works as interruptions? I need an user interface that when the user push an on button the program starts to take images from a camera and then procesed them and show them on the interface. The program needs image changing on the user interface until the button on is pushed again and it interrupt the main programme that are catching and processing images

3 件のコメント

Geoff Hayes
Geoff Hayes 2019 年 4 月 28 日
Conchi - please clarify what you mean by execute a main. Is this a function that your GUI calls which performs the task? Does it use a timer to periodically "take" the images and then processes them? What does it do with the processed image - display it in the GUI? Please provide more details on how the GUI interacts with this main function.
Conchi Gongora Luque
Conchi Gongora Luque 2019 年 4 月 28 日
Yes, main function takes images from a camera and process them consecutively with a timer. Them I need a GUI interface that starts the process with a button and them stop it with another button. My problem is how can I call a function that may be running until it is interrupted by another pushed button. I mean how can I create a main function that is interrupted by callback in the user interface.
Rik
Rik 2019 年 4 月 28 日
Clarification posted as duplicate question by Conchi Gongora Luque:
I have a artificial vision aplication and now I want to program a user interface that can show the client the image processed that the camera is taking. The image showed in the interface is constantly changing without any user interaction (without pushing any button ) and I don't know how to change images from the GUI without any user interaction.
I would like to know how can I programe a process that look to see if the button was pressed in every iteration.

サインインしてコメントする。

 採用された回答

Rik
Rik 2019 年 4 月 28 日

0 投票

You can use the callback of that second button to stop the continously looping timer function.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImage Processing and Computer Vision についてさらに検索

質問済み:

2019 年 4 月 28 日

回答済み:

Rik
2019 年 4 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by