PANDORE Version 6 GREYC-IMAGE

ppow



Computes nth power of an image or a graph.



Synopsis

ppow n [-m mask] [im_in|-] [im_out|-]

Description

ppow computes the nth power of the input im_in.

If im_in is an image then the new image im_out is built with the power of each pixel:

pixel(im_out)=pow(pixel(im_in),n)

The output image im_out is always a Float image.

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

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

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Computes the power 2 of the tangram.pan image.

   ppow 2 tangram.pan a.pan

See also

Arithmetic

C++ prototype

Errc PPow( const Img2duc &im_in, Img2duc &im_out, double n );

Version française

Puissance nième d'une image ou d'un graphe.


Author: Régis Clouard