Base class of 1D convolution functions which truncate the kernel at the foreground boundary. More...
#include <ConvolutionFunction.h>
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 |
Base class of 1D convolution functions which truncate the kernel at the foreground boundary.
Definition at line 659 of file ConvolutionFunction.h.