<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#330000">
    <div class="moz-cite-prefix">Hi<br>
      <br>
      I do not know how scilab does it, but i've been tought (in a
      general context) to use the luminance when doing this. More info
      here: <a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Luminance_%28relative%29">http://en.wikipedia.org/wiki/Luminance_%28relative%29</a><br>
      <br>
      According to this method, one should compute<br>
      Y = 0.2126 R + 0.7152 G + 0.0722 B<br>
      <br>
      and then use the color (Y,Y,Y) as a gray tone (in the RGB space).<br>
      I did not check wether Scilab actually does this.<br>
      <br>
      PS: the NASA has a great page on color usage, contrast, and more:
      <a class="moz-txt-link-freetext" href="http://colorusage.arc.nasa.gov/guidelines.php">http://colorusage.arc.nasa.gov/guidelines.php</a><br>
      <br>
      Best Regards<br>
      AVS<br>
      <br>
      01/08/2012 12:31, Damo wrote:<br>
    </div>
    <blockquote cite="mid:1343817093413-4024652.post@n3.nabble.com"
      type="cite">
      <pre wrap="">I am curious as to what is the formula used to convert RGB images to
grayscale, using the command RGB2Gray.

Any information will be helpful.



--
View this message in context: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/conversion-from-RGB-to-grayscale-tp4024652.html">http://mailinglists.scilab.org/conversion-from-RGB-to-grayscale-tp4024652.html</a>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.

--
To unsubscribe from this mailing-list, please send an empty mail to
<a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@lists.scilab.org">users-unsubscribe@lists.scilab.org</a>
To check the archives of this mailing list, see
<a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/">http://mailinglists.scilab.org/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>