Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Operation, that holds information about some image difference. More...
#include <mitkApplyDiffImageOperation.h>
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 () |
Image * | GetImage () |
Image::Pointer | GetDiffImage () |
bool | IsImageStillValid () |
![]() | |
virtual std::vector< std::string > | GetClassHierarchy () const |
itkTypeMacroNoParent (Operation) Operation(OperationType operationType) | |
virtual | ~Operation () |
OperationType | GetOperationType () |
Protected Member Functions | |
void | OnImageDeleted () |
Protected Attributes | |
Image * | m_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 |
![]() | |
OperationType | m_OperationType |
Additional Inherited Members | |
![]() | |
typedef Operation | Self |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
![]() | |
static const char * | GetStaticNameOfClass () |
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 39 of file mitkApplyDiffImageOperation.h.
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.
sliceIndex | brief Which slice to extract (first one has index 0). |
sliceDimension | Number of the dimension which is constant for all pixels of the desired slice (e.g. 0 for axial) |
Definition at line 17 of file mitkApplyDiffImageOperation.cpp.
References m_DeleteTag, m_ImageStillValid, mitk::CompressedImageContainer::New(), OnImageDeleted(), and zlibContainer.
|
override |
Definition at line 48 of file mitkApplyDiffImageOperation.cpp.
References m_DeleteTag, m_Image, and m_ImageStillValid.
mitk::Image::Pointer mitk::ApplyDiffImageOperation::GetDiffImage | ( | ) |
Definition at line 61 of file mitkApplyDiffImageOperation.cpp.
References image, and zlibContainer.
|
inline |
Definition at line 75 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 76 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 72 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 71 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 73 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 79 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 56 of file mitkApplyDiffImageOperation.cpp.
References m_ImageStillValid.
Referenced by ApplyDiffImageOperation().
|
inline |
Definition at line 74 of file mitkApplyDiffImageOperation.h.
Referenced by QmitkSlicesInterpolator::AcceptAllInterpolations().
|
protected |
Definition at line 51 of file mitkApplyDiffImageOperation.h.
Referenced by ApplyDiffImageOperation(), and ~ApplyDiffImageOperation().
|
protected |
Definition at line 48 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 44 of file mitkApplyDiffImageOperation.h.
Referenced by ~ApplyDiffImageOperation().
|
protected |
Definition at line 49 of file mitkApplyDiffImageOperation.h.
Referenced by ApplyDiffImageOperation(), OnImageDeleted(), and ~ApplyDiffImageOperation().
|
protected |
Definition at line 46 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 45 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 47 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 53 of file mitkApplyDiffImageOperation.h.
Referenced by ApplyDiffImageOperation(), and GetDiffImage().