Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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 mitkApplyDiffImageIIncluded
14 #define mitkApplyDiffImageIIncluded
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
Operation, that holds information about some image difference.
#define MITKDATATYPESEXT_EXPORT
Base class of all Operation-classes.
Definition: mitkOperation.h:29
DataCollection - Class to facilitate loading/accessing structured data.
Image class for storing images.
Definition: mitkImage.h:69
int OperationType
Definition: mitkOperation.h:23
CompressedImageContainer m_CompressedImageContainer