PANDORE Version 6 GREYC-IMAGE

pmedianvalue



Measures median value of grayscale image.



Synopsis

pmedianvalue [im_in|-] [col_out|-]

Description

pmedianvalue returns the median value of the input image im_in.

To calculate the median value, the pixel are sorted in increasing order. If the number of pixels is odd then the median value is the middle value. If the number of pixels is even then the median value is the mean value between the two pixel values around the center.

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

Inputs

Outputs

Result

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

Examples

Measures the median the tangram.pan (Unix version):

   pmedianvalue tangram.pan col.pan
   var=`pstatus`
   echo "Median = $val"

Measures the median of the tangram.pan (MsDos version):

   pmedianvalue tangram.pan col.pan
   call pstatus
   call pset var
   echo Median = %val%

See also

Image Features Extraction

C++ prototype

Float PMedianeValue( const Img2dsf &im_in, Collection & col_out );

Version française

Recherche de la valeur médiane d'une image.


Author: Jalal Fadili