LocalEq5x5

Local histogram equalisation using a 5x5 region.

 

function call:

[out_img1]=vsg('LocalEq5x5',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Description:

This function relies upon the application of histogram equalisation within a small (5×5) local area or window (5×5). This number of pixels in a small window (5×5) that are darker than the central pixel are counted. The number defines the intensity at the equivalent point in the output image.

out_img1 – An image which has dimensions the same as the input image. The output image displays local equalisation of the input image.

 

Example:

img = openimage('lake.jpg');

h=figure;image(uint8(img)); set(h,'Name','Input');

[out_img1]=vsg('LocalEq5x5',img);

h=figure;image(uint8(out_img1));set(h,'Name','LocalEq5x5');

Notes:

1. For DICOM images, the function operates on all slices separately.

2. For RGB images, the function operates on all colour planes separately.

Home       Functions       Back