go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxNearestNeighborInterpolator.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 elxNearestNeighborInterpolator_h
19#define elxNearestNeighborInterpolator_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
22#include "itkNearestNeighborInterpolateImageFunction.h"
23
24namespace elastix
25{
26
41template <class TElastix>
42class ITK_TEMPLATE_EXPORT NearestNeighborInterpolator
43 : public itk::NearestNeighborInterpolateImageFunction<typename InterpolatorBase<TElastix>::InputImageType,
44 typename InterpolatorBase<TElastix>::CoordRepType>
45 , public InterpolatorBase<TElastix>
46{
47public:
49
52 using Superclass1 = itk::NearestNeighborInterpolateImageFunction<typename InterpolatorBase<TElastix>::InputImageType,
55 using Pointer = itk::SmartPointer<Self>;
56 using ConstPointer = itk::SmartPointer<const Self>;
57
59 itkNewMacro(Self);
60
62 itkTypeMacro(NearestNeighborInterpolator, itk::NearestNeighborInterpolateImageFunction);
63
68 elxClassNameMacro("NearestNeighborInterpolator");
69
71 itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension);
72
74 using typename Superclass1::OutputType;
75 using typename Superclass1::InputImageType;
76 using typename Superclass1::IndexType;
77 using typename Superclass1::ContinuousIndexType;
78 using typename Superclass1::PointType;
79
81 using typename Superclass2::ElastixType;
82 using typename Superclass2::RegistrationType;
84
85protected:
89 ~NearestNeighborInterpolator() override = default;
90
91private:
93};
94
95} // end namespace elastix
96
97#ifndef ITK_MANUAL_INSTANTIATION
98# include "elxNearestNeighborInterpolator.hxx"
99#endif
100
101#endif // end #ifndef elxNearestNeighborInterpolator_h
This class is the elastix base class for all Interpolators.
itk::InterpolateImageFunction< InputImageType, CoordRepType > ITKBaseType
typename ElastixType::RegistrationBaseType RegistrationType
An interpolator based on the itkNearestNeighborInterpolateImageFunction.
itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension)
ITK_DISALLOW_COPY_AND_MOVE(NearestNeighborInterpolator)
typename Superclass2::ITKBaseType ITKBaseType
~NearestNeighborInterpolator() override=default
elxClassNameMacro("NearestNeighborInterpolator")
itk::NearestNeighborInterpolateImageFunction< typename InterpolatorBase< TElastix >::InputImageType, typename InterpolatorBase< TElastix >::CoordRepType > Superclass1


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo