ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkElasticBodyReciprocalSplineKernelTransform.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 __itkElasticBodyReciprocalSplineKernelTransform_h
19 #define __itkElasticBodyReciprocalSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
37 template< class TScalarType = double, // Data type for scalars (float or
38  // double)
39  unsigned int NDimensions = 3 >
40 // Number of dimensions
42  public KernelTransform< TScalarType, NDimensions >
43 {
44 public:
47  typedef KernelTransform< TScalarType,
48  NDimensions > Superclass;
49 
52 
55 
57  itkNewMacro(Self);
58 
60  typedef typename Superclass::ScalarType ScalarType;
61 
63  typedef typename Superclass::ParametersType ParametersType;
64 
66  typedef typename Superclass::JacobianType JacobianType;
67 
69  itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension);
70 
74  itkSetMacro(Alpha, TScalarType);
75 
77  itkGetConstMacro(Alpha, TScalarType);
78 
79  typedef typename Superclass::InputPointType InputPointType;
80  typedef typename Superclass::OutputPointType OutputPointType;
81  typedef typename Superclass::InputVectorType InputVectorType;
82  typedef typename Superclass::OutputVectorType OutputVectorType;
83  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
84  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
85 protected:
88  void PrintSelf(std::ostream & os, Indent indent) const;
89 
90  typedef typename Superclass::GMatrixType GMatrixType;
101  virtual void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const;
102 
104  TScalarType m_Alpha;
105 private:
106  ElasticBodyReciprocalSplineKernelTransform(const Self &); //purposely not
107  // implemented
108  void operator=(const Self &); //purposely not
110 
111  // implemented
112 };
113 } // namespace itk
114 
115 // Define instantiation macro for this template.
116 #define ITK_TEMPLATE_ElasticBodyReciprocalSplineKernelTransform(_, EXPORT, TypeX, TypeY) \
117  namespace itk \
118  { \
119  _( 2 ( class EXPORT ElasticBodyReciprocalSplineKernelTransform< ITK_TEMPLATE_2 TypeX > ) ) \
120  namespace Templates \
121  { \
122  typedef ElasticBodyReciprocalSplineKernelTransform< ITK_TEMPLATE_2 TypeX > \
123  ElasticBodyReciprocalSplineKernelTransform##TypeY; \
124  } \
125  }
126 
127 #if ITK_TEMPLATE_EXPLICIT
128 #include "Templates/itkElasticBodyReciprocalSplineKernelTransform+-.h"
129 #endif
130 
131 #if ITK_TEMPLATE_TXX
132 #include "itkElasticBodyReciprocalSplineKernelTransform.hxx"
133 #endif
134 
135 #endif // __itkElasticBodyReciprocalSplineKernelTransform_h
136