#include <Downsampling.h>
Public Member Functions | |
Downsampling (int=2) | |
Constructor. | |
Downsampling (int, int, int=1) | |
Constructor. | |
void | Kernel (ScalarFunction *, int, bool=true) |
Set downsampling kernel and desired radius of discretized kernel. | |
virtual void | Run () |
Run the downsampling filter. | |
Public Member Functions inherited from mirtk::ImageToImage< TVoxel > | |
ImageToImage () | |
Constructor. | |
virtual bool | RequiresBuffering () const |
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 | |
void | DiscreteKernel (GenericImage< RealPixel > &, double) |
Discretize continious kernel. | |
virtual void | Initialize () |
Initialize the filter. | |
Protected Member Functions inherited from mirtk::ImageToImage< TVoxel > | |
virtual void | Finalize () |
void | Initialize (bool) |
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 | |
Public Types inherited from mirtk::ImageToImage< TVoxel > | |
typedef GenericImage< VoxelType > | ImageType |
Input/output image type. | |
typedef TVoxel | VoxelType |
Input/output image voxel type. | |
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) |
Filter for downsampling of images by a power of two
By default, a Gaussian kernel is used to average the voxel intensities within the neighborhood corresponding to each downsampled voxel. This can be disabled by specifying a zero sigma value for the Gaussian kernel.
Definition at line 39 of file Downsampling.h.