Re: simple tiling of images into a montage [message #46589] |
Mon, 28 November 2005 08:54 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Aziz P writes:
> is there a quick and easy way to visualize a whole stack of images as a
> tile or montage? I have MRI data from multiple slice locations and
> wanted to generate a virtual "film" with the slices arranged in a grid
> for simultaneous display. Volume rendering is not desirable in this
> case. Any help or pointers would be much appreciated.
Here is how I would display all 57 of the 80-by-100 images
in the head.dat data set:
file = Filepath(Subdir=['examples', 'data'], 'head.dat')
OpenR, lun, file, /Get_Lun
data = Bytarr(80,100,57)
ReadU, lun, data
Free_Lun, lun
Window, XSize=80*10, YSize=6*100
FOR j=0,56 DO TV, data[*,*,j], j
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: simple tiling of images into a montage [message #46590 is a reply to message #46589] |
Mon, 28 November 2005 08:45  |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
Aziz P wrote:
> Hello all,
>
> is there a quick and easy way to visualize a whole stack of images as a
> tile or montage? I have MRI data from multiple slice locations and
> wanted to generate a virtual "film" with the slices arranged in a grid
> for simultaneous display. Volume rendering is not desirable in this
> case. Any help or pointers would be much appreciated.
>
Hi,
This is pretty easy if you get on of the right tools. Both David
Fanning's TVIMAGE (and TVSCALE) and Liam Gumley's IMDISP will honor the
!P.MULTI system variable which you can set up to display individual
plotting regions in a grid layout. Each of these will honor the POSITION
keyword if you want to carve up the display space on your own. The
documentation for IMDISP has an example of how these work.
Ben
|
|
|