ImageGear for C and C++ on Linux v18.8 - Updated
MED_display_grayscale_LUT_build_auto_double
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Display Functions > MED_display_grayscale_LUT_build_auto_double

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_double(
        HIGEAR hIGear,
        const AT_RECT* lpRect,
        AT_MED_DCM_DISPLAY_SETTINGS_DOUBLE* 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_DOUBLE* AT_MED_DCM_DISPLAY_SETTINGS_DOUBLE 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.