Specifications

Intel
®
Image Processing Library Reference Manual
10-10
10
HistoEqualize
Enhances an image by
flattening its intensity
histogram.
void iplHistoEqualize(IplImage*
srcImage
,
IPLImage*
dstImage
, IplLUT**
lut
);
srcImage
The source image for which the histogram will be
computed.
dstImage
The resultant image after equalizing.
lut
The histogram of the image is represented as an
array of pointers to LUTs, one pointer for each
channel. Each lookup table should have the
key
and
value
arrays fully initialized. (For the
key
and
value
arrays, see “The IplLUT Structure
above.) These LUTs will contain flattened
histograms after this function is executed. In
other words, the call of
iplHistoEqualize() is
destructive with respect to the LUTs.
Discussion
The function iplHistoEqualize() enhances the source image
srcImage
by flattening its histogram represented by
lut
and places the enhanced
image in the output image
dstImage
. After execution,
lut
points to the
flattened histogram of the output image; see Example 10-2.