#include <irtkConvolutionWithPadding_2D.h>
This class defines and implements two-dimensional convolutions of a padded image with a filter kernel. The convolution is computed along the x- and y-axis. This class assumes that the filter kernel is two-dimensional and its size along the z-axis must be 1. The filter ignores any padded values in the image.
Definition at line 27 of file irtkConvolutionWithPadding_2D.h.
Public Member Functions | |
irtkConvolutionWithPadding_2D (VoxelType, Bool=False) | |
Constructor. | |
void | PutPaddingValue (VoxelType) |
Put the padding value. | |
VoxelType | GetPaddingValue () |
Get the padding value. | |
Protected Member Functions | |
virtual const char * | NameOfClass () |
Returns the name of the class. | |
virtual double | Run (int, int, int, int) |
Run the convolution filter. | |
Protected Attributes | |
VoxelType | _padding |
Padding value. |
virtual double irtkConvolutionWithPadding_2D< VoxelType >::Run | ( | int | , | |
int | , | |||
int | , | |||
int | ||||
) | [protected, virtual] |
Run the convolution filter.
This method is protected and should only be called from within public member function Run(). This method also overrides the member function Run() of the base class and ignores any padded values during the convolution. If more than 50% of the voxels are padded, it returns the padding value, otherwise it returns the result of the convolution.
Reimplemented from irtkConvolution_2D< VoxelType >.
VoxelType irtkConvolutionWithPadding_2D< VoxelType >::_padding [protected] |
Padding value.
The padding value defines which voxels are ignored during the calculation of the convolution. All voxels whose value is smaller or equal to the padding value are ignored.
Definition at line 36 of file irtkConvolutionWithPadding_2D.h.