Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
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 () |
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 | 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< 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 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.
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.
operationType | |
image | |
diffImage | |
timeStep | |
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) |
|
override |
Image::Pointer mitk::ApplyDiffImageOperation::GetDiffImage | ( | ) |
|
inline |
Definition at line 79 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 80 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 76 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 75 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 77 of file mitkApplyDiffImageOperation.h.
|
inline |
Definition at line 83 of file mitkApplyDiffImageOperation.h.
|
protected |
|
inline |
Definition at line 78 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 53 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 51 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 48 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 44 of file mitkApplyDiffImageOperation.h.
|
protected |
Definition at line 49 of file mitkApplyDiffImageOperation.h.
|
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.