Medical Imaging Interaction Toolkit  2021.02.99-b9f34b51
Medical Imaging Interaction Toolkit
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_HEADER_INCLUDED_C1F48A22
14 #define MITKMASKIMAGEFILTER_H_HEADER_INCLUDED_C1F48A22
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 /* MITKMASKIMAGEFILTER_H_HEADER_INCLUDED_C1F48A22 */
double ScalarType
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
mitk::ScalarType m_MaxValue
#define MITKALGORITHMSEXT_EXPORT
mitk::Image::Pointer m_Mask
mitk::ScalarType m_MinValue
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Image class for storing images.
Definition: mitkImage.h:73
Superclass of all classes having one or more Images as input and generating Images as output...
itk::TimeStamp m_TimeOfHeaderInitialization
mitk::ImageTimeSelector::Pointer m_InputTimeSelector
mitk::ScalarType m_OutsideValue
mitk::ImageTimeSelector::Pointer m_MaskTimeSelector
mitk::ImageTimeSelector::Pointer m_OutputTimeSelector