Builds the 16x8 display LUT, using rescale, Presentation LUT and GSDF LUT.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI MED_PS_display_contrast_auto ( HIGEAR hIGear, LPAT_RECT lpRect, DOUBLE rescale_slope, DOUBLE rescale_intercept, DOUBLE gamma, LPAT_MED_LUT_DESC lpPresLUTInfo, LPAT_MED_LUT_DESC lpGSDFLUTInfo, LPLONG lpWindow_center, LPLONG lpWindow_width ); |
Arguments:
Name | Type | Description |
hIGear | HIGEAR | 16g image to have its LUT16x8 updated. |
lpRect | LPAT_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. |
lpPresLUTInfo | LPAT_MED_LUT_DESC | Presentation LUT info. |
lpGSDFLUTInfo | LPAT_MED_LUT_DESC | GSDF LUT info. |
lpWindow_center | LPLONG | Window Center (0028,1050). |
lpWindow_width | LPLONG | Window Width (0028,1051). |
Return Value:
Returns the number of ImageGear errors that occurred during the function call.
Supported Raster Image Formats:
Grayscale – 8…16 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.
For 17-32 bits per pixel images, please use MED_PS_display_contrast_auto_64().