help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dicom support


From: Judd Storrs
Subject: Re: dicom support
Date: Sun, 2 May 2010 15:12:59 -0400

On Sun, May 2, 2010 at 6:52 AM, Andy Buckle <address@hidden> wrote:
> Also, there are these odd dicom variable representations that store
> numbers in strings. I don't know if matlab gives them as char arrays,
> or parses them to arrays of doubles.

I think you are referring to the DS (Decimal String) value
representation? I did some tests using this DICOM file:
http://barre.nom.fr/medical/samples/files/MR-MONO2-16-head.gz

Here, I just verify that SpatialResolution is DS using dcmdump from dcmtk:

$ dcmdump +P SpatialResolution MR-MONO2-16-head
(0018,1050) DS [1.145833\0.859375]                      #  18, 2
SpatialResolution
$ grep "1\.145833.0\.859375" MR-MONO2-16-head
Binary file MR-MONO2-16-head matches

In matlab SpatialResolution is loaded as a 2x1 double vector:

>> dcm = dicominfo('MR-MONO2-16-head') ;
>> dcm.SpatialResolution

ans =

    1.1458
    0.8594

>> class(dcm.SpatialResolution)

ans =

double



--judd


reply via email to

[Prev in Thread] Current Thread [Next in Thread]