Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes

cmtk::ImageOperationApplyMask Class Reference

Apply mask image. More...

#include <cmtkImageOperationApplyMask.h>

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

List of all members.

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.

Detailed Description

Apply mask image.

Inherit generic image operation.

Definition at line 43 of file cmtkImageOperationApplyMask.h.


Member Typedef Documentation

This class.

Reimplemented from cmtk::ImageOperation.

Definition at line 49 of file cmtkImageOperationApplyMask.h.


Constructor & Destructor Documentation

cmtk::ImageOperationApplyMask::ImageOperationApplyMask ( const cmtk::UniformVolume::SmartPtr maskVolume ) [inline]

Constructor.

Definition at line 52 of file cmtkImageOperationApplyMask.h.


Member Function Documentation

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.


Member Data Documentation

The mask volume.

Definition at line 71 of file cmtkImageOperationApplyMask.h.


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