ITK  4.9.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 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 
88 
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();
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  ScaleVersor3DTransform(const Self &) ITK_DELETE_FUNCTION;
152  void operator=(const Self &) ITK_DELETE_FUNCTION;
153 
156 }; // class ScaleVersor3DTransform
157 } // namespace itk
158 
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "itkScaleVersor3DTransform.hxx"
161 #endif
162 
163 #endif /* __ScaleVersor3DTransform_h */
Superclass::InputCovariantVectorType InputCovariantVectorType
static const unsigned int ParametersDimension
static const unsigned int InputSpaceDimension
Superclass::InputPointType InputPointType
virtual const ParametersType & GetParameters(void) const override
SmartPointer< const Self > ConstPointer
Vector< TParametersValueType, 3 > ScaleVectorType
Light weight base class for most itk classes.
Superclass::InputVectorType InputVectorType
void SetScale(const ScaleVectorType &scale)
Superclass::FixedParametersType FixedParametersType
Superclass::TranslationType TranslationType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::InputVnlVectorType InputVnlVectorType
static const unsigned int OutputSpaceDimension
Superclass::OutputPointType OutputPointType
Superclass::FixedParametersType FixedParametersType
void SetIdentity() override
Superclass::OutputVectorType OutputVectorType
Superclass::MatrixType MatrixType
Superclass::OutputVectorType OutputVectorType
Superclass::TranslationType TranslationType
This transform applies a Versor rotation, translation and anisotropic scale to the space...
VersorRigid3DTransform< TParametersValueType > Superclass
Superclass::JacobianType JacobianType
Superclass::OutputVectorType OutputVectorType
Superclass::InputCovariantVectorType InputCovariantVectorType
virtual void SetMatrix(const MatrixType &matrix) override
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputPointType OutputPointType
Superclass::InverseMatrixType InverseMatrixType
Superclass::InputVectorType InputVectorType
Superclass::JacobianType JacobianType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
void SetVarScale(const ScaleVectorType &scale)
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::JacobianType JacobianType
void ComputeMatrixParameters(void) override
Superclass::InputPointType InputPointType
Superclass::InverseMatrixType InverseMatrixType
Superclass::ParametersType ParametersType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::ParametersType ParametersType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::ParametersType ParametersType
void PrintSelf(std::ostream &os, Indent indent) const override
void ComputeMatrix(void) override
Superclass::InputPointType InputPointType
virtual void SetParameters(const ParametersType &parameters) override
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override