AdaptiveContrast method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AdaptiveContrast(unsigned uDim, unsigned uAmount, unsigned uFlags);

Delphi Syntax

Function AdaptiveContrast (uDim: L_UINT; uAmount: L_UINT; uFlags: L_UINT): L_INT;

Overview

Refer to Changing Brightness and Contrast

Remarks

(Medical only.) Performs adaptive contrast enhancement (ACE) to regions that are originally low in contrast.

Adaptive contrast enhancement (ACE) adjusts bitmap contrast by giving more contrast to areas which are originally low in contrast. This is different from histogram-based techniques, which are based on all bitmap pixels (the histogram itself).

Local histogram equalization is another technique that can be used to reveal detail of areas, since it depends on area pixels only. Use LocalHistoEqualize to perform local histogram equalization.

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:

HistoEqualize method, Contrast method, Intensity method, GammaCorrect method, HistoContrast method, StretchIntensity method, Invert method, Hue method, Saturation method, Fill method, Pixel property, GetHistogram method, WindowLevel method, LocalHistoEqualize method, ChangeHueSatInt method.

Topics:

Raster Images: Modifying Intensity Values

 

Using Color Values in LEADTOOLS