PANDORE Version 6 GREYC-IMAGE

pvariancevalue



Measures global variance of grayscale image or graph.



Synopsis

pvariancevalue [im_in|-] [col_out|-]

Description

pvariancevalue measures the global variance of the input grayscale image or graph im_in.

The variance is calculated as follows:

   variance = MOMENT_2 - (MEAN * MEAN);

For image, the variance is measured from the pixel values.

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

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

Notice : This operator is not maskable.

Inputs

Outputs

Result

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

Examples

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

   pvariancevalue tangram.pan col.pan
   val=`pstatus`
   echo "Variance = $val"

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

   pvariancevalue tangram.pan col.pan
   call pstatus
   call pset val
   echo Variance = %val%

See also

Image Features Extraction

C++ Prototype

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

Version française

Calcul de la valeur variance des pixels d'une image (d'un graphe ou d'une carte de régions).


Author: Régis Clouard