ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPadImageFilter.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 itkPadImageFilter_h
19#define itkPadImageFilter_h
20
22
24
25namespace itk
26{
47template <typename TInputImage, typename TOutputImage>
48class ITK_TEMPLATE_EXPORT PadImageFilter : public PadImageFilterBase<TInputImage, TOutputImage>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(PadImageFilter);
52
58
60 itkNewMacro(Self);
61
63 using OutputImageRegionType = typename TOutputImage::RegionType;
64 using InputImageRegionType = typename TInputImage::RegionType;
65
67 using OutputImagePixelType = typename TOutputImage::PixelType;
68 using InputImagePixelType = typename TInputImage::PixelType;
69
71 using OutputImageIndexType = typename TOutputImage::IndexType;
72 using InputImageIndexType = typename TInputImage::IndexType;
73 using OutputImageSizeType = typename TOutputImage::SizeType;
74 using InputImageSizeType = typename TInputImage::SizeType;
75 using SizeType = typename TInputImage::SizeType;
76 using SizeValueType = typename TInputImage::SizeValueType;
77
80
82 itkOverrideGetNameOfClassMacro(PadImageFilter);
83
85 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
86
89 itkSetMacro(PadLowerBound, SizeType);
90 itkSetMacro(PadUpperBound, SizeType);
91 itkGetConstReferenceMacro(PadLowerBound, SizeType);
92 itkGetConstReferenceMacro(PadUpperBound, SizeType);
93 itkSetVectorMacro(PadLowerBound, const SizeValueType, ImageDimension);
94 itkSetVectorMacro(PadUpperBound, const SizeValueType, ImageDimension);
96
97 void
99 {
100 this->SetPadLowerBound(bound);
101 this->SetPadUpperBound(bound);
102 }
103
104protected:
106 ~PadImageFilter() override = default;
107 void
108 PrintSelf(std::ostream & os, Indent indent) const override;
109
116 void
118
119private:
122};
123} // end namespace itk
124
125#ifndef ITK_MANUAL_INSTANTIATION
126# include "itkPadImageFilter.hxx"
127#endif
128
129#endif
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
Control indentation during Print() invocation.
Definition itkIndent.h:50
static constexpr unsigned int ImageDimension
void PrintSelf(std::ostream &os, Indent indent) const override
PadImageFilterBase< TInputImage, TOutputImage > Superclass
typename TInputImage::SizeType SizeType
typename TOutputImage::IndexType OutputImageIndexType
void SetPadBound(const InputImageSizeType &bound)
SmartPointer< Self > Pointer
typename TOutputImage::PixelType OutputImagePixelType
SmartPointer< const Self > ConstPointer
virtual void SetPadUpperBound(SizeType _arg)
typename TInputImage::SizeType InputImageSizeType
typename TInputImage::IndexType InputImageIndexType
void GenerateOutputInformation() override
typename TOutputImage::SizeType OutputImageSizeType
typename TInputImage::PixelType InputImagePixelType
typename TOutputImage::RegionType OutputImageRegionType
~PadImageFilter() override=default
virtual void SetPadLowerBound(SizeType _arg)
ImageBoundaryCondition< TInputImage, TOutputImage > BoundaryConditionType
typename TInputImage::SizeValueType SizeValueType
typename TInputImage::RegionType InputImageRegionType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....