convert to grayscale

5 views (last 30 days)
James
James on 14 Jul 2011
Answered: Image Analyst on 27 May 2014
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
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
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!