capture current image from a video-gui in a seperate gui
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everybody!
I have some really problems when I program GUIs. So I hope somebody of you can help and support me to solve this problem:
I have to 2 GUIs. In the first GUI "test_gui" there is a axes "axes1" in which a preview of a camera (i.e. firewire cam) is displayed. In the second GUI "image_cap" there is also one axes "image_axe2" in which I want to get the latest preview-image of the first GUI when pressing a GUI-button in the second GUI.
But unfortunately, it does not work: When switching from one gui to another the current preview-image is only seen in the current gui. In the other gui the preview is stopped until you go to the other gui again. --> the preview-video should only be displayed in the GUI "test_gui" and by pressing the button in the GUI "image_cap" only the latest image of the GUI "test_gui" should be displayed (and the next latest image should only be updated by pressing the button again).
So I hope that somebody can help me with code and explanations!
Many thanks!
0 Kommentare
Antworten (1)
Anathea Pepperl
am 21 Jun. 2011
I'm having a bit of trouble understanding what you want to do with your GUIs. If you want to get the image from the first GUI,the first thing you will have to get is the handles to test_gui. You may need to use the findall of findobj function in order to find all your figure handles, then find which handle is not the gcf (which should be your image_cap GUI).
Hope this helps.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!