Re: accessing Siemens magnetom MR images [message #11634] |
Thu, 21 May 1998 00:00 |
pford
Messages: 33 Registered: September 1996
|
Member |
|
|
(A case of where the visually impaired is leading the blind.)
A quick and dirty method is to create two arrays, one for the header and
the other for the image(s). This assumes that the common format is to have
a header block followed by the image data. Image sets may have multiple
sub headers.
header = bytarr(size_of_header)
images = intarr(X,Y,Z); assuming a 3-D array of 2 byte pixels.
open the file. ( I would have to look this up, but I could e-mail an
example. )
read the header and do nothing with it
read the image.
display the image.
tvscl, image(*,*,0)
etc.
You may have to swap the byte order.
To calculate the header size look at the number of bytes in the file and
subtract the image size in bytes.
Or if it is in DICOM format, I think there is a read_DICOM in IDL.
Patrick Ford, MD
Baylor College of Medicine
pford@bcm.tmc.edu
Jonas (jonas_2@hotmail.com) wrote:
: I could spend some time doing this myself, but there have to be lots of
: codes doing this already.
: I want to read image files originating from our two Simens MR scanners
: (Magnetom Vision/Expert) into IDL. I only need the image information, the
: other information (TE, TR, flip, Patient info...) is just a bonus.
: Any info/help/code is welcome
: /Jonas, the IDL newbie
|
|
|