[mmWatershed] [Up] [mmLabel] Measurements

mmHistogram
Find the histogram of the image f.

Synopsis

Image mmHistogram ( const Image& f , const String& option = "uint16" );

Input

f Image [ Gray-scale (uint8 or uint16) or binary image ]

option String

Values: "uint16" or "int32".

Default: "uint16"

Output

h Image [ Gray-scale (uint8 or uint16) image ]

Histogram in a uint16 or an int32 vector.

Description

Finds the histogram of the image f and returns the result in the vector h. For binary image the vector size is 2, for gray-scale uint8 and uint16 images, the vector size is the maximum pixel value plus one. h[0] gives the number of pixels with value 0.

Equation

See also

mmStats Find global image statistics.
mmBlob Blob measurements from a labeled image.
mmGrain Gray-scale statistics for each labeled region.
[mmWatershed] [Up] [mmLabel]