Image operation: crop by threshold. More...
#include <cmtkImageOperationCropThreshold.h>
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. |
Image operation: crop by threshold.
Inherit from image operation base class.
Definition at line 43 of file cmtkImageOperationCropThreshold.h.
cmtk::ImageOperationCropThreshold::ImageOperationCropThreshold | ( | const double | threshold, |
const bool | writeRegion = false , |
||
const bool | writeXform = false |
||
) | [inline] |
Constructor.
Definition at line 49 of file cmtkImageOperationCropThreshold.h.
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.
double cmtk::ImageOperationCropThreshold::m_Threshold [private] |
Cropping threshold.
Definition at line 74 of file cmtkImageOperationCropThreshold.h.
Referenced by Apply().
bool cmtk::ImageOperationCropThreshold::m_WriteRegion [private] |
Flag for writing region to standard output.
Definition at line 77 of file cmtkImageOperationCropThreshold.h.
Referenced by Apply().
bool cmtk::ImageOperationCropThreshold::m_WriteXform [private] |
Flag for writing transformation to standard output.
Definition at line 80 of file cmtkImageOperationCropThreshold.h.
Referenced by Apply().