PANDORE Version 6 GREYC-IMAGE

pnormalization



Performs normalization of image or graph.



Synopsis

pnormalization min max [-m mask] [im_in|-] [im_out|-]

Description

pnormalization computes the normalization image's values or the graph's value between new values min et max.

If im_in is an image, pnormalization is applied on each pixel value:

pixel(im_out) = [(max - min) / (Max(im_in)-Min(im_in))] * pixel(im_in)
              + [(min*Max(im_in) - max*Min(im_in)) / (Max(im_in)-Min(im_in))];

For color or multispectral image, the normalization is computed separately on each band.

The output image im_out is of the same type as im_in.

If im_in is a graph then the new graph im_out is built with the normalization of each node value.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Normalizes tangram.pan pixel between 10 and 234:

   pnormalization 10 234 tangram.pan a.pan

See also

Arithmetic

C++ prototype

Errc PNormalization( const Img2duc &im_in, Img2duc &im_out, Uchar min, Uchar max );

Version française

Normalisation d'une image entre deux valeurs extrèmes.


Author: Régis Clouard