How to capture image in gui?
Ältere Kommentare anzeigen
I have created gui with two axes and one pushbutton. I use axes1 to view live video from webcam and i don't have problem with it. But i don't know how to capture the image from axes1 and display the image in axes2.
Akzeptierte Antwort
Weitere Antworten (1)
Roy Kadesh
am 16 Feb. 2018
0 Stimmen
You can use screencapture to use Java to make a capture of the contents of the axis, which you can then imshow (or image, or set(ax2,'CData',IM)).
1 Kommentar
Image Analyst
am 17 Mär. 2022
Or you can use exportgraphics() or copygraphics() if you have R2020b or later.
Kategorien
Mehr zu Read, Write, and Modify Image finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!