MultiScaleEnhancement method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int MultiScaleEnhancement(unsigned uContrast, unsigned uEdgeLevels, int nEdgeCoeff, unsigned uLatitudeLevels, unsigned uLatitudeCoeff, unsigned uFlags);

Delphi Syntax

Function MultiScaleEnhancement (uContrast: L_UINT; uEdgeLevels: L_UINT; nEdgeCoeff: L_INT; uLatitudeLevels: L_UINT; uLatitudeCoeff: L_UINT; uFlags: L_UINT): L_INT;

Overview

Refer to Changing Brightness and Contrast

Remarks

(Medical only) Enhances an image’s contrast, edges, and density range for use in Computed Radiography (CR), in a way that all relevant image features are rendered with an appropriate level of visibility.

The method wraps techniques of image enhancements, such as contrast enhancement, edge enhancement and latitude reduction, for Computed Radiography (CR).

In multi scale enhancement, the image is decomposed into components or levels. Those components or levels that contain details will be enhanced separately from other components or levels.

This will improve the visualization for the subtle image features without the risk of losing information of other features.

To find the number of levels in any image use this equation:

uMaxLevels = ceil( log( max(BitmapWidth, BitmapHeight)) / log(2));

The method will consider values larger than 10000 for uContrast as if they were 10000. If the user passed 0 then image contrast will not be improved.

Best results are obtained if uContrast is in the range of 15% ~ 30%. The larger the value the stronger the enhancement will be. Any stronger enhancement than 30% will reveal noise and no new enhancement will be noticed.

The user can further enhance the image with:

image\sqrblit.gif edge enhancements (use MSE_EDGEENH) and/or

image\sqrblit.gif latitude reduction (use MSE_LATRED)

The uEdgeLevels, nEdgeCoeff, uLatitudeLevels and uLatitudeCoeff parameters are available for advanced users. Setting MSE_DEFAULT in uFlags gives the maximum enhancements. MSE_DEFAULT is defined as (L_UINT)-1

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. It also can process the whole image or a region of the image. If a bitmap has a region, the effect is applied only to the region.

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, StretchIntensity method, RemapIntensity method, Invert method, Hue method, Saturation method, HistoEqualize method, Fill method, Pixel property, GetHistogram method, WindowLevel method, HistoContrast method, Multiply method, SelectiveColor method.

Topics:

Raster Images: Modifying Intensity Values

 

Using Color Values in LEADTOOLS