PANDORE Version 6 GREYC-IMAGE

pmaximumvalue



Measures global maximum value of image, region map or graph.



Synopsis

pmaximumvalue [-m mask] [im_in|-] [col_out|-]

Description

pmaximumvalue returns the maximum value in the input image or region map or graph im_in. if im_in is an image, the maximum value is the maximum pixel value on each band. If im_in is a region map, the maximum value is the maximum label value. If im_in is a graph, the maximum value is the maximum node value.

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

Inputs

Outputs

Result

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

Examples

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

   pmaximumvalue tangram.pan col.pan
   val=`pstatus`
   echo "Maximum = $val"

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

   pmaximumvalue tangram.pan col.pan
   call pstatus
   call pset val
   echo Maximum = %val%

See also

Image Features Extraction

C++ prototype

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

Version française

Recherche de la valeur de pixel maximum dans une image (un graphe ou une carte de régions).


Author: Régis Clouard