20 #ifndef MIRTK_Downsampling_H 21 #define MIRTK_Downsampling_H 23 #include "mirtk/GenericImage.h" 24 #include "mirtk/ImageToImage.h" 25 #include "mirtk/ScalarFunction.h" 38 template <
class TVoxel>
47 mirtkPublicAttributeMacro(
int, DownsampleFactorX);
50 mirtkPublicAttributeMacro(
int, DownsampleFactorY);
53 mirtkPublicAttributeMacro(
int, DownsampleFactorZ);
62 bool _NormalizeKernel;
91 #endif // MIRTK_Downsampling_H virtual void Run()
Run the downsampling filter.
virtual void Initialize()
Initialize the filter.
void DiscreteKernel(GenericImage< RealPixel > &, double)
Discretize continious kernel.
Downsampling(int=2)
Constructor.
void Kernel(ScalarFunction *, int, bool=true)
Set downsampling kernel and desired radius of discretized kernel.