ITK  5.2.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  * 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 itkVectorLinearInterpolateImageFunction_h
19 #define itkVectorLinearInterpolateImageFunction_h
20 
22 
23 namespace itk
24 {
42 template <typename TInputImage, typename TCoordRep = double>
43 class ITK_TEMPLATE_EXPORT VectorLinearInterpolateImageFunction
44  : public VectorInterpolateImageFunction<TInputImage, TCoordRep>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(VectorLinearInterpolateImageFunction);
48 
54 
56  itkNewMacro(Self);
57 
60 
62  using InputImageType = typename Superclass::InputImageType;
63  using PixelType = typename Superclass::PixelType;
64  using ValueType = typename Superclass::ValueType;
65  using RealType = typename Superclass::RealType;
66 
68  static constexpr unsigned int Dimension = Superclass::Dimension;
69 
71  static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
72 
74  using IndexType = typename Superclass::IndexType;
75 
77  using ContinuousIndexType = typename Superclass::ContinuousIndexType;
78  using InternalComputationType = typename ContinuousIndexType::ValueType;
79 
81  using OutputType = typename Superclass::OutputType;
82 
92  EvaluateAtContinuousIndex(const ContinuousIndexType & index) const override;
93 
94 protected:
96  ~VectorLinearInterpolateImageFunction() override = default;
97  void
98  PrintSelf(std::ostream & os, Indent indent) const override;
99 
100 private:
102  static const unsigned long m_Neighbors;
103 };
104 } // end namespace itk
105 
106 #ifndef ITK_MANUAL_INSTANTIATION
107 # include "itkVectorLinearInterpolateImageFunction.hxx"
108 #endif
109 
110 #endif
itk::VectorInterpolateImageFunction::IndexType
typename Superclass::IndexType IndexType
Definition: itkVectorInterpolateImageFunction.h:80
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::VectorInterpolateImageFunction
Base class for all vector image interpolators.
Definition: itkVectorInterpolateImageFunction.h:47
itk::VectorLinearInterpolateImageFunction::InternalComputationType
typename ContinuousIndexType::ValueType InternalComputationType
Definition: itkVectorLinearInterpolateImageFunction.h:78
itk::VectorInterpolateImageFunction::PixelType
typename InputImageType::PixelType PixelType
Definition: itkVectorInterpolateImageFunction.h:72
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::VectorInterpolateImageFunction::ContinuousIndexType
typename Superclass::ContinuousIndexType ContinuousIndexType
Definition: itkVectorInterpolateImageFunction.h:83
itk::VectorInterpolateImageFunction::InputImageType
typename Superclass::InputImageType InputImageType
Definition: itkVectorInterpolateImageFunction.h:71
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::VectorInterpolateImageFunction::OutputType
typename Superclass::OutputType OutputType
Definition: itkVectorInterpolateImageFunction.h:86
itkVectorInterpolateImageFunction.h
itk::VectorInterpolateImageFunction::RealType
typename NumericTraits< ValueType >::RealType RealType
Definition: itkVectorInterpolateImageFunction.h:74
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::VectorInterpolateImageFunction::ValueType
typename PixelType::ValueType ValueType
Definition: itkVectorInterpolateImageFunction.h:73
itk::VectorLinearInterpolateImageFunction::m_Neighbors
static const unsigned long m_Neighbors
Definition: itkVectorLinearInterpolateImageFunction.h:102
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