ITK  6.0.0
Insight Toolkit
itkVectorLinearInterpolateImageFunction.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 itkVectorLinearInterpolateImageFunction_h
19 #define itkVectorLinearInterpolateImageFunction_h
20 
22 
23 namespace itk
24 {
42 template <typename TInputImage, typename TCoordinate = double>
43 class ITK_TEMPLATE_EXPORT VectorLinearInterpolateImageFunction
44  : public VectorInterpolateImageFunction<TInputImage, TCoordinate>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(VectorLinearInterpolateImageFunction);
48 
54 
56  itkNewMacro(Self);
57 
59  itkOverrideGetNameOfClassMacro(VectorLinearInterpolateImageFunction);
60 
62  using typename Superclass::InputImageType;
63  using typename Superclass::PixelType;
64  using typename Superclass::ValueType;
65  using typename Superclass::RealType;
66 
68  static constexpr unsigned int Dimension = Superclass::Dimension;
69 
71  static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
72 
74  using typename Superclass::IndexType;
75 
77  using typename Superclass::ContinuousIndexType;
79 
81  using typename Superclass::OutputType;
82 
92  EvaluateAtContinuousIndex(const ContinuousIndexType & index) const override;
93 
94 protected:
96  ~VectorLinearInterpolateImageFunction() override = default;
97 
98 private:
100  static const unsigned long m_Neighbors;
101 };
102 } // end namespace itk
103 
104 #ifndef ITK_MANUAL_INSTANTIATION
105 # include "itkVectorLinearInterpolateImageFunction.hxx"
106 #endif
107 
108 #endif
itk::SmartPointer< Self >
itk::VectorInterpolateImageFunction
Base class for all vector image interpolators.
Definition: itkVectorInterpolateImageFunction.h:47
itk::FunctionBase< Point< TCoordinate, TInputImage::ImageDimension >, NumericTraits< TInputImage::PixelType >::RealType >::OutputType
NumericTraits< TInputImage::PixelType >::RealType OutputType
Definition: itkFunctionBase.h:62
itk::VectorLinearInterpolateImageFunction::m_Neighbors
static const unsigned long m_Neighbors
Definition: itkVectorLinearInterpolateImageFunction.h:100
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::ContinuousIndex< TCoordinate, Self::ImageDimension >::ValueType
TCoordinate ValueType
Definition: itkContinuousIndex.h:58
itkVectorInterpolateImageFunction.h
itk::VectorLinearInterpolateImageFunction::InternalComputationType
typename ContinuousIndexType::ValueType InternalComputationType
Definition: itkVectorLinearInterpolateImageFunction.h:78
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::ContinuousIndex< TCoordinate, Self::ImageDimension >
itk::GTest::TypedefsAndConstructors::Dimension2::Dimension
constexpr unsigned int Dimension
Definition: itkGTestTypedefsAndConstructors.h:44
itk::VectorLinearInterpolateImageFunction
Linearly interpolate a vector image at specified positions.
Definition: itkVectorLinearInterpolateImageFunction.h:43