Writing array to AVI using writeVideo

8 ビュー (過去 30 日間)
SteveH
SteveH 2016 年 3 月 4 日
I have double array I convert using I8bit = uint8(I); Here is snippet of my code that works:
vidProfile = 'Grayscale AVI' ;
v = VideoWriter(fname,vidProfile);
open(v);
writeVideo(v,I8bit);
close(v);
This provides no compression. If I try other profiles such as 'Archival' I get this error: 'Error using VideoWriter/writeVideo (line 408) IMG must be an array of either grayscale or RGB images.'
How do I compress 8bit grayscale for AVI?

回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by