comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » dicom question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
dicom question [message #16740] Fri, 20 August 1999 00:00 Go to next message
Richard Tyc is currently offline  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 Go to previous message
Ivan Zimine is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Spawn command on UNIX system
Next Topic: exporting a Contour object

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:32:56 PDT 2025

Total time taken to generate the page: 0.00475 seconds