ITK  6.0.0
Insight Toolkit
itkPadImageFilterBase.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 itkPadImageFilterBase_h
19#define itkPadImageFilterBase_h
20
22
24
25namespace itk
26{
47template <typename TInputImage, typename TOutputImage>
48class ITK_TEMPLATE_EXPORT PadImageFilterBase : public ImageToImageFilter<TInputImage, TOutputImage>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(PadImageFilterBase);
52
58
60 itkNewMacro(Self);
61
65
67 using OutputImagePixelType = typename TOutputImage::PixelType;
68 using InputImagePixelType = typename TInputImage::PixelType;
69
77
80#ifndef ITK_FUTURE_LEGACY_REMOVE
81 using BoundaryConditionPointerType [[deprecated("Please just use `BoundaryConditionType *` instead!")]] =
83#endif
84
86 itkOverrideGetNameOfClassMacro(PadImageFilterBase);
87
89 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
90
92 itkSetMacro(BoundaryCondition, BoundaryConditionType *);
93 itkGetConstMacro(BoundaryCondition, BoundaryConditionType *);
96protected:
98 ~PadImageFilterBase() override = default;
99 void
100 PrintSelf(std::ostream & os, Indent indent) const override;
101
107 void
109
111 void
112 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
113
114
116 void
118
119private:
120 BoundaryConditionType * m_BoundaryCondition{};
121};
122
123} // end namespace itk
124
125#ifndef ITK_MANUAL_INSTANTIATION
126# include "itkPadImageFilterBase.hxx"
127#endif
128
129#endif
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
Base class for filters that take an image as input and produce an image as output.
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.
typename TInputImage::IndexType InputImageIndexType
typename TOutputImage::SizeType OutputImageSizeType
typename TOutputImage::IndexType OutputImageIndexType
~PadImageFilterBase() override=default
typename TInputImage::SizeValueType SizeValueType
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage::SizeType SizeType
void InternalSetBoundaryCondition(BoundaryConditionType *const boundaryCondition)
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void GenerateInputRequestedRegion() override
typename TInputImage::SizeType InputImageSizeType
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