ITK  4.13.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>
54 class ITK_TEMPLATE_EXPORT ScaleSkewVersor3DTransform :
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 
77  typedef typename Superclass::ParametersType ParametersType;
78  typedef typename Superclass::FixedParametersType FixedParametersType;
79  typedef typename Superclass::JacobianType JacobianType;
80  typedef typename Superclass::ScalarType ScalarType;
81  typedef typename Superclass::InputPointType InputPointType;
82  typedef typename Superclass::OutputPointType OutputPointType;
83  typedef typename Superclass::InputVectorType InputVectorType;
84  typedef typename Superclass::OutputVectorType OutputVectorType;
85  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
86  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
87  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
88  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
89  typedef typename Superclass::MatrixType MatrixType;
90  typedef typename Superclass::InverseMatrixType InverseMatrixType;
91  typedef typename Superclass::CenterType CenterType;
92  typedef typename Superclass::OffsetType OffsetType;
93  typedef typename Superclass::TranslationType TranslationType;
94 
95  typedef typename Superclass::VersorType VersorType;
96  typedef typename Superclass::AxisType AxisType;
97  typedef typename Superclass::AngleType AngleType;
98 
102 
105  typedef typename TranslationType::ValueType TranslationValueType;
106 
107  typedef typename Superclass::AxisValueType AxisValueType;
108  typedef typename Superclass::ParametersValueType ParametersValueType;
109 
115  virtual void SetMatrix(const MatrixType & matrix) ITK_OVERRIDE;
116  virtual void SetMatrix(const MatrixType & matrix, const TParametersValueType 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() ITK_OVERRIDE {}
152 
153  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
154 
155  void SetVarScale(const ScaleVectorType & scale)
156  {
157  m_Scale = scale;
158  }
159 
160  void SetVarSkew(const SkewVectorType & skew)
161  {
162  m_Skew = skew;
163  }
164 
166  void ComputeMatrix(void) ITK_OVERRIDE;
167 
168  void ComputeMatrixParameters(void) ITK_OVERRIDE;
169 
170 private:
171  ITK_DISALLOW_COPY_AND_ASSIGN(ScaleSkewVersor3DTransform);
172 
174  ScaleVectorType m_Scale;
175 
178 }; // class ScaleSkewVersor3DTransform
179 } // namespace itk
180 
181 #ifndef ITK_MANUAL_INSTANTIATION
182 #include "itkScaleSkewVersor3DTransform.hxx"
183 #endif
184 
185 #endif /* __ScaleSkewVersor3DTransform_h */
Superclass::InputVectorType InputVectorType
void SetVarSkew(const SkewVectorType &skew)
Light weight base class for most itk classes.
VersorRigid3DTransform of a vector space (e.g. space coordinates)
void SetVarScale(const ScaleVectorType &scale)
Superclass::MatrixType MatrixType
Superclass::OutputVectorType OutputVectorType
TranslationType::ValueType TranslationValueType
Superclass::ParametersValueType ParametersValueType
Vector< TParametersValueType, 6 > SkewVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::InverseMatrixType InverseMatrixType
ScaleVectorType::ValueType ScaleVectorValueType
Superclass::TranslationType TranslationType
Superclass::JacobianType JacobianType
ScaleSkewVersor3DTransform of a vector space (e.g. space coordinates)
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputPointType OutputPointType
Vector< TParametersValueType, 3 > ScaleVectorType
Superclass::FixedParametersType FixedParametersType
Superclass::ParametersType ParametersType
VersorRigid3DTransform< TParametersValueType > Superclass
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::InputPointType InputPointType
TParametersValueType ValueType
Definition: itkVector.h:71
Superclass::OutputCovariantVectorType OutputCovariantVectorType