ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkSimilarity3DTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 #ifndef __itkSimilarity3DTransform_h
19 #define __itkSimilarity3DTransform_h
20 
21 #include <iostream>
23 
24 namespace itk
25 {
46 template< typename TScalar = double >
47 // Data type for scalars (float or double)
49  public VersorRigid3DTransform< TScalar >
50 {
51 public:
57 
59  itkNewMacro(Self);
60 
63 
65  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
66  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
67  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
68  itkStaticConstMacro(ParametersDimension, unsigned int, 7);
70 
88 
91  typedef typename Superclass::AxisType AxisType;
92  typedef typename Superclass::AngleType AngleType;
93  typedef TScalar ScaleType;
94 
96  virtual void SetIdentity(void);
97 
103  virtual void SetMatrix(const MatrixType & matrix);
104 
109  void SetParameters(const ParametersType & parameters);
110 
111  virtual const ParametersType & GetParameters(void) const;
112 
114  void SetScale(ScaleType scale);
115 
116  itkGetConstReferenceMacro(Scale, ScaleType);
117 
122  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
123 
124 protected:
125  Similarity3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
126  Similarity3DTransform(unsigned int paramDim);
129  {
130  }
131 
132  void PrintSelf(std::ostream & os, Indent indent) const;
133 
136  void ComputeMatrix();
137 
140 
141 private:
142  Similarity3DTransform(const Self &); // purposely not implemented
143  void operator=(const Self &); // purposely not implemented
144 
146 }; // class Similarity3DTransform
147 } // namespace itk
148 
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkSimilarity3DTransform.hxx"
151 #endif
152 
153 #endif /* __itkSimilarity3DTransform_h */
Superclass::OutputVectorType OutputVectorType
Superclass::JacobianType JacobianType
static const unsigned int ParametersDimension
Light weight base class for most itk classes.
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InputPointType InputPointType
Superclass::ParametersType ParametersType
SmartPointer< const Self > ConstPointer
static const unsigned int InputSpaceDimension
Superclass::InputCovariantVectorType InputCovariantVectorType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
virtual void SetIdentity(void)
void SetScale(ScaleType scale)
Superclass::VersorType VersorType
Superclass::InputPointType InputPointType
virtual const ParametersType & GetParameters(void) const
Superclass::OutputCovariantVectorType OutputCovariantVectorType
VersorRigid3DTransform< TScalar > Superclass
Superclass::InputPointType InputPointType
Superclass::OutputVectorType OutputVectorType
Superclass::InverseMatrixType InverseMatrixType
Superclass::InputVectorType InputVectorType
Superclass::ScalarType ScalarType
Superclass::ParametersType ParametersType
Superclass::JacobianType JacobianType
void PrintSelf(std::ostream &os, Indent indent) const
Similarity3DTransform of a vector space (e.g. space coordinates)
Superclass::OutputVectorType OutputVectorType
Superclass::MatrixType MatrixType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::JacobianType JacobianType
Superclass::OffsetType OffsetType
Superclass::TranslationType TranslationType
Superclass::ParametersType ParametersType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputPointType OutputPointType
static const unsigned int OutputSpaceDimension
Superclass::MatrixType MatrixType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InverseMatrixType InverseMatrixType
void operator=(const Self &)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const
Superclass::OutputPointType OutputPointType
virtual void SetMatrix(const MatrixType &matrix)
Superclass::InputCovariantVectorType InputCovariantVectorType
void SetParameters(const ParametersType &parameters)
Superclass::InputVectorType InputVectorType
static const unsigned int SpaceDimension
Superclass::CenterType CenterType
Superclass::TranslationType TranslationType