How to capture image in gui?
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
Roy Kadesh
2018년 2월 16일
0 개 추천
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
Image Analyst
2022년 3월 17일
Or you can use exportgraphics() or copygraphics() if you have R2020b or later.
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!