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

Home » Public Forums » archive » Re: Q: Spatial/Spectral Resampling?
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: Q: Spatial/Spectral Resampling? [message #13379] Thu, 05 November 1998 00:00
David Foster is currently offline  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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Strange UNIX or strange IDL?
Next Topic: plotting to xterm's tetronix window?

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

Current Time: Wed Oct 08 11:45:44 PDT 2025

Total time taken to generate the page: 0.00739 seconds