ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkVolumeSplineKernelTransform.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 __itkVolumeSplineKernelTransform_h
19 #define __itkVolumeSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
33 template< class TScalarType, // Data type for scalars (float or
34  // double)
35  unsigned int NDimensions = 3 >
36 // Number of dimensions
37 class ITK_EXPORT VolumeSplineKernelTransform:
38  public KernelTransform< TScalarType, NDimensions >
39 {
40 public:
46 
48  itkNewMacro(Self);
49 
52 
54  typedef typename Superclass::ScalarType ScalarType;
55 
57  typedef typename Superclass::ParametersType ParametersType;
58 
60  typedef typename Superclass::JacobianType JacobianType;
61 
63  itkStaticConstMacro(SpaceDimension, unsigned int,
64  Superclass::SpaceDimension);
65 
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:
78 
80  typedef typename Superclass::GMatrixType GMatrixType;
81 
90  virtual void ComputeG(const InputVectorType & landmarkVector,
91  GMatrixType & gmatrix) const;
92 
95  virtual void ComputeDeformationContribution(
96  const InputPointType & inputPoint,
97  OutputPointType & result) const;
98 
99 private:
100  VolumeSplineKernelTransform(const Self &); //purposely not implemented
101  void operator=(const Self &); //purposely not implemented
102 };
103 } // namespace itk
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkVolumeSplineKernelTransform.hxx"
107 #endif
108 
109 #endif // __itkVolumeSplineKernelTransform_h
110