ITK  4.9.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 
100  void SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
101 
102  itkGetConstMacro(AngleX, ScalarType);
103  itkGetConstMacro(AngleY, ScalarType);
104  itkGetConstMacro(AngleZ, ScalarType);
105 
110  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
111 
113  itkSetMacro(ComputeZYX, bool);
114  itkGetConstMacro(ComputeZYX, bool);
116 
117  virtual void SetIdentity(void) ITK_OVERRIDE;
118 
119 protected:
120  Euler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
121  Euler3DTransform(unsigned int paramsSpaceDims);
123 
125  {
126  }
127 
128  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
129 
131  void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
132 
134  void ComputeMatrix(void) ITK_OVERRIDE;
135 
136  void ComputeMatrixParameters(void) ITK_OVERRIDE;
137 
138 private:
139  Euler3DTransform(const Self &) ITK_DELETE_FUNCTION;
140  void operator=(const Self &) ITK_DELETE_FUNCTION;
141 
146 }; // class Euler3DTransform
147 } // namespace itk
148 
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkEuler3DTransform.hxx"
151 #endif
152 
153 #endif /* itkEuler3DTransform_h */
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::FixedParametersType FixedParametersType
Rigid3DTransform< TParametersValueType > Superclass
Superclass::TranslationType TranslationType
Superclass::InverseMatrixType InverseMatrixType
Light weight base class for most itk classes.
Superclass::CenterType CenterType
void PrintSelf(std::ostream &os, Indent indent) const override
void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
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
Superclass::OutputVectorType OutputVectorType
Superclass::ScalarType AngleType
Superclass::InputVectorType InputVectorType
Superclass::CenterType CenterType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
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
Superclass::OutputVectorType OutputVectorType
Euler3DTransform of a vector space (e.g. space coordinates)
virtual void SetIdentity(void) override
Superclass::InverseMatrixType InverseMatrixType
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
Superclass::InputPointType InputPointType
static const unsigned int InputSpaceDimension
Superclass::OutputVnlVectorType OutputVnlVectorType
const ParametersType & GetParameters(void) const override
Superclass::MatrixType MatrixType
static const unsigned int ParametersDimension
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputPointType InputPointType