Function File: J = histeq (I, n)

Equalize histogram of grayscale image.

The histogram contains n bins, which defaults to 64.

I: Image in double format, with values from 0.0 to 1.0.

J: Returned image, in double format as well.

Note that the algorithm used for histogram equalization gives results qualitatively comparable but numerically different from MATLAB implementation.

See also: imhist, mat2gray, brighten.

Package: image