ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkScaleSkewVersor3DTransform.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 __itkScaleSkewVersor3DTransform_h
19 #define __itkScaleSkewVersor3DTransform_h
20 
21 #include <iostream>
23 
24 namespace itk
25 {
47 template< typename TScalar = double >
48 // Data type for scalars:float or double
50  public VersorRigid3DTransform< TScalar >
51 {
52 public:
58 
60  itkNewMacro(Self);
61 
64 
66  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
67  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
68  itkStaticConstMacro(ParametersDimension, unsigned int, 15);
70 
88 
90  typedef typename Superclass::AxisType AxisType;
91  typedef typename Superclass::AngleType AngleType;
92 
96 
99  typedef typename TranslationType::ValueType TranslationValueType;
100 
103 
107  virtual void SetMatrix(const MatrixType & matrix);
108 
117  virtual void SetParameters(const ParametersType & parameters);
118 
119  virtual const ParametersType & GetParameters(void) const;
120 
121  void SetScale(const ScaleVectorType & scale);
122 
123  itkGetConstReferenceMacro(Scale, ScaleVectorType);
124 
125  void SetSkew(const SkewVectorType & skew);
126 
127  itkGetConstReferenceMacro(Skew, SkewVectorType);
128 
129  void SetIdentity();
130 
135  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
136 
137 protected:
139  ScaleSkewVersor3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
140  ScaleSkewVersor3DTransform(unsigned int paramDims);
142  {
143  }
144 
145  void PrintSelf(std::ostream & os, Indent indent) const;
146 
147  void SetVarScale(const ScaleVectorType & scale)
148  {
149  m_Scale = scale;
150  }
151 
152  void SetVarSkew(const SkewVectorType & skew)
153  {
154  m_Skew = skew;
155  }
156 
158  void ComputeMatrix(void);
159 
160  void ComputeMatrixParameters(void);
161 
162 private:
163  ScaleSkewVersor3DTransform(const Self &); // purposely not implemented
164  void operator=(const Self &); // purposely not implemented
165 
168 
171 }; // class ScaleSkewVersor3DTransform
172 } // namespace itk
173 
174 #ifndef ITK_MANUAL_INSTANTIATION
175 #include "itkScaleSkewVersor3DTransform.hxx"
176 #endif
177 
178 #endif /* __ScaleSkewVersor3DTransform_h */
ScaleVectorType::ValueType ScaleVectorValueType
Light weight base class for most itk classes.
Superclass::InputPointType InputPointType
Superclass::InputCovariantVectorType InputCovariantVectorType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::OutputVectorType OutputVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputVnlVectorType InputVnlVectorType
VersorRigid3DTransform< TScalar > Superclass
Superclass::InverseMatrixType InverseMatrixType
Superclass::InputPointType InputPointType
void SetScale(const ScaleVectorType &scale)
void SetSkew(const SkewVectorType &skew)
Superclass::OutputVectorType OutputVectorType
Superclass::ParameterValueType ParameterValueType
Superclass::InverseMatrixType InverseMatrixType
Superclass::ParametersType ParametersType
Superclass::JacobianType JacobianType
Superclass::InputVectorType InputVectorType
Superclass::OutputPointType OutputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
void SetVarScale(const ScaleVectorType &scale)
virtual const ParametersType & GetParameters(void) const
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const
Superclass::OutputVectorType OutputVectorType
ScaleSkewVersor3DTransform of a vector space (e.g. space coordinates)
Superclass::MatrixType MatrixType
Superclass::AxisValueType AxisValueType
Superclass::JacobianType JacobianType
Superclass::TranslationType TranslationType
Superclass::TranslationType TranslationType
Superclass::ParametersType ParametersType
virtual void SetParameters(const ParametersType &parameters)
Superclass::InputVnlVectorType InputVnlVectorType
virtual void SetMatrix(const MatrixType &matrix)
Superclass::OutputVnlVectorType OutputVnlVectorType
static const unsigned int OutputSpaceDimension
Superclass::OutputVnlVectorType OutputVnlVectorType
void PrintSelf(std::ostream &os, Indent indent) const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
TranslationType::ValueType TranslationValueType
Superclass::ParameterValueType ParameterValueType
Superclass::OutputPointType OutputPointType
Superclass::InputVectorType InputVectorType
void SetVarSkew(const SkewVectorType &skew)
void operator=(const Self &)
Superclass::InputCovariantVectorType InputCovariantVectorType