ITK  5.2.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  * http://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 
81 
84 
86  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
87 
89  itkSetMacro(BoundaryCondition, BoundaryConditionPointerType);
90  itkGetConstMacro(BoundaryCondition, BoundaryConditionPointerType);
92 
93 protected:
95  ~PadImageFilterBase() override = default;
96  void
97  PrintSelf(std::ostream & os, Indent indent) const override;
98 
104  void
105  GenerateInputRequestedRegion() override;
106 
108  void
109  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
110 
111 
113  void
114  InternalSetBoundaryCondition(const BoundaryConditionPointerType boundaryCondition);
115 
116 private:
118 };
119 } // end namespace itk
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 # include "itkPadImageFilterBase.hxx"
123 #endif
124 
125 #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
itk::PadImageFilterBase::m_BoundaryCondition
BoundaryConditionPointerType m_BoundaryCondition
Definition: itkPadImageFilterBase.h:117
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:138
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