Image operation: replace image pixel values. More...
#include <cmtkImageOperationReplace.h>


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. | |
Image operation: replace image pixel values.
Inherit from image operation base class.
Definition at line 45 of file cmtkImageOperationReplace.h.
This class.
Reimplemented from cmtk::ImageOperation.
Definition at line 51 of file cmtkImageOperationReplace.h.
Superclass.
Definition at line 54 of file cmtkImageOperationReplace.h.
Operation mode.
Definition at line 57 of file cmtkImageOperationReplace.h.
| cmtk::ImageOperationReplace::ImageOperationReplace | ( | const Self::Mode | mode, |
| const Types::DataItem | value | ||
| ) | [inline] |
Constructor.
| mode | Operation mode. |
| value | Replacement data value. |
Definition at line 66 of file cmtkImageOperationReplace.h.
| 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.
| value | Replacement 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.
| value | Replacement value. |
Definition at line 99 of file cmtkImageOperationReplace.h.
Operation mode.
Definition at line 112 of file cmtkImageOperationReplace.h.
Padding value.
Definition at line 115 of file cmtkImageOperationReplace.h.
1.7.2