ImageGear for C and C++ on Windows v20.1 - Updated
MED_PS_display_contrast_auto_64
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Presentation State Functions > MED_PS_display_contrast_auto_64
This function has been deprecated and will be removed from the public API in a future release. Use MED_PS_display_contrast_auto_double instead.

Builds the 16x8 display LUT, using rescale, Presentation LUT and GSDF LUT.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_PS_display_contrast_auto_64 (
        HIGEAR hIGear, 
        LPAT_RECT lpRect, 
        DOUBLE rescale_slope, 
        DOUBLE rescale_intercept, 
        DOUBLE gamma, 
        LPAT_INT64 lpWindow_center, 
        LPAT_INT64 lpWindow_width 
);

Arguments:

Name Type Description
hIGear HIGEAR 16g image to have its LUT16x8 updated.
lpRect AT_RECT set to NULL to scan the entire image.
rescale_slope DOUBLE Rescale Slope (0028,1053).
rescale_intercept DOUBLE Rescale Intercept (0028,1054).
gamma DOUBLE Gamma correction - set to 1.0 to turn off.
lpWindow_center LPAT_INT64 Window Center (0028,1050) as 64 bit integer.
lpWindow_width LPAT_INT64 Window Width (0028,1051) as 64 bit integer.

Return Value:

Returns the number of ImageGear errors that occurred during the function call.

Supported Raster Image Formats:

Grayscale – 8…32 bpp.

Remarks:

Window center and width are calculated automatically, based on min and max values of the image. If lpGSDFLUTInfo parameter is not NULL, gamma is not used. Use this function for 17-32 bit grayscale images. Although you can also use this function for 8-16 bit images, performance may be affected in 32 bit operation systems.

Is this page helpful?
Yes No
Thanks for your feedback.