ITK  4.13.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:
56 
58  itkNewMacro(Self);
59 
61  typedef typename TOutputImage::RegionType OutputImageRegionType;
62  typedef typename TInputImage::RegionType InputImageRegionType;
63 
65  typedef typename TOutputImage::PixelType OutputImagePixelType;
66  typedef typename TInputImage::PixelType InputImagePixelType;
67 
73  typedef typename TInputImage::SizeType SizeType;
75 
79 
82 
84  itkStaticConstMacro(ImageDimension, unsigned int,
85  TInputImage::ImageDimension);
86 
88  itkSetMacro(BoundaryCondition, BoundaryConditionPointerType);
89  itkGetConstMacro(BoundaryCondition, BoundaryConditionPointerType);
91 
92 protected:
94  ~PadImageFilterBase() ITK_OVERRIDE {}
95  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
96 
102  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
103 
105  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
106  ThreadIdType threadId) ITK_OVERRIDE;
107 
109  void InternalSetBoundaryCondition( const BoundaryConditionPointerType boundaryCondition );
110 
111 private:
112  ITK_DISALLOW_COPY_AND_ASSIGN(PadImageFilterBase);
113 
114  BoundaryConditionPointerType m_BoundaryCondition;
115 };
116 } // end namespace itk
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkPadImageFilterBase.hxx"
120 #endif
121 
122 #endif
TInputImage::RegionType InputImageRegionType
TInputImage::SizeType InputImageSizeType
TOutputImage::IndexType OutputImageIndexType
Base class for all process objects that output image data.
unsigned long SizeValueType
Definition: itkIntTypes.h:143
TInputImage::PixelType InputImagePixelType
TOutputImage::PixelType OutputImagePixelType
Increase the image size by padding. Superclass for filters that fill in extra pixels.
TInputImage::IndexType InputImageIndexType
TOutputImage::RegionType OutputImageRegionType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
TInputImage::SizeValueType SizeValueType
TInputImage::SizeType SizeType
SmartPointer< Self > Pointer
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
TOutputImage::SizeType OutputImageSizeType
ImageBoundaryCondition< TInputImage, TOutputImage > BoundaryConditionType
Base class for filters that take an image as input and produce an image as output.
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
BoundaryConditionType * BoundaryConditionPointerType