Error using im2frame

3 次查看(过去 30 天)
Ala baccar
Ala baccar 2022-7-12
回答: MJFcoNaN 2022-7-13
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
Hello,
getframe is the suitable fucntion there:
frame = getframe(gcf);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by