ITK  5.4.0
Insight Toolkit
itkPadImageFilterBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * https://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkPadImageFilterBase_h
19 #define itkPadImageFilterBase_h
20 
21 #include "itkImageToImageFilter.h"
22 
24 
25 namespace itk
26 {
47 template <typename TInputImage, typename TOutputImage>
48 class ITK_TEMPLATE_EXPORT PadImageFilterBase : public ImageToImageFilter<TInputImage, TOutputImage>
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_MOVE(PadImageFilterBase);
52 
58 
60  itkNewMacro(Self);
61 
65 
67  using OutputImagePixelType = typename TOutputImage::PixelType;
68  using InputImagePixelType = typename TInputImage::PixelType;
69 
75  using SizeType = typename TInputImage::SizeType;
77 
80 #ifndef ITK_FUTURE_LEGACY_REMOVE
81  using BoundaryConditionPointerType [[deprecated("Please just use `BoundaryConditionType *` instead!")]] =
83 #endif
84 
86  itkOverrideGetNameOfClassMacro(PadImageFilterBase);
87 
89  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
90 
92  itkSetMacro(BoundaryCondition, BoundaryConditionType *);
93  itkGetConstMacro(BoundaryCondition, BoundaryConditionType *);
96 protected:
98  ~PadImageFilterBase() override = default;
99  void
100  PrintSelf(std::ostream & os, Indent indent) const override;
101 
107  void
108  GenerateInputRequestedRegion() override;
109 
111  void
112  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
113 
114 
116  void
117  InternalSetBoundaryCondition(BoundaryConditionType * const boundaryCondition);
118 
119 private:
120  BoundaryConditionType * m_BoundaryCondition{};
121 };
122 
123 } // end namespace itk
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 # include "itkPadImageFilterBase.hxx"
127 #endif
128 
129 #endif
itk::PadImageFilterBase
Increase the image size by padding. Superclass for filters that fill in extra pixels.
Definition: itkPadImageFilterBase.h:48
itk::PadImageFilterBase::OutputImageIndexType
typename TOutputImage::IndexType OutputImageIndexType
Definition: itkPadImageFilterBase.h:71
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::PadImageFilterBase::InputImageIndexType
typename TInputImage::IndexType InputImageIndexType
Definition: itkPadImageFilterBase.h:72
itk::SmartPointer< Self >
itk::PadImageFilterBase::InputImageSizeType
typename TInputImage::SizeType InputImageSizeType
Definition: itkPadImageFilterBase.h:74
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageBoundaryCondition
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
Definition: itkImageBoundaryCondition.h:52
itkImageBoundaryCondition.h
itk::ImageToImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToImageFilter.h:133
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::PadImageFilterBase::SizeType
typename TInputImage::SizeType SizeType
Definition: itkPadImageFilterBase.h:75
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itkImageToImageFilter.h
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::PadImageFilterBase::OutputImageSizeType
typename TOutputImage::SizeType OutputImageSizeType
Definition: itkPadImageFilterBase.h:73
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::ImageSource::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkImageSource.h:93
itk::ImageToImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToImageFilter.h:132
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
itk::PadImageFilterBase::SizeValueType
typename TInputImage::SizeValueType SizeValueType
Definition: itkPadImageFilterBase.h:76