help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert RGB to a Gray scale image?


From: Søren Hauberg
Subject: Re: How to convert RGB to a Gray scale image?
Date: Wed, 23 Feb 2011 22:48:33 +0100

ons, 23 02 2011 kl. 13:06 -0800, skrev LaFolle:
> I am new and cannot find a function that would convert a RGB image to gray
> scale image.

If you have the 'image' package, the 'rgb2gray' does this. If not, you
can simply do a 

  gray = mean (RGB, 3);

but this assumes your image is stored as doubles.

Søren



reply via email to

[Prev in Thread] Current Thread [Next in Thread]