Leadtools.Dicom Namespace > DicomDataSet Class > GetModalityLutAttributes Method : GetModalityLutAttributes(Int32) Method |
public DicomModalityLutAttributes GetModalityLutAttributes( int frameIndex )
'Declaration Public Overloads Function GetModalityLutAttributes( _ ByVal frameIndex As Integer _ ) As DicomModalityLutAttributes
'Usage Dim instance As DicomDataSet Dim frameIndex As Integer Dim value As DicomModalityLutAttributes value = instance.GetModalityLutAttributes(frameIndex)
public DicomModalityLutAttributes GetModalityLutAttributes( int frameIndex )
ObjectiveC Syntax
function Leadtools.Dicom.DicomDataSet.GetModalityLutAttributes(Int32)( frameIndex )
public: DicomModalityLutAttributes^ GetModalityLutAttributes( int frameIndex )
If the method finds the "Rescale Intercept" (0028,1052) and "Rescale Slope" (0028,1053) elements, it will set IsRescaleSlopeIntercept to true and populate RescaleIntercept, DicomModalityLutAttributes.RescaleSlope, and RescaleType with the values retrieved from the DICOM Data Set.
If the method finds "Modality LUT Sequence" (0028,3000), it will set IsModalityLutSequence to true and populate FirstStoredPixelValueMapped, NumberOfEntries, EntryBits, LutExplanation, and LutType with the values retrieved from the DICOM Data Set.
It is prohibited by the DICOM standard for both "Rescale Intercept" and "Modality LUT Sequence" to exist in the same DICOM Data Set. However, if this method encounters such a Data Set, it will ignore "Modality LUT Sequence" and assume that only "Rescale Intercept" exists.
Tag | Name |
(0028,1052) | Rescale Intercept |
(0028,1053) | Rescale Slope |
(0028,1054) | Rescale Type |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2