Author |
Topic |
|
AdrianKnowles
USA
35 Posts |
Posted - Feb 14 2013 : 13:22:54
|
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
|
Does this work, Adrian?
var tags: TIEDICOMTags;
{...} label1.Caption := String(tags.GetTagString(tags.IndexOf($0010,$0030))); // Date of Birth
|
|
|
AdrianKnowles
USA
35 Posts |
Posted - Feb 15 2013 : 11:44:07
|
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 |
|
|
Uwe
284 Posts |
Posted - Feb 15 2013 : 18:04:50
|
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 |
|
|
AdrianKnowles
USA
35 Posts |
Posted - Feb 18 2013 : 15:02:48
|
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 |
|
|
|
Topic |
|