MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Protected Types | Protected Attributes
mds::img::CMultiThresholding< T > Class Template Reference

Functor providing pixel value thresholding. More...

#include <mdsImageFunctional.h>

List of all members.

Public Member Functions

void add (const T &Value)
 Adds a new threshold.
 CMultiThresholding ()
 Default constructor.
T & get (tSize i)
 Returns the i-th threshold.
const T & get (tSize i) const
tSize getSize () const
 Returns the number of thresholds.
void operator() (T &Value)
 Operator multiplies a given parameter.
void set (tSize i, const T &Value)
 Sets the i-th threshold.

Protected Types

typedef std::vector< T > tThresholds
 Vector of thresholds.

Protected Attributes

bool m_bCheckPrevious
 Internal flag meaning that previously treated values are valid.
m_NewValue
m_Previous
 Previously treated values.
tThresholds m_Thresholds
 Applied thresholds.

Detailed Description

template<typename T>
class mds::img::CMultiThresholding< T >

Functor providing pixel value thresholding.


Member Typedef Documentation

template<typename T >
typedef std::vector<T> mds::img::CMultiThresholding< T >::tThresholds [protected]

Vector of thresholds.


Constructor & Destructor Documentation

template<typename T >
mds::img::CMultiThresholding< T >::CMultiThresholding ( )

Default constructor.


Member Function Documentation

template<typename T >
void mds::img::CMultiThresholding< T >::add ( const T &  Value)

Adds a new threshold.

template<typename T >
T& mds::img::CMultiThresholding< T >::get ( tSize  i)

Returns the i-th threshold.

template<typename T >
const T& mds::img::CMultiThresholding< T >::get ( tSize  i) const
template<typename T >
tSize mds::img::CMultiThresholding< T >::getSize ( ) const

Returns the number of thresholds.

template<typename T >
void mds::img::CMultiThresholding< T >::operator() ( T &  Value)

Operator multiplies a given parameter.

template<typename T >
void mds::img::CMultiThresholding< T >::set ( tSize  i,
const T &  Value 
)

Sets the i-th threshold.


Member Data Documentation

template<typename T >
bool mds::img::CMultiThresholding< T >::m_bCheckPrevious [protected]

Internal flag meaning that previously treated values are valid.

template<typename T >
T mds::img::CMultiThresholding< T >::m_NewValue [protected]
template<typename T >
T mds::img::CMultiThresholding< T >::m_Previous [protected]

Previously treated values.

template<typename T >
tThresholds mds::img::CMultiThresholding< T >::m_Thresholds [protected]

Applied thresholds.


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