ITK  4.13.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:
46 
48  itkNewMacro(Self);
49 
52 
54  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
55  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
56  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
57  itkStaticConstMacro(ParametersDimension, unsigned int, 9);
59 
60  typedef typename Superclass::ParametersType ParametersType;
61  typedef typename Superclass::ParametersValueType ParametersValueType;
62  typedef typename Superclass::FixedParametersType FixedParametersType;
63  typedef typename Superclass::FixedParametersValueType FixedParametersValueType;
64  typedef typename Superclass::JacobianType JacobianType;
65  typedef typename Superclass::ScalarType ScalarType;
66  typedef typename Superclass::InputVectorType InputVectorType;
67  typedef typename Superclass::OutputVectorType OutputVectorType;
68  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
69  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
70 
71  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
72  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
73  typedef typename Superclass::InputPointType InputPointType;
74  typedef typename Superclass::OutputPointType OutputPointType;
75  typedef typename Superclass::MatrixType MatrixType;
76  typedef typename Superclass::InverseMatrixType InverseMatrixType;
77  typedef typename Superclass::CenterType CenterType;
78  typedef typename Superclass::TranslationType TranslationType;
79  typedef typename Superclass::TranslationValueType TranslationValueType;
80  typedef typename Superclass::OffsetType OffsetType;
81 
84  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
85  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
86 
93  void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
94 
101  const ParametersType & GetParameters(void) const ITK_OVERRIDE;
102 
107  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
108 
110  bool GetInverse(Self *inverse) const;
111 
113  virtual InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE;
114 
115 protected:
117  CenteredEuler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
118  CenteredEuler3DTransform(unsigned int ParametersDimension);
119  ~CenteredEuler3DTransform() ITK_OVERRIDE;
120 
124  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
125 
126 private:
127  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredEuler3DTransform);
128 
129 }; // class CenteredEuler3DTransform
130 } // namespace itk
131 
132 #ifndef ITK_MANUAL_INSTANTIATION
133 #include "itkCenteredEuler3DTransform.hxx"
134 #endif
135 
136 #endif /* itkCenteredEuler3DTransform_h */
Superclass::TranslationValueType TranslationValueType
Light weight base class for most itk classes.
Euler3DTransform< TParametersValueType > Superclass
Superclass::TranslationType TranslationType
Superclass::ParametersValueType ParametersValueType
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::InputVectorType InputVectorType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InverseMatrixType InverseMatrixType
Superclass::InputVnlVectorType InputVnlVectorType
CenteredEuler3DTransform of a vector space (e.g. space coordinates)
Superclass::ParametersType ParametersType
Euler3DTransform of a vector space (e.g. space coordinates)
Superclass::InputPointType InputPointType
Superclass::OutputPointType OutputPointType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< const Self > ConstPointer
Superclass::FixedParametersType FixedParametersType
Superclass::InputCovariantVectorType InputCovariantVectorType