PANDORE Version 6 | GREYC-IMAGE |
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.
Returns SUCCESS or FAILURE.
Normalizes tangram.pan pixel between 10 and 234:
pnormalization 10 234 tangram.pan a.pan
Normalisation d'une image entre deux valeurs extrèmes.
Author: Régis Clouard