AdaptiveContrast method (Main Control)
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