[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmstats - Find global image statistics.


Synopsis
y = mmstats( f, measurement )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8).
measurement: String. Choose the measure to compute: 'max', 'min', 'mean', 'sum', 'std', 'std1'.
Output
y:
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; 'mean' - mean value of all pixels in image; 'std' - standard deviation of all pixels (normalized by N-1); 'std1' - idem, normalized by N.
Examples
f=uint8([0 1 2 3 4 5 6]);
mmstats(f,'min')

ans =
     0
mmstats(f,'max')

ans =
     6
mmstats(f,'sum')

ans =
    21
mmstats(f,'mean')

ans =
     3
mmstats(f,'std')

ans =
    2.1602
mmstats(f,'std1')

ans =
     2
Equation

equation

See Also
mmblob - Blob measurements from a labeled image.
mmgrain - Gray-scale statistics for each labeled region.
mmhistogram - Find the histogram of the image f.

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems