ITK  4.8.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 {
53 template<typename TParametersValueType=double>
55  public VersorRigid3DTransform<TParametersValueType>
56 {
57 public:
63 
65  itkNewMacro(Self);
66 
69 
71  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
72  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
73  itkStaticConstMacro(ParametersDimension, unsigned int, 15);
75 
94 
96  typedef typename Superclass::AxisType AxisType;
97  typedef typename Superclass::AngleType AngleType;
98 
102 
105  typedef typename TranslationType::ValueType TranslationValueType;
106 
109 
115  virtual void SetMatrix(const MatrixType & matrix) ITK_OVERRIDE;
116  virtual void SetMatrix(const MatrixType & matrix, double tolerance) ITK_OVERRIDE;
118 
127  virtual void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
128 
129  virtual const ParametersType & GetParameters(void) const ITK_OVERRIDE;
130 
131  void SetScale(const ScaleVectorType & scale);
132 
133  itkGetConstReferenceMacro(Scale, ScaleVectorType);
134 
135  void SetSkew(const SkewVectorType & skew);
136 
137  itkGetConstReferenceMacro(Skew, SkewVectorType);
138 
139  void SetIdentity() ITK_OVERRIDE;
140 
145  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
146 
147 protected:
149  ScaleSkewVersor3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
150  ScaleSkewVersor3DTransform(unsigned int paramDims);
151  ~ScaleSkewVersor3DTransform()
152  {
153  }
154 
155  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
156 
157  void SetVarScale(const ScaleVectorType & scale)
158  {
159  m_Scale = scale;
160  }
161 
162  void SetVarSkew(const SkewVectorType & skew)
163  {
164  m_Skew = skew;
165  }
166 
168  void ComputeMatrix(void) ITK_OVERRIDE;
169 
170  void ComputeMatrixParameters(void) ITK_OVERRIDE;
171 
172 private:
173  ScaleSkewVersor3DTransform(const Self &); // purposely not implemented
174  void operator=(const Self &); // purposely not implemented
175 
178 
181 }; // class ScaleSkewVersor3DTransform
182 } // namespace itk
183 
184 #ifndef ITK_MANUAL_INSTANTIATION
185 #include "itkScaleSkewVersor3DTransform.hxx"
186 #endif
187 
188 #endif /* __ScaleSkewVersor3DTransform_h */
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputVectorType InputVectorType
Superclass::InputPointType InputPointType
void SetVarSkew(const SkewVectorType &skew)
void PrintSelf(std::ostream &os, Indent indent) const override
Light weight base class for most itk classes.
Superclass::InputVectorType InputVectorType
Superclass::FixedParametersType FixedParametersType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::InputVnlVectorType InputVnlVectorType
void SetVarScale(const ScaleVectorType &scale)
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
Superclass::MatrixType MatrixType
Superclass::OutputVectorType OutputVectorType
TranslationType::ValueType TranslationValueType
Superclass::ParametersValueType ParametersValueType
Superclass::TranslationType TranslationType
Vector< TParametersValueType, 6 > SkewVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::InverseMatrixType InverseMatrixType
ScaleVectorType::ValueType ScaleVectorValueType
Superclass::TranslationType TranslationType
Superclass::ParametersValueType ParametersValueType
Superclass::OutputPointType OutputPointType
Superclass::JacobianType JacobianType
ScaleSkewVersor3DTransform of a vector space (e.g. space coordinates)
void ComputeMatrix(void) override
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputPointType OutputPointType
Superclass::JacobianType JacobianType
virtual void SetMatrix(const MatrixType &matrix) override
Vector< TParametersValueType, 3 > ScaleVectorType
Superclass::FixedParametersType FixedParametersType
static const unsigned int OutputSpaceDimension
void ComputeMatrixParameters(void) override
Superclass::InverseMatrixType InverseMatrixType
Superclass::ParametersType ParametersType
VersorRigid3DTransform< TParametersValueType > Superclass
Superclass::ParametersType ParametersType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::AxisValueType AxisValueType
void SetSkew(const SkewVectorType &skew)
virtual void SetParameters(const ParametersType &parameters) override
virtual const ParametersType & GetParameters(void) const override
Superclass::InputPointType InputPointType
TParametersValueType ValueType
Definition: itkVector.h:71
Superclass::OutputCovariantVectorType OutputCovariantVectorType
void SetScale(const ScaleVectorType &scale)