Public Member Functions | Static Public Member Functions | Private Attributes

cmtk::ImageOperationCropThreshold Class Reference

Image operation: crop by threshold. More...

#include <cmtkImageOperationCropThreshold.h>

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

List of all members.

Public Member Functions

 ImageOperationCropThreshold (const double threshold, const bool writeRegion=false, const bool writeXform=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 New (const double threshold)
 Create a new crop operation.
static void NewWriteRegion (const double threshold)
 Create a new crop operation with region output.
static void NewWriteXform (const double threshold)
 Create a new crop operation with transformation output.

Private Attributes

double m_Threshold
 Cropping threshold.
bool m_WriteRegion
 Flag for writing region to standard output.
bool m_WriteXform
 Flag for writing transformation to standard output.

Detailed Description

Image operation: crop by threshold.

Inherit from image operation base class.

Definition at line 43 of file cmtkImageOperationCropThreshold.h.


Constructor & Destructor Documentation

cmtk::ImageOperationCropThreshold::ImageOperationCropThreshold ( const double  threshold,
const bool  writeRegion = false,
const bool  writeXform = false 
) [inline]

Constructor.

Definition at line 49 of file cmtkImageOperationCropThreshold.h.


Member Function Documentation

cmtk::UniformVolume::SmartPtr cmtk::ImageOperationCropThreshold::Apply ( cmtk::UniformVolume::SmartPtr volume ) [virtual]

Apply this operation to an image in place.

Reimplemented from cmtk::ImageOperation.

Definition at line 34 of file cmtkImageOperationCropThreshold.cxx.

References cmtk::Region< NDIM, T >::From(), m_Threshold, m_WriteRegion, m_WriteXform, and cmtk::Region< NDIM, T >::To().

static void cmtk::ImageOperationCropThreshold::New ( const double  threshold ) [inline, static]

Create a new crop operation.

Definition at line 55 of file cmtkImageOperationCropThreshold.h.

static void cmtk::ImageOperationCropThreshold::NewWriteRegion ( const double  threshold ) [inline, static]

Create a new crop operation with region output.

Definition at line 61 of file cmtkImageOperationCropThreshold.h.

static void cmtk::ImageOperationCropThreshold::NewWriteXform ( const double  threshold ) [inline, static]

Create a new crop operation with transformation output.

Definition at line 67 of file cmtkImageOperationCropThreshold.h.


Member Data Documentation

Cropping threshold.

Definition at line 74 of file cmtkImageOperationCropThreshold.h.

Referenced by Apply().

Flag for writing region to standard output.

Definition at line 77 of file cmtkImageOperationCropThreshold.h.

Referenced by Apply().

Flag for writing transformation to standard output.

Definition at line 80 of file cmtkImageOperationCropThreshold.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