MultiScaleEnhancement method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short MultiScaleEnhancement (ILEADRaster *pRaster, long lContrast, long lEdgeLevels, long lEdgeCoeff, long lLatitudeLevels, long lLatitudeCoeff, long lFlags);

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.

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

Best results are obtained if lContrast 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 lEdgeLevels, lEdgeCoeff, lLatitudeLevels and lLatitudeCoeff parameters are available for advanced users. Setting MSE_DEFAULT in lFlags 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, GetHistogram method, WindowLevel method, HistoContrast method

Topics:

Raster Images: Modifying Intensity Values