ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkScaleVersor3DTransform.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 itkScaleVersor3DTransform_h
19 #define itkScaleVersor3DTransform_h
20 
22 
23 namespace itk
24 {
48 template<typename TParametersValueType=double>
49 class ITK_TEMPLATE_EXPORT ScaleVersor3DTransform : public VersorRigid3DTransform<TParametersValueType>
50 {
51 public:
57 
59  itkNewMacro(Self);
60 
63 
65  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
66  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
67  itkStaticConstMacro(ParametersDimension, unsigned int, 9);
69 
71  typedef typename Superclass::ParametersType ParametersType;
72  typedef typename Superclass::FixedParametersType FixedParametersType;
73  typedef typename Superclass::JacobianType JacobianType;
74  typedef typename Superclass::ScalarType ScalarType;
75  typedef typename Superclass::InputPointType InputPointType;
76  typedef typename Superclass::OutputPointType OutputPointType;
77  typedef typename Superclass::InputVectorType InputVectorType;
78  typedef typename Superclass::OutputVectorType OutputVectorType;
79  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
80  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
81  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
82  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
83  typedef typename Superclass::MatrixType MatrixType;
84  typedef typename Superclass::InverseMatrixType InverseMatrixType;
85  typedef typename Superclass::CenterType CenterType;
86  typedef typename Superclass::OffsetType OffsetType;
87  typedef typename Superclass::TranslationType TranslationType;
88 
89  typedef typename Superclass::VersorType VersorType;
90  typedef typename Superclass::AxisType AxisType;
91  typedef typename Superclass::AngleType AngleType;
92 
95 
101  virtual void SetMatrix(const MatrixType & matrix) ITK_OVERRIDE;
102  virtual void SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) ITK_OVERRIDE;
104 
112  virtual void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
113 
114  virtual const ParametersType & GetParameters(void) const ITK_OVERRIDE;
115 
118  void SetScale(const ScaleVectorType & scale);
119 
120  itkGetConstReferenceMacro(Scale, ScaleVectorType);
121 
124  void SetIdentity() ITK_OVERRIDE;
125 
130  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
131 
132 protected:
134  ScaleVersor3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
135  ScaleVersor3DTransform(unsigned int paramDims);
136  ~ScaleVersor3DTransform() ITK_OVERRIDE;
137 
138  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
139 
140  void SetVarScale(const ScaleVectorType & scale)
141  {
142  m_Scale = scale;
143  }
144 
146  void ComputeMatrix(void) ITK_OVERRIDE;
147 
148  void ComputeMatrixParameters(void) ITK_OVERRIDE;
149 
150 private:
151  ITK_DISALLOW_COPY_AND_ASSIGN(ScaleVersor3DTransform);
152 
154  ScaleVectorType m_Scale;
155 }; // class ScaleVersor3DTransform
156 } // namespace itk
157 
158 #ifndef ITK_MANUAL_INSTANTIATION
159 #include "itkScaleVersor3DTransform.hxx"
160 #endif
161 
162 #endif /* __ScaleVersor3DTransform_h */
SmartPointer< const Self > ConstPointer
Vector< TParametersValueType, 3 > ScaleVectorType
Light weight base class for most itk classes.
Superclass::TranslationType TranslationType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::OutputPointType OutputPointType
Superclass::FixedParametersType FixedParametersType
Superclass::OutputVectorType OutputVectorType
Superclass::MatrixType MatrixType
Superclass::OutputVectorType OutputVectorType
This transform applies a Versor rotation, translation and anisotropic scale to the space...
VersorRigid3DTransform< TParametersValueType > Superclass
Superclass::JacobianType JacobianType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InverseMatrixType InverseMatrixType
Superclass::InputVectorType InputVectorType
Superclass::JacobianType JacobianType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::InputPointType InputPointType
Superclass::ParametersType ParametersType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::ParametersType ParametersType
Superclass::InputPointType InputPointType