PANDORE Version 6 GREYC-IMAGE

pcontrastvalue



Measures the global contrast value of grayscale image or graph.



Synopsis

pcontrastvalue [im_in|-] [col_out|-]

Description

pcontrastvalue measures the global contrast of the input image im_in or the input graph im_in.

The contrast is the difference between the minimum and maximum values:

 contrast(im_in) = max(im_in) - min(im_in).

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

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

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

Inputs

Outputs

Result

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

Examples

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

   pcontrastvalue tangram.pan col.pan
   var=`pstatus`
   echo "Contrast = $val"

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

   pcontrastvalue tangram.pan col.pan
   call pstatus
   call pset var
   echo Contrast = %val%

See also

Image Features Extraction

C++ prototype

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

Version française

Calcul du contraste global d'une image ou d'un graphe.


Author: Régis Clouard