ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SubTags.SetTagString( $4, $1430, 'SERIES', False );
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

freeshoot8

10 Posts

Posted - Sep 15 2021 :  04:46:29  Show Profile  Reply
How to read GetTagString?

xequte

38180 Posts

Posted - Sep 15 2021 :  06:24:08  Show Profile  Reply
Hi

Are you having issues using:

s := SubTags.GetTagString( $4, $1430 );

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

freeshoot8

10 Posts

Posted - Sep 15 2021 :  21:16:31  Show Profile  Reply
How to read the date from file?
Go to Top of Page

xequte

38180 Posts

Posted - Sep 16 2021 :  04:01:34  Show Profile  Reply
Can you be more specific? Do you mean the file date or one of the date values from the meta data?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

freeshoot8

10 Posts

Posted - Sep 16 2021 :  21:43:11  Show Profile  Reply
SubTags.SetTagString( $4, $1430, 'STUDY', False ); //write to dicom file
How to read the data('STUDY') from file?
Go to Top of Page

xequte

38180 Posts

Posted - Sep 17 2021 :  02:10:46  Show Profile  Reply
Hi

If you just want to access the tag (without loading the image):

ImageEnView1.IO.ParamsFromFile( 'C:\image.dicom' );
s := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( $4, $1430 );


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

freeshoot8

10 Posts

Posted - Sep 24 2021 :  23:44:25  Show Profile  Reply
Read out as empty


Go to Top of Page

xequte

38180 Posts

Posted - Sep 25 2021 :  00:29:24  Show Profile  Reply
Hi

It works fine when I test it here:

var
  IO: TImageEnIO;
begin
  // Write dicom test tag
  IO := TImageEnIO.Create(NIL);
  IO.LoadFromFileDicom( 'D:\Testing_Multimedia\Dicom\ADXFILE000164.dcm' );
  try
    IO.Params.DICOM_Tags.SetTagString( $4, $1430, 'STUDY', False );
    IO.SaveToFileDicom( 'D:\test.dicom' );
  finally
    IO.Free;
  end;

  // Check for dicom test tag
  ImageEnView1.IO.ParamsFromFile( 'D:\test.dicom ');
  Caption := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( $4, $1430 );
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: