PANDORE Version 6 GREYC-IMAGE

penergyvalue



Measures global energy of image or graph.



Synopsis

penergyvalue [im_in|-] [col_out|-]

Description

penergyvalue measures the global energy of the input image im_in or the input graph im_in.

The energy is:

   energy = SUM{ im_in[p] * im_in[p]} / N

For image, the energy is measured per band from the pixel values.

For graph, the energy is measured from the node values.

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

Inputs

Outputs

Result

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

Examples

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

   penergyvalue tangram.pan col.pan
   val=`pstatus`
   echo "Energy = $val"

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

   penergyvalue tangram.pan col.pan
   call pstatus
   call pset val
   echo Energy = %val%

See also

Image Features Extraction

C++ prototype

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

Version française

Calcul de l'énergie d'une image ou d'un graphe.


Author: Régis Clouard