Medical Imaging Interaction Toolkit  2024.06.00
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
mitkImageToImageFilter.h
mitkImageTimeSelector.h
itk::SmartPointer< Self >
MitkAlgorithmsExtExports.h
MITKALGORITHMSEXT_EXPORT
#define MITKALGORITHMSEXT_EXPORT
Definition: MitkAlgorithmsExtExports.h:15
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PadImageFilter
PadImageFilter class pads the first input image to the size of the second input image....
Definition: mitkPadImageFilter.h:33
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitkCommon.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25