uint16 画像のコレクションから AVI ムービーを作成するための単純な MATLAB シーケンスがあります。
video = VideoWriter( vidName );
video.FrameRate = ( frmRate );
open( video );
for i=1:size
img = imread( picNames(i).name );
writeVideo( video, img );
end
close( video );
これにより、エラーが発生しますIMG must be one of the following classes: double, single, uint8
。精度の低下や圧縮の追加なしにこれを回避する方法についてのアイデアはありますか?