LEADTOOLS DICOM C DLL Help > Features of LEADTOOLS DICOM > DICOM Files > LUT Encoding Overview > Used Structures > DICOMPALCOLORLUTATTRIBS |
typedef struct tagDICOMPALCOLORLUTATTRIBS
{
L_UINT uStructSize;
DICOMLUTDESCRIPTOR RedLUTDescriptor;
DICOMLUTDESCRIPTOR GreenLUTDescriptor;
DICOMLUTDESCRIPTOR BlueLUTDescriptor;
L_TCHAR szUID[DICOM_VR_UI_LENGTH+1];
L_BOOL bIsSegmented;
} DICOMPALCOLORLUTATTRIBS, * pDICOMPALCOLORLUTATTRIBS;
This structure is used by the functions L_DicomGetPaletteColorLUTAttributes and L_DicomSetPaletteColorLUTAttributes to get and set the attributes that describe the "Palette Color Lookup Table".
Member |
Description |
uStructSize |
The size of the structure (use sizeof (DICOMPALCOLORLUTATTRIBS)). |
RedLUTDescriptor |
Value of the "Red Palette Color Lookup Table Descriptor" (0028,1101) element. |
GreenLUTDescriptor |
Value of the "Green Palette Color Lookup Table Descriptor" (0028,1102) element. |
BlueLUTDescriptor |
Value of the "Blue Palette Color Lookup Table Descriptor" (0028,1103) element. |
szUID |
Value of the "Palette Color Lookup Table UID" (0028,1199) element. The maximum length of this string is DICOM_VR_UI_LENGTH, which is defined as 64. |
bIsSegmented |
Flag that indicates whether "Palette Color Lookup Table Data" is segmented or not, this flag is set when "Segmented Red Palette Color Lookup Table Data" (0028,1221), "Segmented Green Palette Color Lookup Table Data" (0028,1222) and Segmented Blue Palette Color Lookup Table Data (0028,1223) exist in the DICOM dataset. |
Comments
The members of this structure are based on the attributes of the "Palette Color Lookup Module". Please see "Palette Color Lookup Module" in the DICOM standard for more details.
According to the DICOM standard when the number of table entries under the "Palette Color Lookup Table" is equal to 2^16 then the value of LUTDescriptor.uNumberOfEntries shall be 0. However, the 2 functions, L_DicomGetPaletteColorLUTAttributes and L_DicomSetPaletteColorLUTAttributes, do NOT have this limitation. When you call L_DicomGetPaletteColorLUTAttributes it will automatically set the value to 0 inside the dataset if LUTDescriptor.uNumberOfEntries is equal to 2^16. The same applies to L_DicomSetPaletteColorLUTAttributes.