ImageEn, unit iexBitmaps

TIEDicomTags.GetTagNumeric

TIEDicomTags.GetTagNumeric


Declaration


function GetTagNumeric(Index: integer; Default: double = 0.0): double;
function GetTagNumeric(Group: Word; 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


Example


// Output all DICOM tags of image to a memo (same as Dicom_WriteToStrings)
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
- iexMetaHelpers Unit