ImageEn, unit iexBitmaps

TIEDicomTags.GetTagNumeric

TIEDicomTags.GetTagNumeric


Declaration

function GetTagNumeric(Index: integer; Default: double = 0.0): double;
function GetTagNumeric(Group, Element: Word; Default: double = 0.0): double;


Description

Returns a DICOM tag as number. You can specify it by Group/Element or its index. You can view a list of tags at: Dicom Tag List
Supported tag types: dvFD, dvSS, dvUS, dvFL, dvSL, dvUL


Example

// Output all DICOM tags of image to a memo (same as WriteTo)
for I := 0 to Dicom_Tag_Count - 1 do
begin
  aTagInfo := IEDICOMGetTagInfo( I );

  sDescription := aTagInfo.Desc;
  sValue := tags.GetTagString( ImageEnView1.IO.Params.DICOM_Tags.IndexOf(aTagInfo.Group, aTagInfo.Element) );

  if (sDescription <> '') and (sValue <> '') then
    memo1.Lines.Add( sDescription + ': '+ sValue )
end;


See Also

 GetTagString
 IEGetDicomTagDescription
 WriteTo