Why is the output movie of the Videowriter class missing information such as Colorbar and Axes Labels?
조회 수: 3 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2013년 11월 13일
답변: MathWorks Support Team
2013년 11월 13일
I am using the 'imagesc' method to insert images into my figure. I have a colorbar and some other information in my figure when I capture the frame. I write these frames to a video by using the 'writeVideo' method. The figures that are displayed look fine. However, when I play the movie, it is missing a lot of the information such as the COLORBAR, axes labels. Why is this happening?
I use the following commands to get the frame and write it to the video:
frame = getframe;
writeVideo(writerObj,frame);
채택된 답변
MathWorks Support Team
2013년 11월 13일
This occurs because when the captured frame using the 'getframe' method will capture only the axes information. In order to capture the entire figure, please use the 'getframe' method as shown below:
>> frame = getframe(gcf);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!