ITK  4.10.0
Insight Segmentation and Registration Toolkit
itkEuler3DTransform.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 itkEuler3DTransform_h
19 #define itkEuler3DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid3DTransform.h"
23 
24 namespace itk
25 {
46 template<typename TParametersValueType=double >
48  public Rigid3DTransform<TParametersValueType>
49 {
50 public:
56 
58  itkNewMacro(Self);
59 
61  itkTypeMacro(Euler3DTransform, Rigid3DTransform);
62 
64  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
65  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
66  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
67  itkStaticConstMacro(ParametersDimension, unsigned int, 6);
69 
90 
95  void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
96 
97  const ParametersType & GetParameters(void) const ITK_OVERRIDE;
98 
99  const FixedParametersType & GetFixedParameters() const ITK_OVERRIDE;
100  virtual void SetFixedParameters(const FixedParametersType & parameters) ITK_OVERRIDE;
101 
103  void SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
104 
105  itkGetConstMacro(AngleX, ScalarType);
106  itkGetConstMacro(AngleY, ScalarType);
107  itkGetConstMacro(AngleZ, ScalarType);
108 
113  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
114 
121  virtual void SetComputeZYX (const bool flag);
122  itkGetConstMacro(ComputeZYX, bool);
124 
125  virtual void SetIdentity(void) ITK_OVERRIDE;
126 
127 protected:
128  Euler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
129  Euler3DTransform(unsigned int paramsSpaceDims);
131 
133  {
134  }
135 
136  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
137 
139  void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
140 
142  void ComputeMatrix(void) ITK_OVERRIDE;
143 
144  void ComputeMatrixParameters(void) ITK_OVERRIDE;
145 
146 private:
147  Euler3DTransform(const Self &) ITK_DELETE_FUNCTION;
148  void operator=(const Self &) ITK_DELETE_FUNCTION;
149 
150  ScalarType m_AngleX;
151  ScalarType m_AngleY;
152  ScalarType m_AngleZ;
154 }; // class Euler3DTransform
155 } // namespace itk
156 
157 #ifndef ITK_MANUAL_INSTANTIATION
158 #include "itkEuler3DTransform.hxx"
159 #endif
160 
161 #endif /* itkEuler3DTransform_h */
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::FixedParametersType FixedParametersType
Rigid3DTransform< TParametersValueType > Superclass
Superclass::TranslationType TranslationType
Superclass::InverseMatrixType InverseMatrixType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
Superclass::CenterType CenterType
void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
void operator=(const Self &) ITK_DELETE_FUNCTION
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Rigid3DTransform of a vector space (e.g. space coordinates)
void ComputeMatrixParameters(void) override
Superclass::OutputVnlVectorType OutputVnlVectorType
void SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
SmartPointer< Self > Pointer
Superclass::MatrixType MatrixType
virtual void SetComputeZYX(const bool flag)
Superclass::OutputVectorType OutputVectorType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Definition: itkArray.h:30
Superclass::ScalarType AngleType
Superclass::InputVectorType InputVectorType
Superclass::CenterType CenterType
Superclass::ScalarType ScalarType
void ComputeMatrix(void) override
static const unsigned int SpaceDimension
static const unsigned int OutputSpaceDimension
Superclass::OutputPointType OutputPointType
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::OutputPointType OutputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::JacobianType JacobianType
void SetParameters(const ParametersType &parameters) override
Superclass::ParametersValueType ParametersValueType
Superclass::ParametersValueType ParametersValueType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::ParametersType ParametersType
Superclass::OffsetType OffsetType
Superclass::InputVnlVectorType InputVnlVectorType
const FixedParametersType & GetFixedParameters() const override
Superclass::OutputVectorType OutputVectorType
Euler3DTransform of a vector space (e.g. space coordinates)
virtual void SetIdentity(void) override
Superclass::InverseMatrixType InverseMatrixType
virtual void SetFixedParameters(const FixedParametersType &parameters) override
Superclass::OffsetType OffsetType
Superclass::ParametersType ParametersType
Superclass::InputVectorType InputVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< const Self > ConstPointer
Superclass::JacobianType JacobianType
Superclass::FixedParametersType FixedParametersType
Superclass::ScalarType ScalarType
Superclass::TranslationType TranslationType
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::InputPointType InputPointType
static const unsigned int InputSpaceDimension
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::MatrixType MatrixType
static const unsigned int ParametersDimension
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::InputCovariantVectorType InputCovariantVectorType
const ParametersType & GetParameters(void) const override
Superclass::InputPointType InputPointType