Medical Imaging Interaction Toolkit
2016.11.0
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) | |
virtual | ~ApplyDiffImageOperation () |
unsigned int | GetSliceIndex () |
unsigned int | GetSliceDimension () |
unsigned int | GetTimeStep () |
void | SetFactor (double factor) |
double | GetFactor () |
Image * | GetImage () |
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 | |
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 |
Protected Attributes inherited from mitk::Operation | |
OperationType | m_OperationType |
Additional Inherited Members | |
Public Types inherited from mitk::Operation | |
typedef Operation | Self |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Static Public Member Functions inherited from mitk::Operation | |
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 43 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 21 of file mitkApplyDiffImageOperation.cpp.
References m_DeleteTag, m_ImageStillValid, mitk::CompressedImageContainer::New(), mitk::New(), OnImageDeleted(), and zlibContainer.
|
virtual |
Definition at line 52 of file mitkApplyDiffImageOperation.cpp.
mitk::Image::Pointer mitk::ApplyDiffImageOperation::GetDiffImage | ( | ) |
Definition at line 65 of file mitkApplyDiffImageOperation.cpp.
Referenced by mitk::DiffImageApplier::ExecuteOperation().
|
inline |
Definition at line 79 of file mitkApplyDiffImageOperation.h.
Referenced by mitk::DiffImageApplier::ExecuteOperation().
|
inline |
Definition at line 80 of file mitkApplyDiffImageOperation.h.
Referenced by mitk::DiffImageApplier::ExecuteOperation().
|
inline |
Definition at line 76 of file mitkApplyDiffImageOperation.h.
Referenced by mitk::DiffImageApplier::ExecuteOperation().
|
inline |
Definition at line 75 of file mitkApplyDiffImageOperation.h.
Referenced by mitk::DiffImageApplier::ExecuteOperation().
|
inline |
Definition at line 77 of file mitkApplyDiffImageOperation.h.
Referenced by mitk::DiffImageApplier::ExecuteOperation().
|
inline |
Definition at line 83 of file mitkApplyDiffImageOperation.h.
Referenced by mitk::DiffImageApplier::ExecuteOperation().
|
protected |
Definition at line 60 of file mitkApplyDiffImageOperation.cpp.
Referenced by ApplyDiffImageOperation().
|
inline |
Definition at line 78 of file mitkApplyDiffImageOperation.h.
Referenced by QmitkSlicesInterpolator::AcceptAllInterpolations().
|
protected |
Definition at line 55 of file mitkApplyDiffImageOperation.h.
Referenced by ApplyDiffImageOperation().
|
protected |
Definition at line 52 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 48 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 53 of file mitkApplyDiffImageOperation.h.
Referenced by ApplyDiffImageOperation().
|
protected |
Definition at line 50 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 49 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 51 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 57 of file mitkApplyDiffImageOperation.h.
Referenced by ApplyDiffImageOperation().