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
mitkMaskImageFilter.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 mitkMaskImageFilter_h
14 #define mitkMaskImageFilter_h
15 
17 #include "mitkCommon.h"
18 #include "mitkImageTimeSelector.h"
19 #include "mitkImageToImageFilter.h"
20 
21 #include "itkImage.h"
22 
23 namespace mitk
24 {
25  //##Documentation
26  //## @brief
27  //## @ingroup Process
29  {
30  public:
32 
33  itkFactorylessNewMacro(Self);
34 
35  itkCloneMacro(Self);
36 
37  void SetMask(const mitk::Image *mask);
38  const mitk::Image *GetMask() const;
39 
43  itkGetMacro(MinValue, mitk::ScalarType);
44  itkSetMacro(MinValue, mitk::ScalarType);
45 
49  itkGetMacro(MaxValue, mitk::ScalarType);
50  itkSetMacro(MaxValue, mitk::ScalarType);
51 
56  itkSetMacro(OutsideValue, mitk::ScalarType);
57 
62  itkGetMacro(OutsideValue, mitk::ScalarType);
63 
70  itkSetMacro(OverrideOutsideValue, bool);
77  itkGetMacro(OverrideOutsideValue, bool);
78  itkBooleanMacro(OverrideOutsideValue);
79 
80  protected:
82 
83  ~MaskImageFilter() override;
84 
85  void GenerateInputRequestedRegion() override;
86 
87  void GenerateOutputInformation() override;
88 
89  void GenerateData() override;
90 
91  template <typename TPixel, unsigned int VImageDimension>
92  void InternalComputeMask(itk::Image<TPixel, VImageDimension> *itkImage);
93 
98 
99  //##Description
100  //## @brief Time when Header was last initialized
102 
107  };
108 
109 } // namespace mitk
110 
111 #endif
mitkImageToImageFilter.h
mitk::MaskImageFilter::m_InputTimeSelector
mitk::ImageTimeSelector::Pointer m_InputTimeSelector
Definition: mitkMaskImageFilter.h:95
mitk::MaskImageFilter::m_Mask
mitk::Image::Pointer m_Mask
Definition: mitkMaskImageFilter.h:94
mitkImageTimeSelector.h
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
MitkAlgorithmsExtExports.h
mitk::MaskImageFilter::m_TimeOfHeaderInitialization
itk::TimeStamp m_TimeOfHeaderInitialization
Definition: mitkMaskImageFilter.h:101
MITKALGORITHMSEXT_EXPORT
#define MITKALGORITHMSEXT_EXPORT
Definition: MitkAlgorithmsExtExports.h:15
mitk::MaskImageFilter::m_MaxValue
mitk::ScalarType m_MaxValue
Definition: mitkMaskImageFilter.h:105
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::MaskImageFilter::m_OutsideValue
mitk::ScalarType m_OutsideValue
Definition: mitkMaskImageFilter.h:103
mitk::MaskImageFilter
Definition: mitkMaskImageFilter.h:28
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::MaskImageFilter::m_MaskTimeSelector
mitk::ImageTimeSelector::Pointer m_MaskTimeSelector
Definition: mitkMaskImageFilter.h:96
mitkCommon.h
mitk::MaskImageFilter::m_OverrideOutsideValue
bool m_OverrideOutsideValue
Definition: mitkMaskImageFilter.h:106
mitk::MaskImageFilter::m_MinValue
mitk::ScalarType m_MinValue
Definition: mitkMaskImageFilter.h:104
mitk::MaskImageFilter::m_OutputTimeSelector
mitk::ImageTimeSelector::Pointer m_OutputTimeSelector
Definition: mitkMaskImageFilter.h:97
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20