35 #ifndef AIMS_RESAMPLING_RESAMPLERFACTORY_D_H 36 #define AIMS_RESAMPLING_RESAMPLERFACTORY_D_H 54 template <
class T,
template<
typename U>
class ResamplerType>
55 std::unique_ptr<aims::Resampler<T> > make_ptr(ResamplerType<T>* obj) {
56 return std::unique_ptr<aims::Resampler<T> >(obj);
64 std::unique_ptr<Resampler<T> >
90 std::cerr <<
"no resampler for order " << order
91 <<
", 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 linear (order 1) interpolation, then selects the majority label in the neighbo...
Volume resampler using nearest-neighbour interpolation.