Hide figure while using geframe/videowriter function
9 ビュー (過去 30 日間)
古いコメントを表示
I am using the function getframe in order to obtain frames from a figure and the videowriter to create a video from those frames. I need to hide the figure during the process. I used the command set(gcf,'visible','off') but the process stops with an error message popping up. It states that the frames obtained from the function getframe are not of the same size. Is there a solution or another way to overcome this problem? Thanks in advance.
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 4 月 25 日
編集済み: Ameer Hamza
2020 年 4 月 25 日
Call getframe with the axes handle
frame = getframe(gca); % gca is the current axes handle
It will only return the image of the axes.
8 件のコメント
Ameer Hamza
2020 年 4 月 27 日
Can you write a small code snippet which gives an error with videoWriter?
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!