<< findContour Image_Processing_Tool_3 iterthresh >>

Image_Processing_Tool_3 >> Image_Processing_Tool_3 > hiseq

hiseq

Computes histogram equalization

Calling Sequence

y = hiseq(x)
y = hiseq(x,mn,mx)

Parameters

x

A matrix representing a gray scale image.

mn

A scaler representing lower pixel value for histogram equalization.

mx

A scaler representing upper pixel value for histogram equalization.

y

A matrix representing the histogram equalized gray scale image.

Description

It computes a histogram equalized gray scale image for a given gray scale image. If only gray scale is given as input, then the pixel range of histogram equalization is taken as the minimum and the maximum values of the gray scale image. To selectively perform histogram equalization of a desired pixel range, the minimum and maximum limits of the range are respectively given in the second and the third arguments.

Examples

x=imread('lena.png';
x=rgb2gray(x);
x=double(x);

// Histogram equalization between minimum and maximum pixel values
y=histeq(x);  
imshow(uint8(y)) // displaying histogram equalized image y

// Histogram equalization between for pixels in the range 100 -- 230
y=histeq(x,100,230); 
imshow(uint8(y)) // displaying histogram equalized image y

See Also

Authors

<< findContour Image_Processing_Tool_3 iterthresh >>