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

Home » Public Forums » archive » Re: simple tiling of images into a montage
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
Re: simple tiling of images into a montage [message #46589] Mon, 28 November 2005 08:54
David Fanning is currently offline  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 Go to previous message
btt is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: simple tiling of images into a montage
Next Topic: Re: gaussian air dispersion model

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

Current Time: Wed Oct 08 13:37:48 PDT 2025

Total time taken to generate the page: 0.00577 seconds