an Image providing interpolated values from another Image More...
#include "adapter/reslice.h"
an Image providing interpolated values from another Image
the Reslice class provides an Image interface to data interpolated using the specified Interpolator class from the Image original. The Reslice object will have the same dimensions, voxel sizes and transform as the reference HeaderType. Any of the interpolator classes (currently Interp::Nearest, Interp::Linear, Interp::Cubic and Interp::Sinc) can be used.
For example:
It is also possible to supply an additional transform to be applied to the data, using the transform parameter. The transform will be applied in the scanner coordinate system, and should map scanner-space coordinates in the original image to scanner-space coordinates in the reference image.
To deal with possible aliasing due to sparse sampling of a high-resolution image, the Reslice object may perform over-sampling, whereby multiple samples are taken at regular sub-voxel intervals and averaged. By default, oversampling will be performed along those axes where it is deemed necessary. This can be over-ridden using the oversampling parameter, which should contain one (integer) over-sampling factor for each of the 3 imaging axes. Specifying the vector [ 1 1 1 ] will therefore disable over-sampling.