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

cmtk::ImageOperationReplace Class Reference

Image operation: replace image pixel values. More...

#include <cmtkImageOperationReplace.h>

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

List of all members.

Public Types

enum  Mode { REPLACE_PADDING, REPLACE_INF_NAN }
 

Operation mode.

More...
typedef ImageOperationReplace Self
 This class.
typedef ImageOperation Superclass
 Superclass.

Public Member Functions

 ImageOperationReplace (const Self::Mode mode, const Types::DataItem value)
 Constructor.
virtual
cmtk::UniformVolume::SmartPtr 
Apply (cmtk::UniformVolume::SmartPtr &volume)
 Apply this operation to an image in place.

Static Public Member Functions

static void NewReplacePadding (const double value)
 Create new operation to replace padded pixels.
static void NewReplaceInfNaN (const double value)
 Create new operation to replace pixels with Inf or NaN values.

Private Attributes

Self::Mode m_Mode
 Operation mode.
Types::DataItem m_ReplacementValue
 Padding value.

Detailed Description

Image operation: replace image pixel values.

Inherit from image operation base class.

Definition at line 45 of file cmtkImageOperationReplace.h.


Member Typedef Documentation

This class.

Reimplemented from cmtk::ImageOperation.

Definition at line 51 of file cmtkImageOperationReplace.h.

Superclass.

Definition at line 54 of file cmtkImageOperationReplace.h.


Member Enumeration Documentation

Operation mode.

Enumerator:
REPLACE_PADDING 

Replace padded pixels.

REPLACE_INF_NAN 

Replace Inf and NaN pixels.

Definition at line 57 of file cmtkImageOperationReplace.h.


Constructor & Destructor Documentation

cmtk::ImageOperationReplace::ImageOperationReplace ( const Self::Mode  mode,
const Types::DataItem  value 
) [inline]

Constructor.

Parameters:
modeOperation mode.
valueReplacement data value.

Definition at line 66 of file cmtkImageOperationReplace.h.


Member Function Documentation

virtual cmtk::UniformVolume::SmartPtr cmtk::ImageOperationReplace::Apply ( cmtk::UniformVolume::SmartPtr volume ) [inline, virtual]

Apply this operation to an image in place.

Reimplemented from cmtk::ImageOperation.

Definition at line 72 of file cmtkImageOperationReplace.h.

References cmtk::TypedArray::Get(), cmtk::TypedArray::GetDataSize(), cmtk::TypedArray::ReplacePaddingData(), and cmtk::TypedArray::Set().

static void cmtk::ImageOperationReplace::NewReplaceInfNaN ( const double  value ) [inline, static]

Create new operation to replace pixels with Inf or NaN values.

Parameters:
valueReplacement value.

Definition at line 105 of file cmtkImageOperationReplace.h.

static void cmtk::ImageOperationReplace::NewReplacePadding ( const double  value ) [inline, static]

Create new operation to replace padded pixels.

Parameters:
valueReplacement value.

Definition at line 99 of file cmtkImageOperationReplace.h.


Member Data Documentation

Operation mode.

Definition at line 112 of file cmtkImageOperationReplace.h.

Padding value.

Definition at line 115 of file cmtkImageOperationReplace.h.


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