ITK  4.3.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 <class TScalarType = double>
37 // Data type for scalars
38 class ITK_EXPORT CenteredEuler3DTransform :
39  public Euler3DTransform<TScalarType>
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
53 
55  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
56  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
57  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
58  itkStaticConstMacro(ParametersDimension, unsigned int, 9);
60 
61  typedef typename Superclass::ParametersType ParametersType;
62  typedef typename Superclass::ParametersValueType ParametersValueType;
63  typedef typename Superclass::JacobianType JacobianType;
64  typedef typename Superclass::ScalarType ScalarType;
65  typedef typename Superclass::InputVectorType InputVectorType;
66  typedef typename Superclass::OutputVectorType OutputVectorType;
67  typedef typename Superclass::InputCovariantVectorType
69  typedef typename Superclass::OutputCovariantVectorType
71 
72  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
73  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
74  typedef typename Superclass::InputPointType InputPointType;
75  typedef typename Superclass::OutputPointType OutputPointType;
76  typedef typename Superclass::MatrixType MatrixType;
77  typedef typename Superclass::InverseMatrixType InverseMatrixType;
78  typedef typename Superclass::CenterType CenterType;
79  typedef typename Superclass::TranslationType TranslationType;
80  typedef typename Superclass::TranslationValueType TranslationValueType;
81  typedef typename Superclass::OffsetType OffsetType;
82 
85  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
86  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
87 
94  void SetParameters(const ParametersType & parameters);
95 
102  const ParametersType & GetParameters(void) const;
103 
108  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
109 
111  bool GetInverse(Self *inverse) const;
112 
114  virtual InverseTransformBasePointer GetInverseTransform() const;
115 
116 protected:
118  CenteredEuler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
119  CenteredEuler3DTransform(unsigned int ParametersDimension);
121 
125  void PrintSelf(std::ostream & os, Indent indent) const;
126 
127 private:
128  CenteredEuler3DTransform(const Self &); // purposely not implemented
129  void operator=(const Self &); // purposely not implemented
130 
131 }; // class CenteredEuler3DTransform
132 } // namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkCenteredEuler3DTransform.hxx"
136 #endif
137 
138 #endif /* __itkCenteredEuler3DTransform_h */
139