#include <ImageToImage.h>
Public Types | |
typedef GenericImage< VoxelType > | ImageType |
Input/output image type. | |
typedef TVoxel | VoxelType |
Input/output image voxel type. | |
Public Member Functions | |
ImageToImage () | |
Constructor. | |
virtual bool | RequiresBuffering () const |
virtual void | Run () |
Run filter on entire image. | |
virtual double | Run (int, int, int, int=0) |
Run filter on single voxel. | |
virtual | ~ImageToImage () |
Destructor. | |
Public Member Functions inherited from mirtk::Object | |
virtual const char * | NameOfClass () const =0 |
Get name of class, which this object is an instance of. | |
virtual ParameterList | Parameter () const |
Get parameter name/value pairs. | |
bool | Parameter (const ParameterList &) |
Set parameters from name/value pairs. | |
virtual bool | Set (const char *name, const char *value) |
virtual | ~Object () |
Destructor. | |
Protected Member Functions | |
virtual void | Finalize () |
void | Initialize (bool) |
virtual void | Initialize () |
mirtkAggregateMacro (ImageType, Buffer) | |
Buffer. | |
mirtkPublicAggregateMacro (const ImageType, Input) | |
Input image for filter. | |
mirtkPublicAggregateMacro (ImageType, Output) | |
Output image for filter. | |
Protected Member Functions inherited from mirtk::Object | |
template<typename... Args> | |
void | Throw (ErrorType err, const char *func, Args... args) const |
Additional Inherited Members | |
Static Public Member Functions inherited from mirtk::Object | |
static const char * | NameOfType () |
Get name of this class type. | |
Static Protected Member Functions inherited from mirtk::Object | |
template<typename... Args> | |
static void | ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args) |
Abstract base class for any general image to image filter.
This is the abstract base class which defines a common interface for all filters which take an image as input and produce an image as output. Each derived class has to implement all abstract member functions.
Definition at line 38 of file ImageToImage.h.
|
protectedvirtual |
Finalize the filter. This function must be called by any derived filter class to perform some initialize tasks.
Reimplemented in mirtk::DisplacementToVelocityFieldBCH< VoxelType >, mirtk::ConnectedComponents< TVoxel >, mirtk::SeparableConvolution< TVoxel, TKernel >, mirtk::SeparableConvolution< TVoxel >, mirtk::GradientImageFilter< TVoxel >, mirtk::CityBlockDistanceTransform< TVoxel >, mirtk::VelocityToDisplacementFieldSS< TVoxel >, and mirtk::VelocityToDisplacementField< TVoxel >.
|
protected |
Initialize the filter. This function must be called by any derived filter class to perform some initialize tasks.
|
protectedvirtual |
Initialize the filter. This function must be called by any derived filter class to perform some initialize tasks.
Reimplemented in mirtk::DisplacementToVelocityFieldBCH< VoxelType >, mirtk::ConnectedComponents< TVoxel >, mirtk::SeparableConvolution< TVoxel, TKernel >, mirtk::SeparableConvolution< TVoxel >, mirtk::GradientImageFilter< TVoxel >, mirtk::VelocityToDisplacementFieldSS< TVoxel >, mirtk::Resampling< TVoxel >, mirtk::CityBlockDistanceTransform< TVoxel >, mirtk::HessianImageFilter< TVoxel >, mirtk::CubicBSplineConvolution< TVoxel >, mirtk::GaussianBlurring< TVoxel >, mirtk::VelocityToDisplacementField< TVoxel >, mirtk::ResamplingWithPadding< TVoxel >, mirtk::Downsampling< TVoxel >, mirtk::HistogramMatching< TVoxel >, mirtk::DifferenceOfCompositionLieBracketImageFilter3D< TVoxel >, mirtk::Closing< TVoxel >, mirtk::Dilation< TVoxel >, mirtk::Erosion< TVoxel >, mirtk::LieBracketImageFilter3D< TVoxel >, mirtk::LieBracketImageFilter2D< TVoxel >, mirtk::LieBracketImageFilter< TVoxel >, mirtk::VelocityToDisplacementFieldEuler< TVoxel >, and mirtk::GaussianPyramidFilter< TVoxel >.
|
virtual |
Returns whether the filter requires buffering. Any derived class must implement this member function to indicate whether the filter should buffer the input in case that input and output are equal. For example, filters which only require the voxel value to calculate their output should return false, otherwise true.