Apply mask image. More...
#include <cmtkImageOperationApplyMask.h>
Public Types | |
typedef ImageOperationApplyMask | Self |
This class. | |
Public Member Functions | |
ImageOperationApplyMask (const cmtk::UniformVolume::SmartPtr &maskVolume) | |
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 char *maskFileName) |
Create new mask operation. | |
static void | NewInverse (const char *maskFileName) |
Create new inverse mask operation. | |
Static Private Member Functions | |
static cmtk::UniformVolume::SmartPtr | ReadMaskFile (const char *maskFileName, const bool inverse=false) |
Read the actual mask file. | |
Private Attributes | |
cmtk::UniformVolume::SmartPtr | m_MaskVolume |
The mask volume. |
Apply mask image.
Inherit generic image operation.
Definition at line 43 of file cmtkImageOperationApplyMask.h.
This class.
Reimplemented from cmtk::ImageOperation.
Definition at line 49 of file cmtkImageOperationApplyMask.h.
cmtk::ImageOperationApplyMask::ImageOperationApplyMask | ( | const cmtk::UniformVolume::SmartPtr & | maskVolume ) | [inline] |
Constructor.
Definition at line 52 of file cmtkImageOperationApplyMask.h.
cmtk::UniformVolume::SmartPtr cmtk::ImageOperationApplyMask::Apply | ( | cmtk::UniformVolume::SmartPtr & | volume ) | [virtual] |
Apply this operation to an image in place.
Reimplemented from cmtk::ImageOperation.
Definition at line 37 of file cmtkImageOperationApplyMask.cxx.
References cmtk::TypedArray::GetData(), cmtk::TypedArray::IsPaddingOrZeroAt(), cmtk::META_IMAGE_ORIENTATION, and cmtk::StdErr.
static void cmtk::ImageOperationApplyMask::New | ( | const char * | maskFileName ) | [inline, static] |
Create new mask operation.
Definition at line 58 of file cmtkImageOperationApplyMask.h.
static void cmtk::ImageOperationApplyMask::NewInverse | ( | const char * | maskFileName ) | [inline, static] |
Create new inverse mask operation.
Definition at line 64 of file cmtkImageOperationApplyMask.h.
cmtk::UniformVolume::SmartPtr cmtk::ImageOperationApplyMask::ReadMaskFile | ( | const char * | maskFileName, |
const bool | inverse = false |
||
) | [static, private] |
Read the actual mask file.
Definition at line 67 of file cmtkImageOperationApplyMask.cxx.
References cmtk::VolumeIO::ReadOriented(), cmtk::StdErr, and cmtk::TYPE_BYTE.
The mask volume.
Definition at line 71 of file cmtkImageOperationApplyMask.h.