Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkApplyDiffImageOperation.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkApplyDiffImageOperation_h
14 #define mitkApplyDiffImageOperation_h
15 
18 #include "mitkOperation.h"
19 
20 namespace mitk
21 {
40  {
41  protected:
42  void OnImageDeleted();
43 
45  unsigned int m_SliceIndex;
46  unsigned int m_SliceDimension;
47  unsigned int m_TimeStep;
48  double m_Factor;
50 
51  unsigned long m_DeleteTag;
52 
54 
55  public:
67  Image *image,
68  Image *diffImage,
69  unsigned int timeStep = 0,
70  unsigned int sliceDimension = 2,
71  unsigned int sliceIndex = 0);
72  ~ApplyDiffImageOperation() override;
73 
74  // Unfortunately cannot use itkGet/SetMacros here, since Operation does not inherit itk::Object
75  unsigned int GetSliceIndex() { return m_SliceIndex; }
76  unsigned int GetSliceDimension() { return m_SliceDimension; }
77  unsigned int GetTimeStep() { return m_TimeStep; }
78  void SetFactor(double factor) { m_Factor = factor; }
79  double GetFactor() { return m_Factor; }
80  Image *GetImage() { return m_Image; }
81  Image::Pointer GetDiffImage();
82 
83  bool IsImageStillValid() { return m_ImageStillValid; }
84  };
85 
86 } // namespace mitk
87 
88 #endif
mitk::ApplyDiffImageOperation::GetTimeStep
unsigned int GetTimeStep()
Definition: mitkApplyDiffImageOperation.h:77
mitk::ApplyDiffImageOperation::GetSliceDimension
unsigned int GetSliceDimension()
Definition: mitkApplyDiffImageOperation.h:76
mitk::ApplyDiffImageOperation::m_ImageStillValid
bool m_ImageStillValid
Definition: mitkApplyDiffImageOperation.h:49
mitk::ApplyDiffImageOperation::GetFactor
double GetFactor()
Definition: mitkApplyDiffImageOperation.h:79
mitk::ApplyDiffImageOperation::GetSliceIndex
unsigned int GetSliceIndex()
Definition: mitkApplyDiffImageOperation.h:75
mitk::Operation
Base class of all Operation-classes.
Definition: mitkOperation.h:29
MitkDataTypesExtExports.h
mitk::ApplyDiffImageOperation::m_TimeStep
unsigned int m_TimeStep
Definition: mitkApplyDiffImageOperation.h:47
mitk::ApplyDiffImageOperation::GetImage
Image * GetImage()
Definition: mitkApplyDiffImageOperation.h:80
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition: MitkDataTypesExtExports.h:15
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitkCompressedImageContainer.h
mitk::ApplyDiffImageOperation::SetFactor
void SetFactor(double factor)
Definition: mitkApplyDiffImageOperation.h:78
mitk::ApplyDiffImageOperation::m_CompressedImageContainer
CompressedImageContainer m_CompressedImageContainer
Definition: mitkApplyDiffImageOperation.h:53
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ApplyDiffImageOperation::m_SliceIndex
unsigned int m_SliceIndex
Definition: mitkApplyDiffImageOperation.h:45
mitk::ApplyDiffImageOperation::m_DeleteTag
unsigned long m_DeleteTag
Definition: mitkApplyDiffImageOperation.h:51
mitk::CompressedImageContainer
Definition: mitkCompressedImageContainer.h:24
mitk::OperationType
int OperationType
Definition: mitkOperation.h:23
mitk::ApplyDiffImageOperation
Operation, that holds information about some image difference.
Definition: mitkApplyDiffImageOperation.h:39
mitkOperation.h
mitk::ApplyDiffImageOperation::m_SliceDimension
unsigned int m_SliceDimension
Definition: mitkApplyDiffImageOperation.h:46
mitk::ApplyDiffImageOperation::m_Factor
double m_Factor
Definition: mitkApplyDiffImageOperation.h:48
mitk::ApplyDiffImageOperation::IsImageStillValid
bool IsImageStillValid()
Definition: mitkApplyDiffImageOperation.h:83
mitk::ApplyDiffImageOperation::m_Image
Image * m_Image
Definition: mitkApplyDiffImageOperation.h:44