ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkThinPlateSplineKernelTransform.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 __itkThinPlateSplineKernelTransform_h
19 #define __itkThinPlateSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
33 template< typename TScalar, // Data type for scalars (float or double)
34  unsigned int NDimensions = 3 >
35 // Number of dimensions
37  public KernelTransform< TScalar, NDimensions >
38 {
39 public:
45 
47  itkNewMacro(Self);
48 
51 
53  typedef typename Superclass::ScalarType ScalarType;
54 
57 
60 
62  itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension);
63 
72 
73 protected:
76 
79 
88  virtual void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const;
89 
92  virtual void ComputeDeformationContribution(const InputPointType & inputPoint,
93  OutputPointType & result) const;
94 
95 private:
96  ThinPlateSplineKernelTransform(const Self &); //purposely not implemented
97  void operator=(const Self &); //purposely not implemented
98 };
99 } // namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 #include "itkThinPlateSplineKernelTransform.hxx"
103 #endif
104 
105 #endif // __itkThinPlateSplineKernelTransform_h
Light weight base class for most itk classes.
static const unsigned int SpaceDimension
Superclass::OutputVectorType OutputVectorType
Superclass::JacobianType JacobianType
Superclass::InputVectorType InputVectorType
Superclass::ParametersType ParametersType
vnl_matrix_fixed< TScalar, NDimensions, NDimensions > GMatrixType
virtual void ComputeDeformationContribution(const InputPointType &inputPoint, OutputPointType &result) const
PointSetType::PointsContainerIterator PointsIterator
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputPointType InputPointType
Superclass::ScalarType ScalarType
virtual void ComputeG(const InputVectorType &landmarkVector, GMatrixType &gmatrix) const
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputPointType OutputPointType
KernelTransform< TScalar, NDimensions > Superclass