MATLAB Answers

James
0

convert to grayscale

Asked by James
on 14 Jul 2011
Latest activity Answered by Image Analyst
on 27 May 2014

Hi

I want to put a video into Matlab and convert it into grayscale.

Please help!

  0 Comments

2 Answers

Edited by John Kelly
on 27 May 2014
 Accepted answer

Hello James,

You can load a video into MATLAB using VideoReader().

doc VideoReader

You can apply rgb2gray() on each frame.

  0 Comments


Answer by Image Analyst
on 27 May 2014

See attached demo. Put rgb2gray() in there to adapt it to do what you want.

  0 Comments


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!