ITK  4.4.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 <
34  class TScalarType = double, // Data type for scalars
35  unsigned int NDimensions = 3>
36 // Number of dimensions in the input space
37 class ITK_EXPORT CenteredAffineTransform : public AffineTransform<TScalarType,
38  NDimensions>
39 {
40 public:
46 
49 
51  itkNewMacro(Self);
52 
54  itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
55  itkStaticConstMacro( ParametersDimension, unsigned int,
56  NDimensions * ( NDimensions + 2 ) );
58 
60  typedef typename Superclass::ParametersType ParametersType;
61  typedef typename Superclass::ParametersValueType ParametersValueType;
62  typedef typename Superclass::JacobianType JacobianType;
63  typedef typename Superclass::ScalarType ScalarType;
64  typedef typename Superclass::InputVectorType InputVectorType;
65  typedef typename Superclass::OutputVectorType OutputVectorType;
66  typedef typename Superclass::InputCovariantVectorType
68  typedef typename Superclass::OutputCovariantVectorType
70 
71  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
72  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
73  typedef typename Superclass::InputPointType InputPointType;
74  typedef typename Superclass::InputPointValueType InputPointValueType;
75  typedef typename Superclass::OutputVectorValueType OutputVectorValueType;
76  typedef typename Superclass::OutputPointType OutputPointType;
77  typedef typename Superclass::MatrixType MatrixType;
78  typedef typename Superclass::MatrixValueType MatrixValueType;
79  typedef typename Superclass::OffsetType OffsetType;
80 
83  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
84  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
85 
94  void SetParameters(const ParametersType & parameters);
95 
96  const ParametersType & GetParameters(void) const;
97 
104  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
105 
107  bool GetInverse(Self *inverse) const;
108 
110  virtual InverseTransformBasePointer GetInverseTransform() const;
111 
112 protected:
115 
117  virtual ~CenteredAffineTransform();
118 
119 private:
120  CenteredAffineTransform(const Self & other);
121  const Self & operator=(const Self &);
122 
123 }; // class CenteredAffineTransform
124 } // namespace itk
125 
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkCenteredAffineTransform.hxx"
128 #endif
129 
130 #endif /* __itkCenteredAffineTransform_h */
131