MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Averaging image filter (3x3 version). More...
#include <mdsAveraging.h>
Public Types | |
enum | { TEMPLATE_PARAMETER_IS_NOT_VOLUME = V::CLASS_VOLUME } |
Check that type V is a volume. More... | |
typedef CVolumeFilter< V > | base |
Volume filter base. | |
typedef base::tVolume | tVolume |
Volume type. | |
typedef base::tVoxel | tVoxel |
Volume voxel type. | |
Public Member Functions | |
CVolumeAvg3Filter () | |
Default constructor. | |
tVoxel | getResponse (const tVolume &SrcVolume, tSize x, tSize y, tSize z) |
Returns filter response at specified volume position. | |
tSize | getSize () const |
Returns filter standard deviation. | |
bool | operator() (const tVolume &SrcVolume, tVolume &DstVolume) |
Filtering of input/source volume. | |
~CVolumeAvg3Filter () | |
Destructor. | |
Static Public Attributes | |
static const int | DENOM = 36 |
Number used to divide filter response. | |
static const CKernel3D::tData | KERNEL [] |
Filter kernel. |
Averaging image filter (3x3 version).
typedef CVolumeFilter<V> mds::img::CVolumeAvg3Filter< V >::base |
Volume filter base.
typedef base::tVolume mds::img::CVolumeAvg3Filter< V >::tVolume |
Volume type.
Reimplemented from mds::img::CVolumeFilter< V >.
typedef base::tVoxel mds::img::CVolumeAvg3Filter< V >::tVoxel |
Volume voxel type.
Reimplemented from mds::img::CVolumeFilter< V >.
anonymous enum [inherited] |
mds::img::CVolumeAvg3Filter< V >::CVolumeAvg3Filter | ( | ) |
Default constructor.
mds::img::CVolumeAvg3Filter< V >::~CVolumeAvg3Filter | ( | ) |
Destructor.
CVolumeAvg3Filter< V >::tVoxel CVolumeAvg3Filter::getResponse | ( | const tVolume & | SrcVolume, |
tSize | x, | ||
tSize | y, | ||
tSize | z | ||
) |
Returns filter response at specified volume position.
tSize mds::img::CVolumeAvg3Filter< V >::getSize | ( | ) | const |
Returns filter standard deviation.
bool CVolumeAvg3Filter::operator() | ( | const tVolume & | SrcVolume, |
tVolume & | DstVolume | ||
) | [virtual] |
Filtering of input/source volume.
Point filter responses are written to the destination volume.
Implements mds::img::CVolumeFilter< V >.
const int mds::img::CVolumeAvg3Filter< V >::DENOM = 36 [static] |
Number used to divide filter response.
const CKernel3D::tData CVolumeAvg3Filter::KERNEL [static] |
{ 1.0f, 1.0f, 1.0f, 1.0f, 2.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 2.0f, 1.0f, 2.0f, 4.0f, 2.0f, 1.0f, 2.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 2.0f, 1.0f, 1.0f, 1.0f, 1.0f }
Filter kernel.
Volume filter kernel.