Public Member Functions | Static Public Member Functions | Private Attributes

cmtk::ImageOperationThreshold Class Reference

Image operation: thresholding. More...

#include <cmtkImageOperationThreshold.h>

Inheritance diagram for cmtk::ImageOperationThreshold:
Inheritance graph
[legend]
Collaboration diagram for cmtk::ImageOperationThreshold:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Image operation: thresholding.

Inherit from image operation base class.

Definition at line 43 of file cmtkImageOperationThreshold.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Flag for using the threshold as an upper, rather than lower, threshold.

Definition at line 90 of file cmtkImageOperationThreshold.h.

Referenced by Apply().

Flag for binarization.

Definition at line 96 of file cmtkImageOperationThreshold.h.

Referenced by Apply().

Threshold.

Definition at line 87 of file cmtkImageOperationThreshold.h.

Referenced by Apply().

Flag for setting values beyond threshold to padding, rather than to threshold value.

Definition at line 93 of file cmtkImageOperationThreshold.h.

Referenced by Apply().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines