Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkApplyDiffImageIIncluded
18 #define mitkApplyDiffImageIIncluded
19 
22 #include "mitkOperation.h"
23 
24 namespace mitk
25 {
44  {
45  protected:
46  void OnImageDeleted();
47 
49  unsigned int m_SliceIndex;
50  unsigned int m_SliceDimension;
51  unsigned int m_TimeStep;
52  double m_Factor;
54 
55  unsigned long m_DeleteTag;
56 
58 
59  public:
67  Image *image,
68  Image *diffImage,
69  unsigned int timeStep = 0,
70  unsigned int sliceDimension = 2,
71  unsigned int sliceIndex = 0);
72  virtual ~ApplyDiffImageOperation();
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.
itk::SmartPointer< Self > Pointer
#define MITKDATATYPESEXT_EXPORT
Base class of all Operation-classes.
Definition: mitkOperation.h:33
DataCollection - Class to facilitate loading/accessing structured data.
CompressedImageContainer::Pointer zlibContainer
Image class for storing images.
Definition: mitkImage.h:76
int OperationType
Definition: mitkOperation.h:27