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 * Copyright UMC Utrecht and contributors
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/*=========================================================================
19
20 Program: Insight Segmentation & Registration Toolkit
21 Module: $RCSfile: itkElasticBodyReciprocalSplineKernelTransform2.h,v $
22 Language: C++
23 Date: $Date: 2006/04/17 01:50:19 $
24 Version: $Revision: 1.8 $
25
26 Copyright (c) Insight Software Consortium. All rights reserved.
27 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
28
29 This software is distributed WITHOUT ANY WARRANTY; without even
30 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
31 PURPOSE. See the above copyright notices for more information.
32
33=========================================================================*/
34#ifndef __itkElasticBodyReciprocalSplineKernelTransform2_h
35#define __itkElasticBodyReciprocalSplineKernelTransform2_h
36
37#include "itkKernelTransform2.h"
38
39namespace itk
40{
41
54template< class TScalarType = double, // Data type for scalars (float or double)
55unsigned int NDimensions = 3 >
56// Number of dimensions
58 public KernelTransform2< TScalarType, NDimensions >
59{
60public:
61
65 NDimensions > Superclass;
66
68 typedef SmartPointer< const Self > ConstPointer;
69
72
74 itkNewMacro( Self );
75
78
81
84
86 itkStaticConstMacro( SpaceDimension, unsigned int, Superclass::SpaceDimension );
87
91 //itkSetMacro( Alpha, TScalarType ); Cant use the macro because the matrices must be recomputed
92 void SetAlpha( TScalarType Alpha ) override
93 {
94 this->m_Alpha = Alpha;
95 this->m_LMatrixComputed = false;
96 this->m_LInverseComputed = false;
97 this->m_WMatrixComputed = false;
98 }
99
100
103
105 void SetPoissonRatio( const TScalarType Nu ) override
106 {
107 if( Nu > -1.0 && Nu < 0.5 )
108 {
109 this->SetAlpha( 8.0 * ( 1.0 - Nu ) - 1.0 );
110 }
111 }
112
113
114 const TScalarType GetPoissonRatio( void ) const override
115 {
116 return 1.0 - ( this->m_Alpha + 1.0 ) / 8.0;
117 }
118
119
128
129protected:
130
133 void PrintSelf( std::ostream & os, Indent indent ) const override;
134
138
147 void ComputeG( const InputVectorType & x, GMatrixType & GMatrix ) const override;
148
151
152private:
153
154 ElasticBodyReciprocalSplineKernelTransform2( const Self & ); // purposely not implemented
155 void operator=( const Self & ); // purposely not implemented
156
157};
158
159} // namespace itk
160
161#ifndef ITK_MANUAL_INSTANTIATION
162#include "itkElasticBodyReciprocalSplineKernelTransform2.hxx"
163#endif
164
165#endif // __itkElasticBodyReciprocalSplineKernelTransform2_h
void ComputeG(const InputVectorType &x, GMatrixType &GMatrix) const override
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension)
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::OutputVectorType OutputVectorType
Superclass::ScalarType ScalarType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::ParametersType ParametersType
Superclass::InputPointType InputPointType
Superclass::OutputPointType OutputPointType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputVectorType InputVectorType
Superclass::JacobianType JacobianType


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo