ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkCenteredAffineTransform.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 itkCenteredAffineTransform_h
19 #define itkCenteredAffineTransform_h
20 
21 #include "itkAffineTransform.h"
22 
23 namespace itk
24 {
33 template<typename TParametersValueType=double,
34  unsigned int NDimensions = 3>
35 class ITK_TEMPLATE_EXPORT CenteredAffineTransform : public AffineTransform<TParametersValueType,
36  NDimensions>
37 {
38 public:
41  typedef AffineTransform<TParametersValueType,
42  NDimensions > Superclass;
45 
48 
50  itkNewMacro(Self);
51 
53  itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
54  itkStaticConstMacro( ParametersDimension, unsigned int,
55  NDimensions * ( NDimensions + 2 ) );
57 
59  typedef typename Superclass::ParametersType ParametersType;
60  typedef typename Superclass::ParametersValueType ParametersValueType;
61  typedef typename Superclass::FixedParametersType FixedParametersType;
62  typedef typename Superclass::FixedParametersValueType FixedParametersValueType;
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 InputCovariantVectorType;
68  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
69 
70  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
71  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
72  typedef typename Superclass::InputPointType InputPointType;
73  typedef typename Superclass::InputPointValueType InputPointValueType;
74  typedef typename Superclass::OutputVectorValueType OutputVectorValueType;
75  typedef typename Superclass::OutputPointType OutputPointType;
76  typedef typename Superclass::MatrixType MatrixType;
77  typedef typename Superclass::MatrixValueType MatrixValueType;
78  typedef typename Superclass::OffsetType OffsetType;
79 
82  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
83  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
84 
93  void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
94 
95  const ParametersType & GetParameters(void) const ITK_OVERRIDE;
96 
103  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
104 
106  bool GetInverse(Self *inverse) const;
107 
109  virtual InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE;
110 
111 protected:
114 
116  virtual ~CenteredAffineTransform() ITK_OVERRIDE;
117 
118 private:
119  CenteredAffineTransform(const Self & other);
120  const Self & operator=(const Self &);
121 
122 }; // class CenteredAffineTransform
123 } // namespace itk
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkCenteredAffineTransform.hxx"
127 #endif
128 
129 #endif /* itkCenteredAffineTransform_h */
Light weight base class for most itk classes.
Superclass::JacobianType JacobianType
Superclass::JacobianType JacobianType
Superclass::ParametersType ParametersType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::ParametersValueType ParametersValueType
SmartPointer< const Self > ConstPointer
Superclass::InputVnlVectorType InputVnlVectorType
AffineTransform< TParametersValueType, NDimensions > Superclass
Superclass::FixedParametersType FixedParametersType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::FixedParametersValueType FixedParametersValueType
Superclass::InputPointValueType InputPointValueType
Superclass::OutputPointType OutputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::MatrixValueType MatrixValueType
Superclass::InverseTransformBaseType InverseTransformBaseType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Affine transformation with a specified center of rotation.
Superclass::OutputVectorValueType OutputVectorValueType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::ParametersType ParametersType
Superclass::InputVectorType InputVectorType
Superclass::InputPointType InputPointType
Superclass::InputPointType InputPointType