PANDORE Version 6 GREYC-IMAGE

prgb2rngnbn



Converts RGB color image to normalized RGB color image.



Synopsis

prgb2rngnbn [-m mask] [im_in|-] [im_out|-]

Description

prgbrngnbn converts color image from the color space RGB to the normalized version of RGB.

Each color component is divided by the sum of the three components:

   red(im_out)=red(im_in)/(red(im_in)+green(im_in)+blue(im_in))
   green(im_out)=green(im_in)/(red(im_in)+green(im_in)+blue(im_in))
   blue(im_out)=blue(im_in)/(red(im_in)+green(im_in)+blue(im_in))

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

   prgb2rngnbn parrot.pan a.pan

See also

Color

C++ prototype

Errc PRGB2RNGNBN( const Imc2duc &im_in, Imc2dsf &im_out );

Version française

Changement d'espace couleur de RGB vers RGB normalisé.


Author: Olivier Lezoray