Protected Member Functions | Protected Attributes | List of all members
mirtk::ConvolutionFunction::TruncatedForegroundConvolution1D< TKernel > Class Template Reference

Base class of 1D convolution functions which truncate the kernel at the foreground boundary. More...

#include <ConvolutionFunction.h>

Inheritance diagram for mirtk::ConvolutionFunction::TruncatedForegroundConvolution1D< TKernel >:
Inheritance graph
Collaboration diagram for mirtk::ConvolutionFunction::TruncatedForegroundConvolution1D< TKernel >:
Collaboration graph

Protected Member Functions

template<class T >
bool ConvolveCenterVoxel (const T *in, double &acc, double &sum) const
 Apply kernel initially at center voxel.
 
template<class T >
void ConvolveLeftNeighbors (int i, int n, const T *in, int s, double &acc, double &sum) const
 Apply kernel to left neighbors of given voxel.
 
template<class T >
void ConvolveRightNeighbors (int i, int n, const T *in, int s, double &acc, double &sum) const
 Apply kernel to right neighbors of given voxel.
 
 TruncatedForegroundConvolution1D (const BaseImage *image, const TKernel *kernel, int size, bool norm=true)
 Constructor.
 

Protected Attributes

double _Background
 Background value (padding)
 
const TKernel * _Kernel
 Convolution kernel.
 
bool _Normalize
 Whether to normalize by sum of overlapping kernel weights.
 
int _Radius
 Radius of kernel.
 
int _Size
 Size of kernel = 2 * _Radius + 1.
 

Additional Inherited Members

- Public Member Functions inherited from mirtk::VoxelFunction
void join (VoxelFunction &)
 Join results.
 
void split (VoxelFunction &)
 
 VoxelFunction ()
 Default constructor.
 
- Static Public Member Functions inherited from mirtk::VoxelFunction
static bool IsReduction ()
 
- Public Attributes inherited from mirtk::VoxelFunction
const ImageAttributes_Domain
 

Detailed Description

template<class TKernel = double>
class mirtk::ConvolutionFunction::TruncatedForegroundConvolution1D< TKernel >

Base class of 1D convolution functions which truncate the kernel at the foreground boundary.

Definition at line 659 of file ConvolutionFunction.h.


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