ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkThinPlateR2LogRSplineKernelTransform.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 itkThinPlateR2LogRSplineKernelTransform_h
19 #define itkThinPlateR2LogRSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
35 template<typename TParametersValueType,
36  unsigned int NDimensions = 3>
37 // Number of dimensions
38 class ITK_TEMPLATE_EXPORT ThinPlateR2LogRSplineKernelTransform:
39  public KernelTransform<TParametersValueType, NDimensions>
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
53 
55  typedef typename Superclass::ScalarType ScalarType;
56 
58  typedef typename Superclass::ParametersType ParametersType;
59  typedef typename Superclass::FixedParametersType FixedParametersType;
60 
62  typedef typename Superclass::JacobianType JacobianType;
63 
65  itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension);
66 
67  typedef typename Superclass::InputPointType InputPointType;
68  typedef typename Superclass::OutputPointType OutputPointType;
69  typedef typename Superclass::InputVectorType InputVectorType;
70  typedef typename Superclass::OutputVectorType OutputVectorType;
71  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
72  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
73  typedef typename Superclass::PointsIterator PointsIterator;
74 
75 protected:
77  virtual ~ThinPlateR2LogRSplineKernelTransform() ITK_OVERRIDE {}
78 
79  typedef typename Superclass::GMatrixType GMatrixType;
88  virtual void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const ITK_OVERRIDE;
89 
92  virtual void ComputeDeformationContribution(const InputPointType & inputPoint,
93  OutputPointType & result) const ITK_OVERRIDE;
94 
95 private:
96  ITK_DISALLOW_COPY_AND_ASSIGN(ThinPlateR2LogRSplineKernelTransform);
97 };
98 } // namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "itkThinPlateR2LogRSplineKernelTransform.hxx"
102 #endif
103 
104 #endif // itkThinPlateR2LogRSplineKernelTransform_h
Light weight base class for most itk classes.
Superclass::InputVectorType InputVectorType
Superclass::InputPointType InputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
KernelTransform< TParametersValueType, NDimensions > Superclass
vnl_matrix_fixed< TParametersValueType, NDimensions, NDimensions > GMatrixType
Superclass::OutputPointType OutputPointType