ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkCenteredEuler3DTransform.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 itkCenteredEuler3DTransform_h
19 #define itkCenteredEuler3DTransform_h
20 
21 #include <iostream>
22 #include "itkEuler3DTransform.h"
23 #include "itkMacro.h"
24 #include "itkVersor.h"
25 
26 namespace itk
27 {
36 template<typename TParametersValueType=double>
37 class ITK_TEMPLATE_EXPORT CenteredEuler3DTransform :
38  public Euler3DTransform<TParametersValueType>
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredEuler3DTransform);
42 
48 
50  itkNewMacro(Self);
51 
54 
56  static constexpr unsigned int SpaceDimension = 3;
57  static constexpr unsigned int InputSpaceDimension = 3;
58  static constexpr unsigned int OutputSpaceDimension = 3;
59  static constexpr unsigned int ParametersDimension = 9;
60 
61  using ParametersType = typename Superclass::ParametersType;
62  using ParametersValueType = typename Superclass::ParametersValueType;
63  using FixedParametersType = typename Superclass::FixedParametersType;
64  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
65  using JacobianType = typename Superclass::JacobianType;
66  using JacobianPositionType = typename Superclass::JacobianPositionType;
67  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
68  using ScalarType = typename Superclass::ScalarType;
69  using InputVectorType = typename Superclass::InputVectorType;
70  using OutputVectorType = typename Superclass::OutputVectorType;
71  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
72  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
73 
74  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
75  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
76  using InputPointType = typename Superclass::InputPointType;
77  using OutputPointType = typename Superclass::OutputPointType;
78  using MatrixType = typename Superclass::MatrixType;
79  using InverseMatrixType = typename Superclass::InverseMatrixType;
80  using CenterType = typename Superclass::CenterType;
81  using TranslationType = typename Superclass::TranslationType;
82  using TranslationValueType = typename Superclass::TranslationValueType;
83  using OffsetType = typename Superclass::OffsetType;
84 
87  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
88  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
89 
96  void SetParameters(const ParametersType & parameters) override;
97 
104  const ParametersType & GetParameters() const override;
105 
110  void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const override;
111 
113  bool GetInverse(Self *inverse) const;
114 
116  InverseTransformBasePointer GetInverseTransform() const override;
117 
118 protected:
120  CenteredEuler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
121  CenteredEuler3DTransform(unsigned int ParametersDimension);
122  ~CenteredEuler3DTransform() override = default;
123 
127  void PrintSelf(std::ostream & os, Indent indent) const override;
128 }; // class CenteredEuler3DTransform
129 } // namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkCenteredEuler3DTransform.hxx"
133 #endif
134 
135 #endif /* itkCenteredEuler3DTransform_h */
typename Superclass::InputVnlVectorType InputVnlVectorType
typename Superclass::FixedParametersValueType FixedParametersValueType
typename Superclass::InputPointType InputPointType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Light weight base class for most itk classes.
typename Superclass::InputVectorType InputVectorType
typename Superclass::ParametersValueType ParametersValueType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::InverseMatrixType InverseMatrixType
typename Superclass::JacobianType JacobianType
typename Superclass::CenterType CenterType
typename Superclass::TranslationValueType TranslationValueType
typename Superclass::MatrixType MatrixType
typename Superclass::OffsetType OffsetType
typename Superclass::OutputPointType OutputPointType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
typename Superclass::ScalarType ScalarType
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::ParametersType ParametersType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
CenteredEuler3DTransform of a vector space (e.g. space coordinates)
typename Superclass::JacobianPositionType JacobianPositionType
Euler3DTransform of a vector space (e.g. space coordinates)
typename Superclass::TranslationType TranslationType
typename Superclass::OutputVectorType OutputVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::InputCovariantVectorType InputCovariantVectorType