go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedSimilarity2DTransform.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: itkAdvancedSimilarity2DTransform.h,v $
22  Language: C++
23  Date: $Date: 2006-06-07 16:06:32 $
24  Version: $Revision: 1.11 $
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 __itkAdvancedSimilarity2DTransform_h
35 #define __itkAdvancedSimilarity2DTransform_h
36 
37 #include <iostream>
39 
40 namespace itk
41 {
42 
77 template< class TScalarType = double >
78 // Data type for scalars (float or double)
80  public AdvancedRigid2DTransform< TScalarType >
81 {
82 public:
83 
88  typedef SmartPointer< const Self > ConstPointer;
89 
91  itkNewMacro( Self );
92 
95 
97  itkStaticConstMacro( SpaceDimension, unsigned int, 2 );
98  itkStaticConstMacro( InputSpaceDimension, unsigned int, 2 );
99  itkStaticConstMacro( OutputSpaceDimension, unsigned int, 2 );
100  itkStaticConstMacro( ParametersDimension, unsigned int, 4 );
101 
104  typedef TScalarType ScaleType;
105 
109 
112 
115 
118 
122 
126 
130 
134 
135  typedef typename Superclass
138  typedef typename Superclass
141  typedef typename Superclass
144 
146  void SetScale( ScaleType scale );
147 
148  itkGetConstReferenceMacro( Scale, ScaleType );
149 
159  void SetParameters( const ParametersType & parameters );
160 
170  const ParametersType & GetParameters( void ) const;
171 
178  virtual void GetJacobian(
179  const InputPointType &,
180  JacobianType &,
181  NonZeroJacobianIndicesType & ) const;
182 
184  virtual void SetIdentity( void );
185 
190  void CloneInverseTo( Pointer & newinverse ) const;
191 
196  void CloneTo( Pointer & clone ) const;
197 
211  virtual void SetMatrix( const MatrixType & matrix );
212 
213 protected:
214 
216  AdvancedSimilarity2DTransform( unsigned int spaceDimension,
217  unsigned int parametersDimension );
218 
220  void PrintSelf( std::ostream & os, Indent indent ) const;
221 
225  virtual void ComputeMatrix( void );
226 
231  virtual void ComputeMatrixParameters( void );
232 
234  void SetVarScale( ScaleType scale )
235  { m_Scale = scale; }
236 
238  virtual void PrecomputeJacobianOfSpatialJacobian( void );
239 
240 private:
241 
242  AdvancedSimilarity2DTransform( const Self & ); //purposely not implemented
243  void operator=( const Self & ); //purposely not implemented
244 
245  ScaleType m_Scale;
246 
247 };
248 
249 //class AdvancedSimilarity2DTransform
250 
251 } // namespace itk
252 
253 #ifndef ITK_MANUAL_INSTANTIATION
254 #include "itkAdvancedSimilarity2DTransform.hxx"
255 #endif
256 
257 #endif /* __itkAdvancedSimilarity2DTransform_h */
AdvancedRigid2DTransform< TScalarType > Superclass
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::SpatialJacobianType SpatialJacobianType
Superclass::OutputVnlVectorType OutputVnlVectorType
AdvancedSimilarity2DTransform of a vector space (e.g. space coordinates)
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
AdvancedRigid2DTransform of a vector space (e.g. space coordinates)
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType


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