[問題] 關於使用matlab輸出avi影片 已回收
不好意思~小弟我之前問過要在圖上標點的問題
因為標完點的frame
是要用來作成影片使用
所以已經知道可以先用getframe
抓取我要的frame
再用addframe
加進所建立的avi中
aviobj = avifile('Drosophila.avi','fps',3);
% 一秒播三張
for k = 1:32
imshow(vedio(k).cdata);
hold on
plot(position(1),postion(2),'b*');
hold off
obj = getframe(gcf);
aviobj = addframe(aviobj,obj.cdata);
end
aviobj = close(aviobj);
程式碼為上面
程式執行卻反而出現了
Warning: Cannot locate Indeo5 compressor, using 'None'
as the compression type.
See Mathworks Technical Solution 1-4G50RI for more
information.
??? Error using ==> avi
Failed to open file.
Error in ==> avifile.avifile at 173
aviobj.FileHandle = avi('open',filename);
上面這樣的訊息
不知道到底是哪裡出錯了
囧rz
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.55.27
推
03/18 04:30, , 1F
03/18 04:30, 1F
→
03/18 16:09, , 2F
03/18 16:09, 2F
→
03/18 16:10, , 3F
03/18 16:10, 3F
推
03/18 20:35, , 4F
03/18 20:35, 4F