MATLAB Answers

convert to grayscale

110 views (last 30 days)
Hi
I want to put a video into Matlab and convert it into grayscale.
Please help!

  0 Comments

Sign in to comment.

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.

  0 Comments

Sign in to comment.

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.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!