Specifications

Histogram, Threshold, and Compare Functions
10-9
10
ComputeHisto
Computes the intensity
histogram of an image.
void iplComputeHisto(IplImage*
srcImage
, IplLUT**
lut
);
srcImage
The source image for which the histogram will be
computed.
lut
An array of pointers to LUTs, one pointer for
each channel. Each lookup table should have the
key
array fully initialized. The
value
array will
be filled by this function. (For the
key
and
value
arrays, see “The IplLUT Structure” above.) The
same LUT can be shared by one or more
channels.
Discussion
The function iplComputeHisto() computes the intensity histogram of an
image. The histograms (one per channel in the image) are stored in the
array
lut
containing all the LUTs. The
key
array in each LUT should be
initialized before calling this function. The
value
array containing the
histogram information will be filled in by this function. (For the
key
and
value
arrays, see “The IplLUT Structure” above.)