aimsalgo  5.0.5
Neuroimaging image processing
aims::ResamplerFactory< T > Class Template Reference

#include <aims/resampling/resamplerfactory.h>

Public Types

enum  ResamplerType {
  NearestNeighbor = 0, Linear = 1, Quadratic = 2, Cubic = 3,
  Quartic = 4, Quintic = 5, SixthOrder = 6, SeventhOrder = 7,
  MajorityLabel = 101, Median = 201
}
 

Static Public Member Functions

static std::unique_ptr< Resampler< T > > getResampler (int order)
 Instantiate a Resampler of the given order. More...
 

Detailed Description

template<typename T>
class aims::ResamplerFactory< T >

Definition at line 46 of file resamplerfactory.h.

Member Enumeration Documentation

◆ ResamplerType

template<typename T >
enum aims::ResamplerFactory::ResamplerType
Enumerator
NearestNeighbor 
Linear 
Quadratic 
Cubic 
Quartic 
Quintic 
SixthOrder 
SeventhOrder 
MajorityLabel 
Median 

Definition at line 49 of file resamplerfactory.h.

Member Function Documentation

◆ getResampler()

template<typename T >
std::unique_ptr< Resampler< T > > aims::ResamplerFactory< T >::getResampler ( int  order)
static

Instantiate a Resampler of the given order.

Parameters
orderorder of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
Returns
a new instance of the selected resampler type

Definition at line 65 of file resamplerfactory_d.h.


The documentation for this class was generated from the following files: