PANDORE Version 6 GREYC-IMAGE

parraynorm



Performs normalization between 0 and 1 of items of one array.



Synopsis

parraynorm name [col_in|-] [col_out|-]

Description

arraynorm creates the collection col_out with the normalized versions of the array name of the input collection col_in. The array in the output collection is converted to Double, and each item has been divided by the maximum value of the related type in the input array. For example, each item of Uchar array is divided by 255. The result values are between 0 and 1 for unsigned type or between -1 and 1 for signed type.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples




See also

Array

C++ prototype

Errc PArrayNorm( Collection &col_in_out, const std::string &name );

Version française

Normalisation des valeurs d'un vecteur entre 0 et 1.


Author: Alexandre Duret-Lutz