Visual Basic (Declaration) | |
---|---|
Public Class DicomModalityLutAttributes |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class DicomModalityLutAttributes |
C++/CLI | |
---|---|
public ref class DicomModalityLutAttributes |
For an example, refer to DicomDataSet.GetModalityLutAttributes.
The properties of this class 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 DicomModalityLutAttributes.IsModalityLutSequence and DicomModalityLutAttributes.IsRescaleSlopeIntercept cannot be set to true at the same time.When using this class with the DicomDataSet.SetModalityLut(DicomModalityLutAttributes,Int32[]) method you must set one of the flags, either DicomModalityLutAttributes.IsModalityLutSequence or DicomModalityLutAttributes.IsRescaleSlopeIntercept. If you set DicomModalityLutAttributes.IsModalityLutSequence, you must populate DicomModalityLutAttributes.IsModalityLutSequence, DicomModalityLutAttributes.LutExplanation and DicomModalityLutAttributes.LutType with valid values. If you set DicomModalityLutAttributes.IsRescaleSlopeIntercept, you must populate DicomModalityLutAttributes.RescaleIntercept, DicomModalityLutAttributes.RescaleType 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 DicomModalityLutAttributes.FirstStoredPixelValueMapped, DicomModalityLutAttributes.NumberOfEntries and DicomModalityLutAttributes.EntryBits. DicomModalityLutAttributes.NumberOfEntries shall be 0. However, the 2 methods, DicomDataSet.GetModalityLutAttributes and DicomDataSet.SetModalityLut(DicomModalityLutAttributes,Int32[]), do NOT have this limitation. When you call DicomDataSet.GetModalityLutAttributes, it will automatically set value in the dataset to 0 if DicomModalityLutAttributes.NumberOfEntries is equal to 2^16. The same applies to DicomDataSet.SetModalityLut(DicomModalityLutAttributes,Int32[]).
System.Object
Leadtools.Dicom.DicomModalityLutAttributes
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family