Wanted: Corrisponding command for seek ( C ) in IDL ??? [message #14059] |
Fri, 15 January 1999 00:00  |
Ospite1
Messages: 3 Registered: January 1999
|
Junior Member |
|
|
<HTML>
<H2>
CIAO,</H2>
at the moment I am in Italy and short time ago I started learning IDL.
<BR>While I am doing a practical course here for my study, I try to write
<BR>a programm to combine CT and SPECT pictures.
<BR>To do this I first have to change to format of the pictures and I know
<BR>in which bytes of the file the information I need are.
<BR>Unfortunately, I don't know a command to read excatly these bytes.
<BR>I just know that the command in C is 'seek()'.
<P>Is there anyone who can tell me this command.
<P>Hoping for your reply, Ruth</HTML>
|
|
|
Re: Wanted: Corrisponding command for seek ( C ) in IDL ??? [message #14176 is a reply to message #14059] |
Mon, 25 January 1999 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Ospite1 wrote:
>
> CIAO,
>
> at the moment I am in Italy and short time ago I started learning IDL.
>
> While I am doing a practical course here for my study, I try to write
> a programm to combine CT and SPECT pictures.
> To do this I first have to change to format of the pictures and I know
>
> in which bytes of the file the information I need are.
> Unfortunately, I don't know a command to read excatly these bytes.
> I just know that the command in C is 'seek()'.
>
> Is there anyone who can tell me this command.
>
> Hoping for your reply, Ruth
Ruth -
Just use the POINT_LUN routine. If your data is stored as volume
files, with all images concatenated into a single file, then you can
use the ASSOC routine for fast access.
If you are having trouble extracting the images from the files, then
you can use my READ_IMG.PRO routine that can read MR,PET,SPECT,CT
images that are 64x64, 128x128, 256x256 or 512x512 in size,
with headers of unknown size (it will automatically compute the
size of the header, read and return it, and then read the image).
You can get this at:
http://bial8.ucsd.edu pub/software/idl/share/idl_share.tar.gz
There's a lot of other routines we use for MR medical imaging, so
many of them may be useful.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|