convert to grayscale

16 vues (au cours des 30 derniers jours)
James
James le 14 Juil 2011
Hi
I want to put a video into Matlab and convert it into grayscale.
Please help!

Réponse acceptée

Harsha Vardhan Rao  Avunoori
Harsha Vardhan Rao Avunoori le 14 Juil 2011
Modifié(e) : John Kelly le 27 Mai 2014
Hello James,
You can load a video into MATLAB using VideoReader().
doc VideoReader
You can apply rgb2gray() on each frame.

Plus de réponses (1)

Image Analyst
Image Analyst le 27 Mai 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!

Translated by