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
 Dicom image: Reading columns & rows
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AdrianKnowles

USA
35 Posts

Posted - Feb 14 2013 :  13:22:54  Show Profile  Reply
Hi,
using the DICOM demo I've been trying to read the columns and rows
in DICOM images to determine the matrix size using the columns and rows in the DICOM header ($0028,$0010) & ($0028,$0011). However I dont seem to be able to display the value.

The code snippet is below

tags:=OriginalImage.IO.Params.DICOM_Tags;
ResolutionLabel.Caption := tags.GetTagString(tags.IndexOf ($0018,$1050) );
Label4.Caption := tags.GetTagString( tags.IndexOf($0028,$0011) );
Label8.Caption := tags.GetTagString( tags.IndexOf($0018,$0080)
); //TR

The ImageEnDialog seems to read & display the value correctly
so I'm not quite sure of the problem.

Thanks,
Adrian

Uwe

284 Posts

Posted - Feb 14 2013 :  15:51:15  Show Profile  Reply
Does this work, Adrian?


var
tags: TIEDICOMTags;

{...}
label1.Caption := String(tags.GetTagString(tags.IndexOf($0010,$0030))); // Date of Birth

Go to Top of Page

AdrianKnowles

USA
35 Posts

Posted - Feb 15 2013 :  11:44:07  Show Profile  Reply
Hi,
no unfortunately this does not show anything either (either DOB or columns,rows). The DICOM image (GE MR) does include the information, confirmed with DICOMtools software.

Kind regards,
Adrian
Go to Top of Page

Uwe

284 Posts

Posted - Feb 15 2013 :  18:04:50  Show Profile  Reply
Must have something to do with the image itself, Adrian. I just tested several DICOMs and have no problem retrieving the values with the code I posted above.

Can you try with a few other files? AFAIK, certain types of DICOM images are not supported, but I have no idea which ones. As I said, my test images work as expected. Maybe you could post a link to some pics as well?

Uwe
Go to Top of Page

AdrianKnowles

USA
35 Posts

Posted - Feb 18 2013 :  15:02:48  Show Profile  Reply
Hi,
I'll try to anonymise some of the key identifier tags and see if I can attach it to a post here.
The strange thing is that the ImageEnDialog does seem to read & display the values correctly when you preview an image.

Thanks,
Adrian
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: