ITK  5.1.0
Insight Toolkit
itkBSplineInterpolationWeightFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkBSplineInterpolationWeightFunction_h
19 #define itkBSplineInterpolationWeightFunction_h
20 
21 #include "itkFunctionBase.h"
22 #include "itkContinuousIndex.h"
24 #include "itkArray.h"
25 #include "itkArray2D.h"
26 
27 namespace itk
28 {
46 template <typename TCoordRep = float, unsigned int VSpaceDimension = 2, unsigned int VSplineOrder = 3>
47 class ITK_TEMPLATE_EXPORT BSplineInterpolationWeightFunction
48  : public FunctionBase<ContinuousIndex<TCoordRep, VSpaceDimension>, Array<double>>
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_ASSIGN(BSplineInterpolationWeightFunction);
52 
56 
59 
61  itkNewMacro(Self);
62 
65 
67  static constexpr unsigned int SpaceDimension = VSpaceDimension;
68 
70  static constexpr unsigned int SplineOrder = VSplineOrder;
71 
74 
78 
81 
85  Evaluate(const ContinuousIndexType & index) const override;
86 
95  virtual void
96  Evaluate(const ContinuousIndexType & index, WeightsType & weights, IndexType & startIndex) const;
97 
99  itkGetConstMacro(SupportSize, SizeType);
100 
102  itkGetConstMacro(NumberOfWeights, unsigned int);
103 
104 protected:
106  ~BSplineInterpolationWeightFunction() override = default;
107  void
108  PrintSelf(std::ostream & os, Indent indent) const override;
109 
110 private:
112  unsigned int m_NumberOfWeights;
113 
116 
119 
122 
125 
128 };
129 } // end namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 # include "itkBSplineInterpolationWeightFunction.hxx"
133 #endif
134 
135 #endif
itk::BSplineInterpolationWeightFunction
Returns the weights over the support region used for B-spline interpolation/reconstruction.
Definition: itkBSplineInterpolationWeightFunction.h:47
itk::BSplineKernelFunction
BSpline kernel used for density estimation and nonparametric regression.
Definition: itkBSplineKernelFunction.h:43
itk::Index
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:66
itkContinuousIndex.h
itk::Size< VSpaceDimension >
itk::BSplineInterpolationWeightFunction::m_NumberOfWeights
unsigned int m_NumberOfWeights
Definition: itkBSplineInterpolationWeightFunction.h:112
itk::BSplineInterpolationWeightFunction::m_SupportSize
SizeType m_SupportSize
Definition: itkBSplineInterpolationWeightFunction.h:115
itk::BSplineInterpolationWeightFunction::m_Kernel
KernelType::Pointer m_Kernel
Definition: itkBSplineInterpolationWeightFunction.h:127
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itkFunctionBase.h
itk::BSplineInterpolationWeightFunction::m_OffsetToIndexTable
TableType m_OffsetToIndexTable
Definition: itkBSplineInterpolationWeightFunction.h:121
itkArray.h
itk::FunctionBase
Base class for all ITK function objects.
Definition: itkFunctionBase.h:44
itkBSplineKernelFunction.h
itkArray2D.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itk::ContinuousIndex
A templated class holding a point in n-Dimensional image space.
Definition: itkContinuousIndex.h:46
itk::Array< double >
itk::Array2D< unsigned int >