Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPadImageFilter.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 MITKPADIMAGEFILTER_H_HEADER_INCLUDED
18 #define MITKPADIMAGEFILTER_H_HEADER_INCLUDED
19 
21 #include "mitkCommon.h"
22 #include "mitkImageTimeSelector.h"
23 #include "mitkImageToImageFilter.h"
24 
25 #include "itkImage.h"
26 
27 namespace mitk
28 {
38  {
39  public:
41 
42  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
43 
44 
45  itkSetMacro(PadConstant, int);
46 
48  itkSetMacro(BinaryFilter, bool);
49 
51  itkSetMacro(LowerThreshold, int);
52 
54  itkSetMacro(UpperThreshold, int);
55 
56  protected:
58 
59  virtual ~PadImageFilter();
60 
61  virtual void GenerateData() override;
62 
63  private:
64  bool m_BinaryFilter;
65  int m_PadConstant, m_LowerThreshold, m_UpperThreshold;
66  };
67 
68 } // namespace mitk
69 
70 #endif /* MITKPADIMAGEFILTER_H_HEADER_INCLUDED */
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKALGORITHMSEXT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
PadImageFilter class pads the first input image to the size of the second input image. Two Images have to be set. The first image is the image to pad. The second image defines the pad size. It is also possible to use an included binary filter.
Superclass of all classes having one or more Images as input and generating Images as output...