PANDORE Version 6 GREYC-IMAGE

psumvalue



Measures global sum of grayscale image or graph.



Synopsis

psumvalue [im_in|-] [col_out|-]

Description

psumvalue calculates the total sum of the pixels of the input image im_in or of the nodes of the input graph.

For the graph, the sum is calculated from the node values.

The sum values for each band are stored in the collection col_out.

Notice : This operator is not maskable.

Inputs

Result

Returns the sum value (for the first band only). This value can be get using operator pstatus.

Examples

Measures the global sum of the tangram.pan (Unix version):

   psumvalue tangram.pan col.pan
   var=`pstatus`
   echo "Sum = $val"

Measures the global sum of the tangram.pan (MsDos version):

   psumvalue tangram.pan col.pan
   call pstatus
   call pset var
   echo Sum = %val%

See also

Image Features Extraction

C++ prototype

Float PSumValue( const Img2duc &im_in, Collection & col_out );

Version française

Calcul de la somme des valeurs de pixels (ou de sommets).


Author: Régis Clouard