ITK  5.1.0
Insight Toolkit
itkPadImageFilterBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 {
46 template <typename TInputImage, typename TOutputImage>
47 class ITK_TEMPLATE_EXPORT PadImageFilterBase : public ImageToImageFilter<TInputImage, TOutputImage>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(PadImageFilterBase);
51 
57 
59  itkNewMacro(Self);
60 
64 
66  using OutputImagePixelType = typename TOutputImage::PixelType;
67  using InputImagePixelType = typename TInputImage::PixelType;
68 
74  using SizeType = typename TInputImage::SizeType;
76 
80 
83 
85  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
86 
88  itkSetMacro(BoundaryCondition, BoundaryConditionPointerType);
89  itkGetConstMacro(BoundaryCondition, BoundaryConditionPointerType);
91 
92 protected:
94  ~PadImageFilterBase() override = default;
95  void
96  PrintSelf(std::ostream & os, Indent indent) const override;
97 
103  void
104  GenerateInputRequestedRegion() override;
105 
107  void
108  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
109 
110 
112  void
113  InternalSetBoundaryCondition(const BoundaryConditionPointerType boundaryCondition);
114 
115 private:
117 };
118 } // end namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 # include "itkPadImageFilterBase.hxx"
122 #endif
123 
124 #endif
itk::PadImageFilterBase
Increase the image size by padding. Superclass for filters that fill in extra pixels.
Definition: itkPadImageFilterBase.h:47
itk::PadImageFilterBase::OutputImageIndexType
typename TOutputImage::IndexType OutputImageIndexType
Definition: itkPadImageFilterBase.h:70
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::PadImageFilterBase::InputImageIndexType
typename TInputImage::IndexType InputImageIndexType
Definition: itkPadImageFilterBase.h:71
itk::SmartPointer< Self >
itk::PadImageFilterBase::InputImageSizeType
typename TInputImage::SizeType InputImageSizeType
Definition: itkPadImageFilterBase.h:73
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:74
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::PadImageFilterBase::m_BoundaryCondition
BoundaryConditionPointerType m_BoundaryCondition
Definition: itkPadImageFilterBase.h:116
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: itkArray.h:26
itk::PadImageFilterBase::OutputImageSizeType
typename TOutputImage::SizeType OutputImageSizeType
Definition: itkPadImageFilterBase.h:72
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:135
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:75