20 #ifndef MIRTK_ImageToImage_H 21 #define MIRTK_ImageToImage_H 23 #include "mirtk/Object.h" 24 #include "mirtk/GenericImage.h" 37 template <
class TVoxel>
101 virtual double Run(
int,
int,
int,
int = 0);
117 #define mirtkDefineImageFilterTypesMacro(voxeltype) \ 120 typedef mirtk::ImageToImage<voxeltype> Baseclass; \ 122 typedef typename Baseclass::VoxelType VoxelType; \ 124 typedef typename Baseclass::ImageType ImageType; \ 128 #define mirtkAbstractImageFilterMacro(clsname, voxeltype) \ 129 mirtkAbstractMacro(clsname); \ 130 mirtkDefineImageFilterTypesMacro(voxeltype); \ 132 typedef clsname<voxeltype> Superclass; \ 136 #define mirtkImageFilterMacro(clsname, voxeltype) \ 137 mirtkObjectMacro(clsname); \ 138 mirtkDefineImageFilterTypesMacro(voxeltype); \ 141 virtual bool RequiresBuffering() const { return true; } \ 145 #define mirtkInPlaceImageFilterMacro(clsname, voxeltype) \ 146 mirtkObjectMacro(clsname); \ 147 mirtkDefineImageFilterTypesMacro(voxeltype); \ 150 virtual bool RequiresBuffering() const { return false; } \ 156 #endif // MIRTK_ImageToImage_H
virtual ~ImageToImage()
Destructor.
mirtkAggregateMacro(ImageType, Buffer)
Buffer.
virtual void Run()
Run filter on entire image.
GenericImage< VoxelType > ImageType
Input/output image type.
virtual void Initialize()
ImageToImage()
Constructor.
TVoxel VoxelType
Input/output image voxel type.
virtual bool RequiresBuffering() const
mirtkPublicAggregateMacro(const ImageType, Input)
Input image for filter.