[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3D Reconstructions of 2D Slices
- Subject: Re: 3D Reconstructions of 2D Slices
- From: Craig Markwardt <craigmnet(at)cow.physics.wisc.edu>
- Date: 20 Apr 2000 13:37:20 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: U. Wisc. Madison Physics -- Compact Objects
- References: <MPG.1368c147c090bf70989ae3@news.frii.com>
- Reply-To: craigmnet(at)cow.physics.wisc.edu
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:19368
davidf@dfanning.com (David Fanning) writes:
>
> Does anyone have any pointers/suggestions/code for creating
> 3D volume arrays from 2D image slices? I know this kind of
> thing is being done all the time, but apparently the IDL
> code for it is under lock and key at one (no one knows
> *which* one) of the National Labs. :-(
>
Would this just-recently-declassified snippet help?
vol = dblarr(100,100,20) ; 100x100 images, 20 of them
for i = 0, 19 do $
vol(*,*,i) = read_my_image(image_file(i))
Extra bonus points can be gotten for recognizing the speed-up achieved
by saying "vol(0,0,i) = " instead.
Somehow I think you are asking for more though?
Craig
--
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------