convert to grayscale

12 visualizaciones (últimos 30 días)
James
James el 14 de Jul. de 2011
Respondida: Image Analyst el 27 de Mayo de 2014
Hi
I want to put a video into Matlab and convert it into grayscale.
Please help!

Respuesta aceptada

Harsha Vardhan Rao  Avunoori
Harsha Vardhan Rao Avunoori el 14 de Jul. de 2011
Editada: John Kelly el 27 de Mayo de 2014
Hello James,
You can load a video into MATLAB using VideoReader().
doc VideoReader
You can apply rgb2gray() on each frame.

Más respuestas (1)

Image Analyst
Image Analyst el 27 de Mayo de 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