PANDORE Version 6 GREYC-IMAGE

pmean



Performs average between images or graphs.



Synopsis

pmean [-m mask] [im_in1|-] [im_in2|-] [im_out|-]

Description

pmean computes the average between the two inputs im_in1 and im_in2.

If inputs are image, the average is done on each pixel values:

   pixel(im_out) = ((pixel(im_in1) + pixel(im_in2))/2;

The two inputs must be of the same type.

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

If im_in1 and im_in2 are graphs then the new graph im_out is built with the average of node values.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Computes the mean between pixels of the two images a.pan and b.pan:

   pmean a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

Errc PMean( const Img2duc &im_in1, const Img2duc &im_in2, Img2duc &im_out );

Version française

Moyennage entre images ou graphes.


Author: Régis Clouard