HistoEqualize method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall HistoEqualize (int nFlags);

Delphi Syntax

function HistoEqualize (nFlags: Integer):Integer;

Overview

Refer to Changing Brightness and Contrast.

Remarks

Linearizes the number of pixels, in a bitmap, based on the specified color space. This can be used to bring out the detail in dark areas of an image.

Previously this method only equalized the number of pixels per gray level, using a gray level representation of the image. This method is now obtained by passing GRAY_SPACE for nFlags.

For the best results, set nFlags to YUV_SPACE.

This method can process the whole image or a region of the image.

This method supports 12 and 16-bit grayscale images and 48 and 64-bit color images. Support for 12 and 16-bit grayscale images 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

Topics:

Raster Images: Modifying Intensity Values

 

Raster Images: Using Histograms

 

Raster Images: Where the Region Preempts the Bitmap