Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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 
53  CompressedImageContainer::Pointer zlibContainer;
54 
55  public:
63  Image *image,
64  Image *diffImage,
65  unsigned int timeStep = 0,
66  unsigned int sliceDimension = 2,
67  unsigned int sliceIndex = 0);
68  ~ApplyDiffImageOperation() override;
69 
70  // Unfortunately cannot use itkGet/SetMacros here, since Operation does not inherit itk::Object
71  unsigned int GetSliceIndex() { return m_SliceIndex; }
72  unsigned int GetSliceDimension() { return m_SliceDimension; }
73  unsigned int GetTimeStep() { return m_TimeStep; }
74  void SetFactor(double factor) { m_Factor = factor; }
75  double GetFactor() { return m_Factor; }
76  Image *GetImage() { return m_Image; }
77  Image::Pointer GetDiffImage();
78 
79  bool IsImageStillValid() { return m_ImageStillValid; }
80  };
81 
82 } // namespace mitk
83 
84 #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.
CompressedImageContainer::Pointer zlibContainer
Image class for storing images.
Definition: mitkImage.h:72
mitk::Image::Pointer image
int OperationType
Definition: mitkOperation.h:23