This structure represents the attributes that describe the Modality LUT.
typedef struct tagDICOMMLUTATTRIBS
{
L_UINT uStructSize;
L_BOOL bIsModalityLUTSequence;
DICOMLUTDESCRIPTOR LUTDescriptor;
L_TCHAR pszLUTExplanation[DICOM_VR_LO_LENGTH+1];
L_TCHAR szModalityLUTType[DICOM_VR_LO_LENGTH+1];
L_BOOL bIsRescaleSlopeIntercept;
L_DOUBLE fRescaleIntercept;
L_DOUBLE fRescaleSlope;
L_TCHAR szRescaleType[DICOM_VR_LO_LENGTH+1];
} DICOMMLUTATTRIBS, * pDICOMMLUTATTRIBS;
The size of the structure (use sizeof (DICOMMLUTATTRIBS)).
Flag that indicates whether a "Modality LUT Sequence" (0028,3000) exists in the DICOM dataset or not. When this flag is set the members LUTDescriptor, pszLUTExplanation and szModalityLUTType will be valid. Otherwise, their values are undefined. Also, if this flag is set the function L_DicomGetModalityLUTData can be called to retrieve the "LUT Data" for a "Modality LUT Sequence". Otherwise, this data will be missing.
Value of the "LUT Descriptor" (0028,3002) element under the "Modality LUT Sequence" (0028,3000). This member is only defined when bIsModalityLUTSequence is set to TRUE.
Value of the "LUT Explanation" (0028,3003) element under the "Modality LUT Sequence" (0028,3000). This member is only defined when bIsModalityLUTSequence is set to TRUE.
The maximum length of this string is DICOM_VR_LO_LENGTH, which is defined as 64.
Value of the "Modality LUT Type" (0028,3004) element under the "Modality LUT Sequence" (0028,3000). This member is only defined when bIsModalityLUTSequence is set to TRUE.
The maximum length of this string is DICOM_VR_LO_LENGTH, which is defined as 64.
Flag that indicates whether Rescale Intercept(0028,1052) and Rescale Slope(0028,1053) exist in the DICOM dataset or not. When this flag is set the members fRescaleIntercept, fRescaleSlope and szRescaleType will be valid. Otherwise, their values are undefined.
Value of the "Rescale Intercept" (0028,1052) element. This member is only defined when bIsRescaleSlopeIntercept is set to TRUE.
Value of the "Rescale Slope" (0028,1053) element. This member is only defined when bIsRescaleSlopeIntercept is set to TRUE.
Value of the "Rescale Type" (0028,1054) element. This member is only defined when bIsRescaleSlopeIntercept is set to TRUE. The maximum length of this string is DICOM_VR_LO_LENGTH, which is defined as 64.
The members of this structure are based on the attributes of the "Modality LUT Module". Please see "Modality LUT Module Attributes" in the DICOM standard for more details.
The DICOM standard states that:
"Either a Modality LUT Sequence containing a single Item or Rescale Slope and Intercept values shall be present, but not both."
For this reason, both bIsModalityLUTSequence and bIsRescaleSlopeIntercept cannot be set to TRUE at the same time.
When using this structure with the L_DicomSetModalityLUT function, make sure to initialize uStructSize to be sizeof(DICOMMLUTATTRIBS). Then you must set one of the flags, either bIsModalityLUTSequence or bIsRescaleSlopeIntercept. If you set bIsModalityLUTSequence, you must populate LUTDescriptor, pszLUTExplanation and szModalityLUTType with valid values. If you set bIsRescaleSlopeIntercept, you must populate fRescaleIntercept,fRescaleSlope and szRescaleType with valid values.
According to the DICOM standard when the number of table entries under the "LUT Data" (0028,3006) element is equal to 2^16 then the value of LUTDescriptor.uNumberOfEntries shall be 0. However, the 2 functions L_DicomGetModalityLUTAttributes and L_DicomSetModalityLUT, do NOT have this limitation. When you call L_DicomGetModalityLUTAttributes, it will automatically set the correct value inside the dataset, if LUTDescriptor.uNumberOfEntries is equal to 2^16. The same applies to L_DicomSetModalityLUT.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document