convert to grayscale

Hi
I want to put a video into Matlab and convert it into grayscale.
Please help!

 Accepted Answer

Harsha Vardhan Rao  Avunoori
Edited: John Kelly on 27 May 2014

3 votes

Hello James,
You can load a video into MATLAB using VideoReader().
doc VideoReader
You can apply rgb2gray() on each frame.

More Answers (1)

Image Analyst
Image Analyst on 27 May 2014

0 votes

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!