SetModalityLUT method (ILEADDicomDS Interface)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short SetModalityLUT(VARIANT Data, long lFlags);

Overview

Refer to LUT Encoding.

Remarks

The SetModalityLUT method sets the attributes of the "Modality LUT Module" as specified by the ModalityLUTAttributes property and the Data parameter.

Before calling this method, set the properties specified by the ModalityLUTAttributes property to the desired values.

If you are trying to set the "Rescale Intercept" (0028,1052) and "Rescale Slope" (0028,1053), set the IsRescaleSlopeIntercept property to VARIANT_TRUE and populate the RescaleIntercept property and the RescaleSlope property with the new values. You can also populate the RescaleType property if you want to set "Rescale Type" (0028,1054).

If you are trying to set the elements under the "Modality LUT Sequence", set the IsModalityLUTSequence property to VARIANT_TRUE and populate the LUTDescriptorNumberOfEntries property, the LUTDescriptorFirstMapped property, the LUTDescriptorEntryBits property, and the ModalityLUTType property. In this case, the Data parameter should specify the "LUT Data" (0028,3006).

This method will return an error if both the IsRescaleSlopeIntercept property and the IsModalityLUTSequence property are set to VARIANT_TRUE. It will also return an error if the IsModalityLUTSequence property is set to VARIANT_TRUE and no LUT Data is specified (using the Data parameter).

See Also

Elements:

ModalityLUTAttributes property, GetModalityLUTAttributes method, GetModalityLUTData method

Topics:

Lookup Tables