ITK  5.0.0
Insight Segmentation and Registration 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:
48  public ImageToImageFilter< TInputImage, TOutputImage >
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_ASSIGN(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 PrintSelf(std::ostream & os, Indent indent) const override;
97 
103  void GenerateInputRequestedRegion() override;
104 
106  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
107 
108 
110  void InternalSetBoundaryCondition( const BoundaryConditionPointerType boundaryCondition );
111 
112 private:
114 };
115 } // end namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkPadImageFilterBase.hxx"
119 #endif
120 
121 #endif
typename TInputImage::SizeType InputImageSizeType
BoundaryConditionPointerType m_BoundaryCondition
typename TOutputImage::SizeType OutputImageSizeType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename TOutputImage::IndexType OutputImageIndexType
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Increase the image size by padding. Superclass for filters that fill in extra pixels.
typename TInputImage::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
typename TInputImage::IndexType InputImageIndexType
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename TInputImage::SizeValueType SizeValueType