convert to grayscale

5 次查看(过去 30 天)
Hi
I want to put a video into Matlab and convert it into grayscale.
Please help!

采纳的回答

Harsha Vardhan Rao  Avunoori
编辑:John Kelly 2014-5-27
Hello James,
You can load a video into MATLAB using VideoReader().
doc VideoReader
You can apply rgb2gray() on each frame.

更多回答(1 个)

Image Analyst
Image Analyst 2014-5-27
See attached demo. Put rgb2gray() in there to adapt it to do what you want.

Community Treasure Hunt

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

Start Hunting!

Translated by