LocalHistoEqualize method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short LocalHistoEqualize (ILEADRaster *pRaster, short iWidth, short iHeight, short ixExt, short iyExt, short iType, short iSmooth);

Overview

Refer to Changing Brightness and Contrast

Remarks

(Medical only) Linearizes the number of pixels locally in a bitmap, based on the specified color space. This can be used to bring out the detail in dark areas of an image, and smooth the edges between blocks.

This method applies the histogram equalizer locally on the image. The image is divided into local rectangles of dimension (iWidth ,iHeight). The number of pixels inside each local rectangle are linearized according the histogram calculated for an extended rectangle around each local rectangle. The extended rectangles are of dimension

((iWidth+2 * ixExt) , ( iHeight + 2 * iyExt)).

For an example, see the following drawing:

image\HistoExt.gif

Use this method to bring out details in an image that has portions that are too dark or too bright. An example of this is a picture taken with a flashlight in a dark room. In such a picture, the subject receives good light while the background is very dark. The application of the local histogram brings out details, but creates a blocky artifact. Use iSmooth to reduce the blockiness of the result.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

Intensity method, GammaCorrect method, Contrast method, HistoContrast method, StretchIntensity method, RemapIntensity method, Invert method, Hue method, Saturation method, Fill method, GetHistogram method, Pixel property, ShowLocalHistoEqualizeDlg method

Topics:

Raster Images: Modifying Intensity Values