ITK  6.0.0
Insight Toolkit
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
65
67 using OutputImagePixelType = typename TOutputImage::PixelType;
68 using InputImagePixelType = typename TInputImage::PixelType;
69
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);
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:
120 SizeType m_PadLowerBound{};
121 SizeType m_PadUpperBound{};
122};
123} // end namespace itk
124
125#ifndef ITK_MANUAL_INSTANTIATION
126# include "itkPadImageFilter.hxx"
127#endif
128
129#endif
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Increase the image size by padding. Superclass for filters that fill in extra pixels.
Increase the image size by padding. Superclass for filters that fill in extra pixels.
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage::SizeType SizeType
typename TOutputImage::IndexType OutputImageIndexType
void SetPadBound(const InputImageSizeType &bound)
typename TInputImage::SizeType InputImageSizeType
typename TInputImage::IndexType InputImageIndexType
void GenerateOutputInformation() override
typename TOutputImage::SizeType OutputImageSizeType
~PadImageFilter() override=default
typename TInputImage::SizeValueType SizeValueType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition: itkIntTypes.h:86