Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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)
 
 ~ApplyDiffImageOperation () override
 
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 m_CompressedImageContainer
 
- 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 QmitkSlicesInterpolator. 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 referred 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, compression is used via CompressedImageContainer.

Definition at line 39 of file mitkApplyDiffImageOperation.h.

Constructor & Destructor Documentation

◆ ApplyDiffImageOperation()

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
operationType
image
diffImage
timeStep
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)

◆ ~ApplyDiffImageOperation()

mitk::ApplyDiffImageOperation::~ApplyDiffImageOperation ( )
override

Member Function Documentation

◆ GetDiffImage()

Image::Pointer mitk::ApplyDiffImageOperation::GetDiffImage ( )

◆ GetFactor()

double mitk::ApplyDiffImageOperation::GetFactor ( )
inline

Definition at line 79 of file mitkApplyDiffImageOperation.h.

◆ GetImage()

Image* mitk::ApplyDiffImageOperation::GetImage ( )
inline

Definition at line 80 of file mitkApplyDiffImageOperation.h.

◆ GetSliceDimension()

unsigned int mitk::ApplyDiffImageOperation::GetSliceDimension ( )
inline

Definition at line 76 of file mitkApplyDiffImageOperation.h.

◆ GetSliceIndex()

unsigned int mitk::ApplyDiffImageOperation::GetSliceIndex ( )
inline

Definition at line 75 of file mitkApplyDiffImageOperation.h.

◆ GetTimeStep()

unsigned int mitk::ApplyDiffImageOperation::GetTimeStep ( )
inline

Definition at line 77 of file mitkApplyDiffImageOperation.h.

◆ IsImageStillValid()

bool mitk::ApplyDiffImageOperation::IsImageStillValid ( )
inline

Definition at line 83 of file mitkApplyDiffImageOperation.h.

◆ OnImageDeleted()

void mitk::ApplyDiffImageOperation::OnImageDeleted ( )
protected

◆ SetFactor()

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

Definition at line 78 of file mitkApplyDiffImageOperation.h.

Member Data Documentation

◆ m_CompressedImageContainer

CompressedImageContainer mitk::ApplyDiffImageOperation::m_CompressedImageContainer
protected

Definition at line 53 of file mitkApplyDiffImageOperation.h.

◆ m_DeleteTag

unsigned long mitk::ApplyDiffImageOperation::m_DeleteTag
protected

Definition at line 51 of file mitkApplyDiffImageOperation.h.

◆ m_Factor

double mitk::ApplyDiffImageOperation::m_Factor
protected

Definition at line 48 of file mitkApplyDiffImageOperation.h.

◆ m_Image

Image* mitk::ApplyDiffImageOperation::m_Image
protected

Definition at line 44 of file mitkApplyDiffImageOperation.h.

◆ m_ImageStillValid

bool mitk::ApplyDiffImageOperation::m_ImageStillValid
protected

Definition at line 49 of file mitkApplyDiffImageOperation.h.

◆ m_SliceDimension

unsigned int mitk::ApplyDiffImageOperation::m_SliceDimension
protected

Definition at line 46 of file mitkApplyDiffImageOperation.h.

◆ m_SliceIndex

unsigned int mitk::ApplyDiffImageOperation::m_SliceIndex
protected

Definition at line 45 of file mitkApplyDiffImageOperation.h.

◆ m_TimeStep

unsigned int mitk::ApplyDiffImageOperation::m_TimeStep
protected

Definition at line 47 of file mitkApplyDiffImageOperation.h.


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