Medical Imaging Interaction Toolkit  2025.12.02
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
14 #define mitkPadImageFilter_h
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  template <typename SourceImageType>
63  void GenerateDataInternal(SourceImageType* sourceItkImage, mitk::Image::Pointer outputImage);
64 
65  bool m_BinaryFilter;
66  int m_PadConstant, m_LowerThreshold, m_UpperThreshold;
67  };
68 
69 } // namespace mitk
70 
71 #endif
#define MITKALGORITHMSEXT_EXPORT
Superclass of all classes generating Images (instances of class Image) as output.
Superclass of all classes having one or more Images as input and generating Images as output.
PadImageFilter class pads the first input image to the size of the second input image....
void GenerateData() override
mitkClassMacro(PadImageFilter, ImageToImageFilter)
~PadImageFilter() override
Find image slices visible on a given plane.