ITK  4.6.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 {
44 template< typename TScalar = double >
45 // Data type for scalars:float or double
47 {
48 public:
54 
56  itkNewMacro(Self);
57 
60 
62  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
63  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
64  itkStaticConstMacro(ParametersDimension, unsigned int, 9);
66 
84 
86  typedef typename Superclass::AxisType AxisType;
87  typedef typename Superclass::AngleType AngleType;
88 
91 
95  virtual void SetMatrix(const MatrixType & matrix);
96 
104  virtual void SetParameters(const ParametersType & parameters);
105 
106  virtual const ParametersType & GetParameters(void) const;
107 
110  void SetScale(const ScaleVectorType & scale);
111 
112  itkGetConstReferenceMacro(Scale, ScaleVectorType);
113 
116  void SetIdentity();
117 
122  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
123 
124 protected:
126  ScaleVersor3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
127  ScaleVersor3DTransform(unsigned int paramDims);
129 
130  void PrintSelf(std::ostream & os, Indent indent) const;
131 
132  void SetVarScale(const ScaleVectorType & scale)
133  {
134  m_Scale = scale;
135  }
136 
138  void ComputeMatrix(void);
139 
140  void ComputeMatrixParameters(void);
141 
142 private:
143  ScaleVersor3DTransform(const Self &); // purposely not implemented
144  void operator=(const Self &); // purposely not implemented
145 
148 }; // class ScaleVersor3DTransform
149 } // namespace itk
150 
151 #ifndef ITK_MANUAL_INSTANTIATION
152 #include "itkScaleVersor3DTransform.hxx"
153 #endif
154 
155 #endif /* __ScaleVersor3DTransform_h */
static const unsigned int ParametersDimension
Superclass::OutputVectorType OutputVectorType
Superclass::ParametersType ParametersType
Light weight base class for most itk classes.
Superclass::OutputPointType OutputPointType
Superclass::InputPointType InputPointType
Superclass::TranslationType TranslationType
Superclass::InputCovariantVectorType InputCovariantVectorType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
void operator=(const Self &)
Superclass::InverseMatrixType InverseMatrixType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputPointType InputPointType
Superclass::InputPointType InputPointType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::JacobianType JacobianType
static const unsigned int InputSpaceDimension
This transform applies a Versor rotation, translation and anisotropic scale to the space...
Superclass::InverseMatrixType InverseMatrixType
Superclass::ParametersType ParametersType
Superclass::JacobianType JacobianType
virtual void SetMatrix(const MatrixType &matrix)
void SetScale(const ScaleVectorType &scale)
Superclass::InputVectorType InputVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::MatrixType MatrixType
SmartPointer< const Self > ConstPointer
Superclass::JacobianType JacobianType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::TranslationType TranslationType
virtual void SetParameters(const ParametersType &parameters)
Superclass::ParametersType ParametersType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const
Superclass::InputVnlVectorType InputVnlVectorType
virtual const ParametersType & GetParameters(void) const
static const unsigned int OutputSpaceDimension
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputVnlVectorType OutputVnlVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::OutputPointType OutputPointType
void SetVarScale(const ScaleVectorType &scale)
Superclass::InputVectorType InputVectorType
VersorRigid3DTransform< TScalar > Superclass
Superclass::InputVnlVectorType InputVnlVectorType