convert to grayscale

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

 Risposta accettata

Harsha Vardhan Rao  Avunoori
Modificato: John Kelly il 27 Mag 2014

3 voti

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

Più risposte (1)

Image Analyst
Image Analyst il 27 Mag 2014

0 voti

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