dicom question [message #16740] |
Fri, 20 August 1999 00:00  |
Richard Tyc
Messages: 69 Registered: June 1999
|
Member |
|
|
Is there a DICOM field that defines the mm/pixel parameter for an image that
I can query ? For a series of MR slices, is there a field that defines the
slice depth ?
I am tying to create 3D object data from MR slices and I need to reference
true dimensional distance (mm) within the volume ?
Thanks in Advance
Rich
|
|
|
Re: dicom question [message #16862 is a reply to message #16740] |
Mon, 23 August 1999 00:00  |
Ivan Zimine
Messages: 40 Registered: February 1999
|
Member |
|
|
Richard Tyc wrote:
>
> Is there a DICOM field that defines the mm/pixel parameter for an image that
> I can query ? For a series of MR slices, is there a field that defines the
> slice depth ?
>
> I am tying to create 3D object data from MR slices and I need to reference
> true dimensional distance (mm) within the volume ?
>
> Thanks in Advance
>
> Rich
Hello Richard,
here's how i get this info
dci = OBJ_NEW('IDLffDICOM')
res = dci->Read(dicomfile)
val = dci->GetValue('0028'x,'0010'x, /no_copy) ; rows
rows = Fix(*val[0])
val = dci->GetValue('0028'x,'0011'x, /no_copy) ; columns
cols = Fix(*val[0])
val = dci->GetValue('0028'x,'0030'x, /no_copy) ; pixel size
vsize = Str_Sep(*val[0], '\')
vxs = Float(vsize[0])
vys = Float(vsize[1])
val = dci->GetValue('0018'x,'0050'x, /no_copy) ; slice thickness
vzs = Float(*val[0])
OBJ_DESTROY, dci
--
Ivan Zimine
Dpt. of Radiology (MRI), Geneva University Hospitals
email: ivan.zimine@physics.unige.ch
tel. : (+41 22) 372 70 70
|
|
|