go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedSimilarity3DTransform.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: itkAdvancedSimilarity3DTransform.h,v $
22  Language: C++
23  Date: $Date: 2006-08-09 04:35:32 $
24  Version: $Revision: 1.3 $
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 __itkAdvancedSimilarity3DTransform_h
35 #define __itkAdvancedSimilarity3DTransform_h
36 
37 #include <iostream>
39 
40 namespace itk
41 {
42 
62 template< class TScalarType = double >
63 // Data type for scalars (float or double)
65  public AdvancedVersorRigid3DTransform< TScalarType >
66 {
67 public:
68 
73  typedef SmartPointer< const Self > ConstPointer;
74 
76  itkNewMacro( Self );
77 
80 
82  itkStaticConstMacro( SpaceDimension, unsigned int, 3 );
83  itkStaticConstMacro( InputSpaceDimension, unsigned int, 3 );
84  itkStaticConstMacro( OutputSpaceDimension, unsigned int, 3 );
85  itkStaticConstMacro( ParametersDimension, unsigned int, 7 );
86 
107 
109  typedef typename Superclass::VersorType VersorType;
110  typedef typename Superclass::AxisType AxisType;
111  typedef typename Superclass::AngleType AngleType;
112  typedef TScalarType ScaleType;
113 
114  typedef typename Superclass
117  typedef typename Superclass
120  typedef typename Superclass
123 
129  virtual void SetMatrix( const MatrixType & matrix );
130 
135  void SetParameters( const ParametersType & parameters );
136 
137  virtual const ParametersType & GetParameters( void ) const;
138 
140  void SetScale( ScaleType scale );
141 
142  itkGetConstReferenceMacro( Scale, ScaleType );
143 
145  virtual void GetJacobian(
146  const InputPointType &,
147  JacobianType &,
148  NonZeroJacobianIndicesType & ) const;
149 
150 protected:
151 
152  AdvancedSimilarity3DTransform( unsigned int outputSpaceDim,
153  unsigned int paramDim );
154  AdvancedSimilarity3DTransform( const MatrixType & matrix,
155  const OutputVectorType & offset );
158 
159  void PrintSelf( std::ostream & os, Indent indent ) const;
160 
163  void ComputeMatrix();
164 
166  void ComputeMatrixParameters();
167 
169  virtual void PrecomputeJacobianOfSpatialJacobian( void );
170 
171 private:
172 
173  AdvancedSimilarity3DTransform( const Self & ); //purposely not implemented
174  void operator=( const Self & ); //purposely not implemented
175 
176  ScaleType m_Scale;
177 
178 };
179 
180 //class AdvancedSimilarity3DTransform
181 
182 } // namespace itk
183 
184 #ifndef ITK_MANUAL_INSTANTIATION
185 #include "itkAdvancedSimilarity3DTransform.hxx"
186 #endif
187 
188 #endif /* __itkAdvancedSimilarity3DTransform_h */
Superclass::NumberOfParametersType NumberOfParametersType
AdvancedVersorRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
AdvancedSimilarity3DTransform of a vector space (e.g. space coordinates)
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
AdvancedVersorRigid3DTransform< TScalarType > Superclass
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::SpatialJacobianType SpatialJacobianType
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass::InputCovariantVectorType InputCovariantVectorType


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo