Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKMASKIMAGEFILTER_H_HEADER_INCLUDED_C1F48A22
18 #define MITKMASKIMAGEFILTER_H_HEADER_INCLUDED_C1F48A22
19 
21 #include "mitkCommon.h"
22 #include "mitkImageTimeSelector.h"
23 #include "mitkImageToImageFilter.h"
24 
25 #include "itkImage.h"
26 
27 namespace mitk
28 {
29  //##Documentation
30  //## @brief
31  //## @ingroup Process
33  {
34  public:
36 
37  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
38 
39  void SetMask(const mitk::Image *mask);
40  const mitk::Image *GetMask() const;
41 
45  itkGetMacro(MinValue, mitk::ScalarType);
46  itkSetMacro(MinValue, mitk::ScalarType);
47 
51  itkGetMacro(MaxValue, mitk::ScalarType);
52  itkSetMacro(MaxValue, mitk::ScalarType);
53 
58  itkSetMacro(OutsideValue, mitk::ScalarType);
59 
64  itkGetMacro(OutsideValue, mitk::ScalarType);
65 
72  itkSetMacro(OverrideOutsideValue, bool);
79  itkGetMacro(OverrideOutsideValue, bool);
80  itkBooleanMacro(OverrideOutsideValue);
81 
82  protected:
84 
85  ~MaskImageFilter();
86 
87  virtual void GenerateInputRequestedRegion() override;
88 
89  virtual void GenerateOutputInformation() override;
90 
91  virtual void GenerateData() override;
92 
93  template <typename TPixel, unsigned int VImageDimension>
94  void InternalComputeMask(itk::Image<TPixel, VImageDimension> *itkImage);
95 
100 
101  //##Description
102  //## @brief Time when Header was last initialized
104 
109  };
110 
111 } // namespace mitk
112 
113 #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:44
Image class for storing images.
Definition: mitkImage.h:76
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