ImageGear Professional v18.2 > API Reference Guide > MD Component API Reference > MD Component Functions Reference > Presentation State Functions > MED_PS_display_contrast_auto_64 |
Builds the 16x8 display LUT, using rescale, Presentation LUT and GSDF LUT.
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 ); |
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. |
Returns the number of ImageGear errors that occurred during the function call.
Grayscale – 8…32 bpp.
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.