Can anyone help with this error, i am trying to create a video with thos lines of code :
frame=im2frame(gcf);
writeVideo(writerObj,frame);
But i got the following error
Error using im2frame
Can only make movie frames from image matrices of type double or uint8
Error in skeleton (line 65)
frame=im2frame(gcf);

 採用された回答

MJFcoNaN
MJFcoNaN 2022 年 7 月 13 日

1 投票

Hello,
getframe is the suitable fucntion there:
frame = getframe(gcf);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2022 年 7 月 12 日

回答済み:

2022 年 7 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by