Re: Q: Spatial/Spectral Resampling? [message #13379] |
Thu, 05 November 1998 00:00 |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Herbert Tsang wrote:
>
> Anyone out there has written or seen a spatial and/or spectral resampling
> routine in IDL for a given image cube?
>
> -- Herbert
Herbert -
I'm not sure what you are after, but I would point you to IDL's
INTERPOLATE() routine. There is an EXTRACT_SLICE() routine that
will resample a 3D volume, producing a slice through the volume.
Be aware that these assume isotropic pixels, and you can get
some weird results if yours are not, especially if visualization
is what you're after.
You can also use REBIN() and CONGRID() to resample a volume.
CONGRID() only uses interpolation however. If you need a version
that uses nearest-neighbor sampling, email me; I wrote one up
in C.
I also have a RESLICE() routine that will do what EXTRACT_SLICE()
does, but take into account the dimensions of the voxels. Let me
know if you're interested.
As for the spectral stuff, I can't help you there...
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|