Re: Image activities mapped to colorbar [message #11978 is a reply to message #11888] |
Thu, 04 June 1998 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Koon-Pong Wong wrote:
>
> Hi folks,
>
> I have some data sets of SPECT images that I want to display in a
> window. For example:
>
> IDL> for i=0,30 do tvscl, ImageSeq(*,*,i), i
>
> where "ImageSeq" is a 3D FLTARR which contains a particular slice of the
> brain. Since the images represent the activities in the brain at different
> time, if I display the images with the above way, all of the images would
> be scaled to their own maxima. What I want to do is to display the images
> according to their activities and mapped the activities to a color bar so
> that the first image frame may appear black while the last frame may
> appear grey/white with background still black (assume that I use B/W for
> display). How can I do that ??
Koon-Pong -
You might be interested in a program I wrote called SHOW_IMG that
allows you to display a wide variety of medical images in a variety
of different window configurations. This program can read many different
medical image formats, so long as the images are square, with dimensions
of either {64, 128, 256 or 512}; the image data must be in raw 8-bit
or 16-bit format; there can be an initial header of unknown size, the
image reader will skip over it appropriately.
You say that your images are FLTARR. Is this after pre-processing?
As far as I understand it, SPECT images in raw form are usually
16-bit signed integer data.
You can get this program and many other routines related to medical
imaging at:
ftp://bial8.ucsd.edu pub/software/idl/share
You can download just the SHOW_IMG program and it's required routines,
or get a larger set of routines. There's a README file listing the
routines and their use. All are written for UNIX, most should work
on Windows/Mac without much work. All routines/programs have .doc
documentation files; you can use my LHELP program to view these
easily.
Hope this helps.
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|