Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 mitkImageMaskGenerator_h
14 #define mitkImageMaskGenerator_h
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:
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
mitkImage.h
mitk::Image::New
static Pointer New()
mitk::ImageMaskGenerator
Definition: mitkImageMaskGenerator.h:24
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitk::ImageMaskGenerator::Superclass
MaskGenerator Superclass
Definition: mitkImageMaskGenerator.h:29
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkMaskGenerator.h
MITKIMAGESTATISTICS_EXPORT
#define MITKIMAGESTATISTICS_EXPORT
Definition: MitkImageStatisticsExports.h:15
mitk::ImageMaskGenerator::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkImageMaskGenerator.h:30
mitk::ImageMaskGenerator::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: mitkImageMaskGenerator.h:31
mitk::ImageMaskGenerator::Self
ImageMaskGenerator Self
Definition: mitkImageMaskGenerator.h:28
MitkImageStatisticsExports.h
mitk::MaskGenerator
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
Definition: mitkMaskGenerator.h:30
mitk::ImageMaskGenerator::ImageMaskGenerator
ImageMaskGenerator()
Definition: mitkImageMaskGenerator.h:44