ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkElasticBodySplineKernelTransform.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 __itkElasticBodySplineKernelTransform_h
19 #define __itkElasticBodySplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
39 template< class TScalarType = double, // Data type for scalars (float or
40  // double)
41  unsigned int NDimensions = 3 >
42 // Number of dimensions
44  public KernelTransform< TScalarType, NDimensions >
45 {
46 public:
49  typedef KernelTransform< TScalarType,
50  NDimensions > Superclass;
51 
54 
57 
59  itkNewMacro(Self);
60 
62  typedef typename Superclass::ScalarType ScalarType;
63 
65  typedef typename Superclass::ParametersType ParametersType;
66 
68  typedef typename Superclass::JacobianType JacobianType;
69 
71  itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension);
72 
76  itkSetMacro(Alpha, TScalarType);
77 
79  itkGetConstMacro(Alpha, TScalarType);
80 
81  typedef typename Superclass::InputPointType InputPointType;
82  typedef typename Superclass::OutputPointType OutputPointType;
83  typedef typename Superclass::InputVectorType InputVectorType;
84  typedef typename Superclass::OutputVectorType OutputVectorType;
85  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
86  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
87 protected:
90  void PrintSelf(std::ostream & os, Indent indent) const;
91 
92  typedef typename Superclass::GMatrixType GMatrixType;
104  virtual void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const;
105 
109  TScalarType m_Alpha;
110 private:
111  ElasticBodySplineKernelTransform(const Self &); //purposely not implemented
112  void operator=(const Self &); //purposely not implemented
113 };
114 } // namespace itk
116 
117 // Define instantiation macro for this template.
118 #define ITK_TEMPLATE_ElasticBodySplineKernelTransform(_, EXPORT, TypeX, TypeY) \
119  namespace itk \
120  { \
121  _( 2 ( class EXPORT ElasticBodySplineKernelTransform< ITK_TEMPLATE_2 TypeX > ) ) \
122  namespace Templates \
123  { \
124  typedef ElasticBodySplineKernelTransform< ITK_TEMPLATE_2 TypeX > \
125  ElasticBodySplineKernelTransform##TypeY; \
126  } \
127  }
128 
129 #if ITK_TEMPLATE_EXPLICIT
130 #include "Templates/itkElasticBodySplineKernelTransform+-.h"
131 #endif
132 
133 #if ITK_TEMPLATE_TXX
134 #include "itkElasticBodySplineKernelTransform.hxx"
135 #endif
136 
137 #endif // __itkElasticBodySplineKernelTransform_h
138