help-octave
[Top][All Lists]
Advanced

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

convert RGB image to grayvalues


From: Andreas Weber
Subject: convert RGB image to grayvalues
Date: Wed, 23 Apr 2014 10:49:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

Am 23.04.2014 09:34, schrieb Dincy Paul:
> Hi..
> How to convert an RGB image into a gray scale image . Please help.
> Regards
> Dincy

Dear Dincy, please don't post messages with empty subject. Without
subject you may receive less answers.

To your question:
the image package has a function "rgb2gray" which does this for you on
base of luminance values, 0.29894 * red + 0.58704 * green + 0.11402 * blue

http://octave.sourceforge.net/image/function/rgb2gray.html

-- Andy



reply via email to

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