source files: xvol.[ch]
(XVOL-SUBSAMPLE-ARRAY :ARRAY <ary> [ :SUBSAMPLE-BY <fix> ] [ :RESULT-IN <ary> ] )
Function to resample an array. Values in the source array :ARRAY are sampled at an interval specified by :SUBSAMPLE-BY, and the resulting array is returned.
If a :RESULT-IN value is supplied, and is of appropriate type, the result will be placed in it and returned; otherwise, a fresh array will be allocated and returned.
This is basically a quick hack to resample the aligned volume images, so the current version only works for 3-D, 12-bit arrays. (Mainly because I wasn't sure how to check the type of the source array and create a destination array of the same type.) Maybe this is something that should be defined by each array?