HISTEQ

Purpose:

Performs histogram equalization of an image.

Syntax:

HISTEQ(image, intflag)

image

-

An array, the input image.

intflag

-

Optional. An integer, cast result to integer values:

0:

No (default)

1:

Yes

Returns:

An array.

Example:

W1: density(ravel(gsin(400, 1/400, 4), 20))

W2: histeq(W1)

 

returns an equalized image.

Example:

W1: density(ravel(readb("baboon.dat", ubyte), 128))

W2: histeq(W1)

 

equalizes the black & white mandrill image.

 

image\histeqpic.gif

Remarks:

HISTEQ expects an image of integer values.

See Also:

AMPDIST

HISTOGRAM

PARTSUM