PANDORE Version 6 GREYC-IMAGE

pblend



Performs alpha blending of image or graph.



Synopsis

pblend alpha [-m mask] [im_in1|-] [im_in2|-] [im_out|-]

Description

pblend computes the alpha blending of the two inputs im_in1 and im_in2.

If im_in1 and im_in2 are images then the new image im_out is built with the blending of each pixels:

pixel(im_out) = alpha*pixel(im_in1) + (1-alpha)*pixel(im_in2);

The two inputs must be of the same type.

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

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

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

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Performs a mean operation between a.pan and b.pan:

   pblend 0.5 a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

Errc PBlend( const Img2duc &im_in1, const Img2duc &im_in2, Img2dsf &im_out, Float alpha );

Version française

Mélange d'images ou de graphes.


Author: Régis Clouard