Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
mitkMRNormTwoRegionBasedFilter.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 MITKMRNORMTWOREGIONBASEDFILTER_H
14 #define MITKMRNORMTWOREGIONBASEDFILTER_H
15 
16 #include "mitkCommon.h"
18 #include "mitkImageToImageFilter.h"
19 #include "mitkImageTimeSelector.h"
20 
21 #include "itkImage.h"
22 
23 namespace mitk {
24  //##Documentation
25  //## @brief
26  //## @ingroup Process
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34 
35  void SetMask1( const mitk::Image* mask );
36  void SetMask2( const mitk::Image* mask );
37 
38  const mitk::Image* GetMask1() const;
39  const mitk::Image* GetMask2() const;
40 
42  {
45  MEDIAN
46  };
47 
48  itkGetConstMacro(Area1, NormalizationBase);
49  itkGetConstMacro(Area2, NormalizationBase);
50  itkSetMacro(Area1, NormalizationBase);
51  itkSetMacro(Area2, NormalizationBase);
52 
53  protected:
55 
56  ~MRNormTwoRegionsBasedFilter() override;
57 
58  void GenerateInputRequestedRegion() override;
59 
60  void GenerateOutputInformation() override;
61 
62  void GenerateData() override;
63 
64  template < typename TPixel, unsigned int VImageDimension >
65  void InternalComputeMask(itk::Image<TPixel, VImageDimension>* itkImage);
66 
69  };
70 } // namespace mitk
71 
72 #endif /* MITKMRNORMTWOREGIONBASEDFILTER_H */
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Image class for storing images.
Definition: mitkImage.h:72
Superclass of all classes having one or more Images as input and generating Images as output...
#define MITKCLMRUTILITIES_EXPORT
mitk::Image::Pointer mask