ImageGear for C and C++ on Linux v18.10 - Updated
MED_DCM_DS_LUT_update_from
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Data Set Functions > MED_DCM_DS_LUT_update_from

This function adds specified LUT to the DataSet.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_DCM_DS_LUT_update_from(
        HIGEAR hIGear,
        AT_DCM_TAG lutSqTag,
        HIGLUT lut
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle to the image.
lutSqTag AT_DCM_TAG LUT sequence.
lut HIGLUT LUT handle.

Return Value:

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

Supported Raster Image Formats:

This function does not process image pixels.

The image must have a DICOM DataSet attached to it. Use MED_DCM_DS_exists to check whether the image contains a DataSet.

Remarks:

The function supports the following LUTs:

LUT Sequence Tag
Modality LUT DCM_TAG_ModalityLUTSequence
VOI LUT DCM_TAG_VOILUTSequence, DCM_TAG_SoftcopyVOILUTSequence
Presentation LUT DCM_TAG_PresentationLUTSequence