Medical Imaging Interaction Toolkit  2022.04.99-b878213f
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 (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 MITKPADIMAGEFILTER_H_HEADER_INCLUDED
14 #define MITKPADIMAGEFILTER_H_HEADER_INCLUDED
15 
17 #include "mitkCommon.h"
18 #include "mitkImageTimeSelector.h"
19 #include "mitkImageToImageFilter.h"
20 
21 #include "itkImage.h"
22 
23 namespace mitk
24 {
34  {
35  public:
37 
38  itkFactorylessNewMacro(Self);
39 
40  itkCloneMacro(Self);
41 
43  itkSetMacro(PadConstant, int);
44 
46  itkSetMacro(BinaryFilter, bool);
47 
49  itkSetMacro(LowerThreshold, int);
50 
52  itkSetMacro(UpperThreshold, int);
53 
54  protected:
56 
57  ~PadImageFilter() override;
58 
59  void GenerateData() override;
60 
61  private:
62  bool m_BinaryFilter;
63  int m_PadConstant, m_LowerThreshold, m_UpperThreshold;
64  };
65 
66 } // namespace mitk
67 
68 #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:36
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...