Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkImageMaskGenerator.h
Go to the documentation of this file.
1 #ifndef mitkBinaryMaskGenerator
2 #define mitkBinaryMaskGenerator
3 
4 #include <mitkImage.h>
6 #include <mitkMaskGenerator.h>
7 #include <itkObject.h>
8 #include <itkSmartPointer.h>
9 
10 namespace mitk
11 {
13 {
14 public:
20 
22  itkNewMacro(Self)
23 
24 
25  itkTypeMacro(BinaryImageMaskGenerator, MaskGenerator)
26 
27  mitk::Image::Pointer GetMask();
28 
29  void SetTimeStep(unsigned int timeStep);
30 
31  void SetImageMask(mitk::Image::Pointer maskImage);
32 
33 protected:
34  ImageMaskGenerator():Superclass(){
35  m_InternalMaskUpdateTime = 0;
36  m_InternalMask = mitk::Image::New();
37  }
38 
39 private:
40  bool IsUpdateRequired() const;
41  void UpdateInternalMask();
42 
43  mitk::Image::Pointer m_internalMaskImage;
44  unsigned long m_InternalMaskUpdateTime;
45 
46 };
47 
48 
49 }
50 
51 #endif
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
#define MITKIMAGESTATISTICS_EXPORT
itk::SmartPointer< const Self > ConstPointer
Image class for storing images.
Definition: mitkImage.h:76
static Pointer New()