35 #ifndef AIMS_RESAMPLING_RESAMPLERFACTORY_D_H 36 #define AIMS_RESAMPLING_RESAMPLERFACTORY_D_H 52 template <
class T,
template<
typename U>
class ResamplerType>
53 std::unique_ptr<aims::Resampler<T> > make_ptr(ResamplerType<T>* obj) {
54 return std::unique_ptr<aims::Resampler<T> >(obj);
62 std::unique_ptr<Resampler<T> >
84 std::cerr <<
"no resampler for order " << order
85 <<
", taking order 3 (cubic) instead" << std::endl;
Volume resampler using linear (order 1) interpolation.
Volume resampler using quadratic (order 2) interpolation.
Volume resampler using sixth-order interpolation.
Volume resampler using quartic (order 4) interpolation.
static std::unique_ptr< Resampler< T > > getResampler(int order)
Instantiate a Resampler of the given order.
Volume resampler using cubic interpolation.
Volume resampler using seventh-order interpolation.
Volume resampler using quintic (order 5) interpolation.
Volume resampler using nearest-neighbour interpolation.