Medical Imaging Interaction Toolkit  2022.04.99-b878213f
Medical Imaging Interaction Toolkit
mitkImageMaskGenerator.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 mitkBinaryMaskGenerator
14 #define mitkBinaryMaskGenerator
15 
16 #include <mitkImage.h>
18 #include <mitkMaskGenerator.h>
19 #include <itkObject.h>
20 #include <itkSmartPointer.h>
21 
22 namespace mitk
23 {
25 {
26 public:
32 
34  itkNewMacro(Self);
35  itkTypeMacro(BinaryImageMaskGenerator, MaskGenerator);
36 
37  mitk::Image::ConstPointer GetMask() override;
38 
39  void SetTimeStep(unsigned int timeStep) override;
40 
41  void SetImageMask(const mitk::Image* maskImage);
42 
43 protected:
44  ImageMaskGenerator():Superclass(){
45  m_InternalMaskUpdateTime = 0;
46  m_InternalMask = mitk::Image::New();
47  }
48 
49 private:
50  bool IsUpdateRequired() const;
51  void UpdateInternalMask();
52 
53  mitk::Image::ConstPointer m_InternalMaskImage;
54  mitk::Image::ConstPointer m_InternalMask;
55  unsigned long m_InternalMaskUpdateTime;
56 
57 };
58 
59 
60 }
61 
62 #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:69
static Pointer New()