go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkElasticBodySplineKernelTransform2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkElasticBodySplineKernelTransform2.h,v $
5  Language: C++
6  Date: $Date: 2003/09/10 14:29:06 $
7  Version: $Revision: 1.29 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkElasticBodySplineKernelTransform2_h
18 #define __itkElasticBodySplineKernelTransform2_h
19 
20 #include "itkKernelTransform2.h"
21 
22 namespace itk
23 {
24 
37 template< class TScalarType = double, // Data type for scalars (float or double)
38 unsigned int NDimensions = 3 >
39 // Number of dimensions
41  public KernelTransform2< TScalarType, NDimensions >
42 {
43 public:
44 
47  typedef KernelTransform2< TScalarType,
48  NDimensions > Superclass;
49 
50  typedef SmartPointer< Self > Pointer;
51  typedef SmartPointer< const Self > ConstPointer;
52 
55 
57  itkNewMacro( Self );
58 
60  typedef typename Superclass::ScalarType ScalarType;
61 
64 
67 
69  itkStaticConstMacro( SpaceDimension, unsigned int, Superclass::SpaceDimension );
70 
74  //itkSetMacro( Alpha, TScalarType ); Cant use the macro because the matrices must be recomputed
75  virtual void SetAlpha( TScalarType Alpha )
76  {
77  this->m_Alpha = Alpha;
78  this->m_LMatrixComputed = false;
79  this->m_LInverseComputed = false;
80  this->m_WMatrixComputed = false;
81  }
82 
83 
85  itkGetConstMacro( Alpha, TScalarType );
86 
88  virtual void SetPoissonRatio( const TScalarType Nu )
89  {
90  if( Nu > -1.0 && Nu < 0.5 )
91  {
92  this->SetAlpha( 12.0 * ( 1.0 - Nu ) - 1.0 );
93  }
94  }
95 
96 
97  virtual const TScalarType GetPoissonRatio( void ) const
98  {
99  return 1.0 - ( this->m_Alpha + 1.0 ) / 12.0;
100  }
101 
102 
111 
112 protected:
113 
116  void PrintSelf( std::ostream & os, Indent indent ) const;
117 
121 
130  void ComputeG( const InputVectorType & x, GMatrixType & GMatrix ) const;
131 
135  TScalarType m_Alpha;
136 
137 private:
138 
139  ElasticBodySplineKernelTransform2( const Self & ); // purposely not implemented
140  void operator=( const Self & ); // purposely not implemented
141 
142 };
143 
144 } // namespace itk
145 
146 #ifndef ITK_MANUAL_INSTANTIATION
147 #include "itkElasticBodySplineKernelTransform2.hxx"
148 #endif
149 
150 #endif // __itkElasticBodySplineKernelTransform2_h
Superclass::OutputPointType OutputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputCovariantVectorType InputCovariantVectorType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension)
Superclass::InputVectorType InputVectorType
vnl_matrix_fixed< TScalarType, NDimensions, NDimensions > GMatrixType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputVectorType OutputVectorType
Superclass::InputPointType InputPointType
Superclass::ParametersType ParametersType
Superclass::ScalarType ScalarType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::JacobianType JacobianType
void ComputeG(const InputVectorType &x, GMatrixType &GMatrix) const
virtual const TScalarType GetPoissonRatio(void) const
KernelTransform2< TScalarType, NDimensions > Superclass
Superclass::OutputCovariantVectorType OutputCovariantVectorType


Generated on 27-04-2014 for elastix by doxygen 1.8.6 elastix logo