ImageGear for C and C++ on Linux v18.10 - Updated
MED_display_grayscale_LUT_build_auto
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Display Functions > MED_display_grayscale_LUT_build_auto
This function has been deprecated and will be removed from the public API in a future release. Use MED_display_grayscale_LUT_build_auto_double instead.

This function calculates lpDICOMDisplaySettings->VOIWindow from image's min and max values, and then builds grayscale LUT according to lpDICOMDisplaySettings.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_display_grayscale_LUT_build_auto(
        HIGEAR hIGear,
        const AT_RECT* lpRect,
        AT_MED_DCM_DISPLAY_SETTINGS* lpDICOMDisplaySettings,
        HIGLUT hlut
);

Arguments:

Name Type Description
hIGear HIGEAR 16g image having its 16x8 LUT updated.
lpRect const AT_RECT* AT_RECT structure.
lpDICOMDisplaySettings AT_MED_DCM_DISPLAY_SETTINGS* AT_MED_DCM_DISPLAY_SETTINGS structure.
hlut HIGLUT LUT handle.

Return Value:

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

Supported Raster Image Formats:

Grayscale – 8…32 bpp.