PANDORE Version 6 | GREYC-IMAGE |
prgb2gray converts a color image of color space RGB to a gray scale image.
The algorithm is as follows:
pixel(im_out) = red*pixel.X(im_in)+green*pixel.Y(im_in)+blue*pixel.Z(im_in)/(red+green+blue);
For example, the NTSC standard method uses the following values for red, green and blue:
red=0.299; green=0.587; blue=0.114;
Returns SUCCESS or FAILURE.
Converts parrot.pan to gray level image using the NTSC standard conversion:
prgb2gray 0.299 0.587 0.114 parrot.pan a.pan
Changement d'espace couleur de RGB vers niveaux de gris.
Author: Régis Clouard