Grayscale video output using grayscale images

1 回表示 (過去 30 日間)
Adrin
Adrin 2014 年 1 月 14 日
編集済み: Image Analyst 2014 年 1 月 16 日
Hello, Actually, I have several grayscale images which I used to make a video using 'VideoWriter'. However, the output video is a RGB video. Do you suggest any method that allow me to directly create a grayscale video ?
I thank you in advance,
Best regards,

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 1 月 15 日
When you create the VideoWriter object, specify 'VideoFormat', 'Grayscale'
  1 件のコメント
Image Analyst
Image Analyst 2014 年 1 月 16 日
編集済み: Image Analyst 2014 年 1 月 16 日
Allobro's "Answer" moved here, since it's not an answer to the original question.
I thank you for your answer, but you cannot change the 'VideoWriter' property 'VideoFormat' because it's a dynamic property.
If you can provide me another solution, I'll be really thankful to you.
Best regards.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by