Nearest-neighbor 3D CONGRID() needed [message #12019] |
Wed, 17 June 1998 00:00 |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|