PANDORE Version 6 GREYC-IMAGE

plipmultcst



Performs scalar multiplication of image according to the LIP model.



Synopsis

plipmultcst cst [-m mask] [im_in|-] [im_out|-]

Description

plipmultcst computes the scalar multiplication of an input image im_in, according to the LIP model (Logarithmic Image Processing).

The LIP scalar multiplication is defined as:

im_out(x,y) = M - M.[1-(im_in(x,y)/M)]^cst;
where M is the number of gray tones (eg, 256 for byte images).

The output file is of the same type as the input file.

For color or multispectral image, plipmultcst is computed separately on each band (marginal approach).

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Divides the tangram.pan pixel values by 2:

   plipmultcst 0.5 tangram.pan a.pan

See also

Arithmetic

C++ prototype

Errc PLipMultCst( const Img2duc &im_in, Img2duc &im_out, float cst );

Version française

Multiplication d'une image par une constante selon le modèle LIP.


Author: Régis Clouard