LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetVoiLut Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : SetVoiLut Method



index
The zero-based index of the VOI LUT to set. According to the DICOM standard, one or more items could exist under one VOI LUT Sequence (0028,3010); use this index to specify which item to update.
attributes
The VOI LUT attributes to set.
data
Pointer to the buffer that holds the "LUT Data" (0028,3006) to set. This pointer cannot be null.
index
The zero-based index of the VOI LUT to set. According to the DICOM standard, one or more items could exist under one VOI LUT Sequence (0028,3010); use this index to specify which item to update.
attributes
The VOI LUT attributes to set.
data
Pointer to the buffer that holds the "LUT Data" (0028,3006) to set. This pointer cannot be null.
Sets the attributes that describe the VOI LUT. Supported in Silverlight, Windows Phone 7.

Syntax

Visual Basic (Declaration) 
Public Sub SetVoiLut( _
   ByVal index As Integer, _
   ByVal attributes As DicomVoiLutAttributes, _
   ByVal data() As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim index As Integer
Dim attributes As DicomVoiLutAttributes
Dim data() As Integer
 
instance.SetVoiLut(index, attributes, data)
C# 
public void SetVoiLut( 
   int index,
   DicomVoiLutAttributes attributes,
   int[] data
)
C++/CLI 
public:
void SetVoiLut( 
   int index,
   DicomVoiLutAttributes^ attributes,
   array<int>^ data
) 

Parameters

index
The zero-based index of the VOI LUT to set. According to the DICOM standard, one or more items could exist under one VOI LUT Sequence (0028,3010); use this index to specify which item to update.
attributes
The VOI LUT attributes to set.
data
Pointer to the buffer that holds the "LUT Data" (0028,3006) to set. This pointer cannot be null.

Example

For an example, refer to VoiLutCount.

Remarks

The size of the data buffer should at least equal the number of entries in the lookup table.

According to the DICOM standard, DicomVoiLutAttributes.NumberOfEntries should be set to 0 if the number of entries in the lookup table is 2^16; however, you should NOT do that when calling this method. This method will handle correctly setting the value inside the Data Set.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features