Medical Imaging Interaction Toolkit  2024.06.00
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
14 #define mitkMaskImageFilter_h
15 
17 #include "mitkCommon.h"
18 #include "mitkImageToImageFilter.h"
19 
20 #include "itkImage.h"
21 
22 namespace mitk
23 {
24  //##Documentation
25  //## @brief
26  //## @ingroup Process
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33 
34  itkCloneMacro(Self);
35 
36  void SetMask(const mitk::Image *mask);
37  const Image *GetMask() const;
38  Image* GetMask();
39 
44  itkSetMacro(OutsideValue, mitk::ScalarType);
45 
50  itkGetMacro(OutsideValue, mitk::ScalarType);
51 
58  itkSetMacro(OverrideOutsideValue, bool);
65  itkGetMacro(OverrideOutsideValue, bool);
66  itkBooleanMacro(OverrideOutsideValue);
67 
68  protected:
70 
71  ~MaskImageFilter() override;
72 
73  void GenerateInputRequestedRegion() override;
74 
75  void GenerateOutputInformation() override;
76 
77  void GenerateData() override;
78 
79  template <typename TPixel1, unsigned int VImageDimension1, typename TPixel2, unsigned int VImageDimension2>
80  void InternalComputeMask(itk::Image<TPixel1, VImageDimension1>* itkInput, itk::Image<TPixel2, VImageDimension2>* itkMask);
81 
82  //##Description
83  //## @brief Time when Header was last initialized
85 
89  };
90 
91 } // namespace mitk
92 
93 #endif
mitkImageToImageFilter.h
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
MitkAlgorithmsExtExports.h
mitk::MaskImageFilter::m_TimeOfHeaderInitialization
itk::TimeStamp m_TimeOfHeaderInitialization
Definition: mitkMaskImageFilter.h:84
MITKALGORITHMSEXT_EXPORT
#define MITKALGORITHMSEXT_EXPORT
Definition: MitkAlgorithmsExtExports.h:15
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::MaskImageFilter::m_OutsideValue
mitk::ScalarType m_OutsideValue
Definition: mitkMaskImageFilter.h:86
mitk::MaskImageFilter
Definition: mitkMaskImageFilter.h:27
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::MaskImageFilter::m_CurrentOutputTS
TimeStepType m_CurrentOutputTS
Definition: mitkMaskImageFilter.h:87
mitkCommon.h
mitk::MaskImageFilter::m_OverrideOutsideValue
bool m_OverrideOutsideValue
Definition: mitkMaskImageFilter.h:88
mitk::TimeStepType
std::size_t TimeStepType
Definition: mitkTimeGeometry.h:27
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