Image operation: thresholding. More...
#include <cmtkImageOperationThreshold.h>


Public Member Functions | |
| ImageOperationThreshold (const double threshold, const bool above=false, const bool toPadding=false, const bool binarize=false) | |
| Constructor. | |
| virtual cmtk::UniformVolume::SmartPtr | Apply (cmtk::UniformVolume::SmartPtr &volume) |
| Apply this operation to an image in place. | |
Static Public Member Functions | |
| static void | NewBelow (const double threshold) |
| Create a new lower thresholding operation. | |
| static void | NewAbove (const double threshold) |
| Create a new upper thresholding operation. | |
| static void | NewBelowToPadding (const double threshold) |
| Create a new lower thresholding operation to padding. | |
| static void | NewAboveToPadding (const double threshold) |
| Create a new upper thresholding operation to padding. | |
| static void | NewBinarize (const double threshold) |
| Create a new binarization thresholding operation. | |
Private Attributes | |
| double | m_Threshold |
| Threshold. | |
| bool | m_Above |
| Flag for using the threshold as an upper, rather than lower, threshold. | |
| bool | m_ToPadding |
| Flag for setting values beyond threshold to padding, rather than to threshold value. | |
| bool | m_Binarize |
| Flag for binarization. | |
Image operation: thresholding.
Inherit from image operation base class.
Definition at line 43 of file cmtkImageOperationThreshold.h.
| cmtk::ImageOperationThreshold::ImageOperationThreshold | ( | const double | threshold, |
| const bool | above = false, |
||
| const bool | toPadding = false, |
||
| const bool | binarize = false |
||
| ) | [inline] |
Constructor.
Definition at line 49 of file cmtkImageOperationThreshold.h.
| cmtk::UniformVolume::SmartPtr cmtk::ImageOperationThreshold::Apply | ( | cmtk::UniformVolume::SmartPtr & | volume ) | [virtual] |
Apply this operation to an image in place.
Reimplemented from cmtk::ImageOperation.
Definition at line 34 of file cmtkImageOperationThreshold.cxx.
References m_Above, m_Binarize, cmtk::Types::Range< T >::m_LowerBound, m_Threshold, m_ToPadding, and cmtk::Types::Range< T >::m_UpperBound.
| static void cmtk::ImageOperationThreshold::NewAbove | ( | const double | threshold ) | [inline, static] |
Create a new upper thresholding operation.
Definition at line 62 of file cmtkImageOperationThreshold.h.
| static void cmtk::ImageOperationThreshold::NewAboveToPadding | ( | const double | threshold ) | [inline, static] |
Create a new upper thresholding operation to padding.
Definition at line 74 of file cmtkImageOperationThreshold.h.
| static void cmtk::ImageOperationThreshold::NewBelow | ( | const double | threshold ) | [inline, static] |
Create a new lower thresholding operation.
Definition at line 56 of file cmtkImageOperationThreshold.h.
| static void cmtk::ImageOperationThreshold::NewBelowToPadding | ( | const double | threshold ) | [inline, static] |
Create a new lower thresholding operation to padding.
Definition at line 68 of file cmtkImageOperationThreshold.h.
| static void cmtk::ImageOperationThreshold::NewBinarize | ( | const double | threshold ) | [inline, static] |
Create a new binarization thresholding operation.
Definition at line 80 of file cmtkImageOperationThreshold.h.
bool cmtk::ImageOperationThreshold::m_Above [private] |
Flag for using the threshold as an upper, rather than lower, threshold.
Definition at line 90 of file cmtkImageOperationThreshold.h.
Referenced by Apply().
bool cmtk::ImageOperationThreshold::m_Binarize [private] |
Flag for binarization.
Definition at line 96 of file cmtkImageOperationThreshold.h.
Referenced by Apply().
double cmtk::ImageOperationThreshold::m_Threshold [private] |
bool cmtk::ImageOperationThreshold::m_ToPadding [private] |
Flag for setting values beyond threshold to padding, rather than to threshold value.
Definition at line 93 of file cmtkImageOperationThreshold.h.
Referenced by Apply().
1.7.2