Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 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(ImageMaskGenerator, MaskGenerator);
36 
37  unsigned int GetNumberOfMasks() const override;
38 
39  itkSetConstObjectMacro(ImageMask, Image)
40 
41 protected:
43  m_InternalMaskUpdateTime = 0;
44  }
45 
46  Image::ConstPointer DoGetMask(unsigned int) override;
47 
48 private:
49  bool IsUpdateRequired() const;
50  void UpdateInternalMask();
51 
52  mitk::Image::ConstPointer m_ImageMask;
53  mitk::Image::ConstPointer m_InternalMask;
54  unsigned long m_InternalMaskUpdateTime;
55 
56 };
57 
58 
59 }
60 
61 #endif
mitkImage.h
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:42