Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit

Operation, that holds information about some image difference. More...

#include <mitkApplyDiffImageOperation.h>

Inheritance diagram for mitk::ApplyDiffImageOperation:
Collaboration diagram for mitk::ApplyDiffImageOperation:

Public Member Functions

 ApplyDiffImageOperation (OperationType operationType, Image *image, Image *diffImage, unsigned int timeStep=0, unsigned int sliceDimension=2, unsigned int sliceIndex=0)
 
virtual ~ApplyDiffImageOperation ()
 
unsigned int GetSliceIndex ()
 
unsigned int GetSliceDimension ()
 
unsigned int GetTimeStep ()
 
void SetFactor (double factor)
 
double GetFactor ()
 
ImageGetImage ()
 
Image::Pointer GetDiffImage ()
 
bool IsImageStillValid ()
 
- Public Member Functions inherited from mitk::Operation
virtual std::vector< std::string > GetClassHierarchy () const
 
 itkTypeMacroNoParent (Operation) Operation(OperationType operationType)
 
virtual ~Operation ()
 
OperationType GetOperationType ()
 

Protected Member Functions

void OnImageDeleted ()
 

Protected Attributes

Imagem_Image
 
unsigned int m_SliceIndex
 
unsigned int m_SliceDimension
 
unsigned int m_TimeStep
 
double m_Factor
 
bool m_ImageStillValid
 
unsigned long m_DeleteTag
 
CompressedImageContainer::Pointer zlibContainer
 
- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 

Additional Inherited Members

- Public Types inherited from mitk::Operation
typedef Operation Self
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Static Public Member Functions inherited from mitk::Operation
static const char * GetStaticNameOfClass ()
 

Detailed Description

Operation, that holds information about some image difference.

This class stores undo information for DiffImageApplier. Instances of this class are created e.g. by OverwriteSliceImageFilter. This works only for images with 1 channel (gray scale images, no color images).

ApplyDiffImageOperation of course refers to an image (a segmentation usually). The refered image is observed for itk::DeleteEvent, because there is no SmartPointer used to keep the image alive – the purpose of this class is undo and the undo stack should not keep things alive forever.

To save memory, zlib compression is used via CompressedImageContainer.

Definition at line 43 of file mitkApplyDiffImageOperation.h.

Constructor & Destructor Documentation

mitk::ApplyDiffImageOperation::ApplyDiffImageOperation ( OperationType  operationType,
Image image,
Image diffImage,
unsigned int  timeStep = 0,
unsigned int  sliceDimension = 2,
unsigned int  sliceIndex = 0 
)

Pass only 2D images here.

Parameters
sliceIndexbrief Which slice to extract (first one has index 0).
sliceDimensionNumber of the dimension which is constant for all pixels of the desired slice (e.g. 0 for axial)

Definition at line 21 of file mitkApplyDiffImageOperation.cpp.

References m_DeleteTag, m_ImageStillValid, mitk::CompressedImageContainer::New(), mitk::New(), OnImageDeleted(), and zlibContainer.

mitk::ApplyDiffImageOperation::~ApplyDiffImageOperation ( )
virtual

Definition at line 52 of file mitkApplyDiffImageOperation.cpp.

Member Function Documentation

mitk::Image::Pointer mitk::ApplyDiffImageOperation::GetDiffImage ( )
double mitk::ApplyDiffImageOperation::GetFactor ( )
inline
Image* mitk::ApplyDiffImageOperation::GetImage ( void  )
inline
unsigned int mitk::ApplyDiffImageOperation::GetSliceDimension ( )
inline
unsigned int mitk::ApplyDiffImageOperation::GetSliceIndex ( )
inline
unsigned int mitk::ApplyDiffImageOperation::GetTimeStep ( )
inline
bool mitk::ApplyDiffImageOperation::IsImageStillValid ( )
inline
void mitk::ApplyDiffImageOperation::OnImageDeleted ( )
protected

Definition at line 60 of file mitkApplyDiffImageOperation.cpp.

Referenced by ApplyDiffImageOperation().

void mitk::ApplyDiffImageOperation::SetFactor ( double  factor)
inline

Member Data Documentation

unsigned long mitk::ApplyDiffImageOperation::m_DeleteTag
protected

Definition at line 55 of file mitkApplyDiffImageOperation.h.

Referenced by ApplyDiffImageOperation().

double mitk::ApplyDiffImageOperation::m_Factor
protected

Definition at line 52 of file mitkApplyDiffImageOperation.h.

Image* mitk::ApplyDiffImageOperation::m_Image
protected

Definition at line 48 of file mitkApplyDiffImageOperation.h.

bool mitk::ApplyDiffImageOperation::m_ImageStillValid
protected

Definition at line 53 of file mitkApplyDiffImageOperation.h.

Referenced by ApplyDiffImageOperation().

unsigned int mitk::ApplyDiffImageOperation::m_SliceDimension
protected

Definition at line 50 of file mitkApplyDiffImageOperation.h.

unsigned int mitk::ApplyDiffImageOperation::m_SliceIndex
protected

Definition at line 49 of file mitkApplyDiffImageOperation.h.

unsigned int mitk::ApplyDiffImageOperation::m_TimeStep
protected

Definition at line 51 of file mitkApplyDiffImageOperation.h.

CompressedImageContainer::Pointer mitk::ApplyDiffImageOperation::zlibContainer
protected

Definition at line 57 of file mitkApplyDiffImageOperation.h.

Referenced by ApplyDiffImageOperation().


The documentation for this class was generated from the following files: