ITK  4.2.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< class TScalarType, // Data type for scalars (float or double)
36  unsigned int NDimensions = 3 >
37 // Number of dimensions
39  public KernelTransform< TScalarType, NDimensions >
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
53 
55  typedef typename Superclass::ScalarType ScalarType;
56 
58  typedef typename Superclass::ParametersType ParametersType;
59 
61  typedef typename Superclass::JacobianType JacobianType;
62 
64  itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension);
65 
66  typedef typename Superclass::InputPointType InputPointType;
67  typedef typename Superclass::OutputPointType OutputPointType;
68  typedef typename Superclass::InputVectorType InputVectorType;
69  typedef typename Superclass::OutputVectorType OutputVectorType;
70  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
71  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
72  typedef typename Superclass::PointsIterator PointsIterator;
73 protected:
76 
77  typedef typename Superclass::GMatrixType GMatrixType;
86  virtual void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const;
87 
90  virtual void ComputeDeformationContribution(const InputPointType & inputPoint,
91  OutputPointType & result) const;
92 
93 private:
94  ThinPlateR2LogRSplineKernelTransform(const Self &); //purposely not
95  // implemented
96  void operator=(const Self &); //purposely not
97  // implemented
98 };
99 } // namespace itk
100 
101 // Define instantiation macro for this template.
102 #define ITK_TEMPLATE_ThinPlateR2LogRSplineKernelTransform(_, EXPORT, TypeX, TypeY) \
103  namespace itk \
104  { \
105  _( 2 ( class EXPORT ThinPlateR2LogRSplineKernelTransform< ITK_TEMPLATE_2 TypeX > ) ) \
106  namespace Templates \
107  { \
108  typedef ThinPlateR2LogRSplineKernelTransform< ITK_TEMPLATE_2 TypeX > \
109  ThinPlateR2LogRSplineKernelTransform##TypeY; \
110  } \
111  }
112 
113 #if ITK_TEMPLATE_EXPLICIT
114 #include "Templates/itkThinPlateR2LogRSplineKernelTransform+-.h"
115 #endif
116 
117 #if ITK_TEMPLATE_TXX
118 #include "itkThinPlateR2LogRSplineKernelTransform.hxx"
119 #endif
120 
121 #endif // __itkThinPlateR2LogRSplineKernelTransform_h
122