ImageGear for C and C++ on Linux v18.8 - Updated
MED_PS_display_contrast_double
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Presentation State Functions > MED_PS_display_contrast_double

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

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_PS_display_contrast_double (
        HIGEAR hIGear, 
        DOUBLE rescale_slope,  
        DOUBLE rescale_intercept,  
        DOUBLE window_center,  
        DOUBLE window_width,  
        DOUBLE gamma,  
        LPAT_MED_LUT_DESC lpPresLUTInfo,  
        LPAT_MED_LUT_DESC lpGSDFLUTInfo,  
);

Arguments:

Name Type Description
hIGear HIGEAR 16g image to have its LUT16x8 updated.
rescale_slope DOUBLE Rescale Slope (0028,1053).
rescale_intercept DOUBLE Rescale Intercept (0028,1054).
window_center DOUBLE Window Center (0028,1050).
window_width DOUBLE Window Width (0028,1051).
gamma DOUBLE Gamma correction - set to 1.0 to turn off.
lpPresLUTInfo LPAT_MED_LUT_DESC Presentation LUT info.
lpGSDFLUTInfo LPAT_MED_LUT_DESC GSDF LUT info.

Return Value:

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

Supported Raster Image Formats:

Grayscale – 8…32 bpp.

Remarks:

If lpGSDFLUTInfo parameter is not NULL, gamma is not used.