MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Template providing median volume filtering functions. More...
#include <mdsMedian.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 mds::base::CFunctor < bool, int, int > | tProgressFunc |
Progress observer (= functor). | |
typedef CProgressInitializer | tProgressInitializer |
Helper class which can be used to call methods beginProgress() and endProgress() automatically. | |
typedef base::tVolume | tVolume |
Volume type. | |
typedef base::tVoxel | tVoxel |
Volume voxel type. | |
Public Member Functions | |
void | beginProgress () |
This function must be called by the class realizing an operation before it starts. | |
CVolumeMedianFilter (tSize Size) | |
Constructor that creates a new median filter. | |
void | deregisterProgressFunc () |
Sets the default empty observer. | |
void | endProgress () |
The function must be called by the class realizing an operation every time the operation finishes. | |
int | getProgressCount () const |
Returns current value of the internal progress value. | |
int | getProgressMax () const |
Returns the maximum allowed value of the internal progress counter. | |
tVoxel | getResponse (const tVolume &SrcVolume, tSize x, tSize y, tSize z) |
Returns filter response at specified volume position. | |
bool | operator() (const tVolume &SrcVolume, tVolume &DstVolume) |
Median volume filtering. | |
bool | progress (int iIncrement=1) |
Calls the registered observer. | |
void | registerProgressFunc (const tProgressFunc &Func) |
Sets observer/functor called to inform a calling process about the current state of the running operation. | |
void | setProgressMax (int iValue) |
Sets the maximal counter value. | |
void | setSize (tSize Size) |
Sets the windows size. | |
~CVolumeMedianFilter () | |
Destructor. | |
Protected Attributes | |
mds::base::CData< tVoxel > | m_Data |
Internal data buffer. | |
tSize | m_MedianSize |
Median filter size. |
Template providing median volume filtering functions.
typedef CVolumeFilter<V> mds::img::CVolumeMedianFilter< V >::base |
Volume filter base.
typedef mds::base::CFunctor<bool, int, int> mds::mod::CProgress::tProgressFunc [inherited] |
Progress observer (= functor).
typedef CProgressInitializer mds::mod::CProgress::tProgressInitializer [inherited] |
Helper class which can be used to call methods beginProgress() and endProgress() automatically.
Create static object of this type at the begining of a method that realizes an operation.
typedef base::tVolume mds::img::CVolumeMedianFilter< V >::tVolume |
Volume type.
Reimplemented from mds::img::CVolumeFilter< V >.
typedef base::tVoxel mds::img::CVolumeMedianFilter< V >::tVoxel |
Volume voxel type.
Reimplemented from mds::img::CVolumeFilter< V >.
anonymous enum [inherited] |
mds::img::CVolumeMedianFilter< V >::CVolumeMedianFilter | ( | tSize | Size | ) |
Constructor that creates a new median filter.
mds::img::CVolumeMedianFilter< V >::~CVolumeMedianFilter | ( | ) |
Destructor.
void mds::mod::CProgress::beginProgress | ( | ) | [inherited] |
This function must be called by the class realizing an operation before it starts.
void mds::mod::CProgress::deregisterProgressFunc | ( | ) | [inherited] |
Sets the default empty observer.
void mds::mod::CProgress::endProgress | ( | ) | [inherited] |
The function must be called by the class realizing an operation every time the operation finishes.
int mds::mod::CProgress::getProgressCount | ( | ) | const [inherited] |
Returns current value of the internal progress value.
int mds::mod::CProgress::getProgressMax | ( | ) | const [inherited] |
Returns the maximum allowed value of the internal progress counter.
CVolumeMedianFilter< V >::tVoxel CVolumeMedianFilter::getResponse | ( | const tVolume & | SrcVolume, |
tSize | x, | ||
tSize | y, | ||
tSize | z | ||
) |
Returns filter response at specified volume position.
bool mds::mod::CProgress::progress | ( | int | iIncrement = 1 | ) | [inherited] |
Calls the registered observer.
void mds::mod::CProgress::registerProgressFunc | ( | const tProgressFunc & | Func | ) | [inherited] |
Sets observer/functor called to inform a calling process about the current state of the running operation.
void mds::mod::CProgress::setProgressMax | ( | int | iValue | ) | [inherited] |
Sets the maximal counter value.
void mds::img::CVolumeMedianFilter< V >::setSize | ( | tSize | Size | ) |
Sets the windows size.
mds::base::CData<tVoxel> mds::img::CVolumeMedianFilter< V >::m_Data [protected] |
Internal data buffer.
tSize mds::img::CVolumeMedianFilter< V >::m_MedianSize [protected] |
Median filter size.