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

Home » Public Forums » archive » Nearest-neighbor 3D CONGRID() needed
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Nearest-neighbor 3D CONGRID() needed [message #12019] Wed, 17 June 1998 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Hi Folks -

I am in need of a routine like CONGRID() that will use
nearest-neighbor sampling on a 3D array. We are working with
brain template volumes which are discrete-valued, with each
value being a specific brain structure, so we don't want to
use linear interpolation when resampling the array (CONGRID
uses interpolation only on 3D arrays).

What would be perfect is a routine that used a "most common
neighbor" approach. I've already coded a specialized linear
interpolation routine in C, so I could start with that and
modify it for our needs, but I was hoping that someone had
already solved this problem.

Any suggestions, pointers, CODE ;-) welcome.

Thanks heaps.

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Previous Topic: Save file
Next Topic: Domain size distribution ?

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

Current Time: Sun Oct 12 07:27:10 PDT 2025

Total time taken to generate the page: 1.27972 seconds