ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
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#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 *);
95
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:
121};
122
123} // end namespace itk
124
125#ifndef ITK_MANUAL_INSTANTIATION
126# include "itkPadImageFilterBase.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
typename TInputImage::IndexType InputImageIndexType
typename TOutputImage::SizeType OutputImageSizeType
BoundaryConditionType * m_BoundaryCondition
typename TOutputImage::IndexType OutputImageIndexType
~PadImageFilterBase() override=default
typename TInputImage::SizeValueType SizeValueType
typename TOutputImage::RegionType OutputImageRegionType
SmartPointer< Self > Pointer
typename TInputImage::RegionType InputImageRegionType
ImageBoundaryCondition< TInputImage, TOutputImage > BoundaryConditionType
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
typename TInputImage::SizeType SizeType
void InternalSetBoundaryCondition(BoundaryConditionType *const boundaryCondition)
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void GenerateInputRequestedRegion() override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename TInputImage::PixelType InputImagePixelType
typename TOutputImage::PixelType OutputImagePixelType
typename TInputImage::SizeType InputImageSizeType
static constexpr unsigned int ImageDimension
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....