[mmLabelflat] [Up] [mmGlblshow] Measurements

mmStats
Find global image statistics.

Synopsis

Double mmStats ( const Image& f , const String& measurement );

Input

f Image [ Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image ]

measurement String

Choose the measure to compute: 'max', 'min', 'median', 'mean', 'sum', 'std', 'std1'.

Output

y Double []

Description

Compute global image statistics: 'max' - maximum gray-scale value in image; 'min' - minimum gray-scale value in image; 'sum' - sum of all pixel values; 'median' - median value of all pixels in image; 'mean' - mean value of all pixels in image; 'std' - standard deviation of all pixels (normalized by N-1); 'std1' - idem, normalized by N.

Equation

See also

mmHistogram Find the histogram of the image f.
mmBlob Blob measurements from a labeled image.
mmGrain Gray-scale statistics for each labeled region.
[mmLabelflat] [Up] [mmGlblshow]