go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkElasticBodyReciprocalSplineKernelTransform2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkElasticBodyReciprocalSplineKernelTransform2.h,v $
5  Language: C++
6  Date: $Date: 2006/04/17 01:50:19 $
7  Version: $Revision: 1.8 $
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 __itkElasticBodyReciprocalSplineKernelTransform2_h
18 #define __itkElasticBodyReciprocalSplineKernelTransform2_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( 8.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 ) / 8.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 
133  TScalarType m_Alpha;
134 
135 private:
136 
137  ElasticBodyReciprocalSplineKernelTransform2( const Self & ); // purposely not implemented
138  void operator=( const Self & ); // purposely not implemented
139 
140 };
141 
142 } // namespace itk
143 
144 #ifndef ITK_MANUAL_INSTANTIATION
145 #include "itkElasticBodyReciprocalSplineKernelTransform2.hxx"
146 #endif
147 
148 #endif // __itkElasticBodyReciprocalSplineKernelTransform2_h
Superclass::OutputPointType OutputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputVectorType InputVectorType
vnl_matrix_fixed< TScalarType, NDimensions, NDimensions > GMatrixType
Superclass::OutputVectorType OutputVectorType
void ComputeG(const InputVectorType &x, GMatrixType &GMatrix) const
Superclass::InputPointType InputPointType
Superclass::ParametersType ParametersType
Superclass::ScalarType ScalarType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::JacobianType JacobianType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension)
void PrintSelf(std::ostream &os, Indent indent) const


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo