ITK  4.8.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 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 
69 
79 
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();
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 */
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::MatrixType MatrixType
Light weight base class for most itk classes.
const ParametersType & GetParameters(void) const override
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
void SetParameters(const ParametersType &parameters) override
Superclass::JacobianType JacobianType
Superclass::JacobianType JacobianType
Superclass::ParametersType ParametersType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputVectorType InputVectorType
Superclass::OutputVectorType OutputVectorType
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
static const unsigned int ParametersDimension
Superclass::InputPointValueType InputPointValueType
static const unsigned int SpaceDimension
Superclass::OutputPointType OutputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::MatrixValueType MatrixValueType
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::OffsetType OffsetType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Affine transformation with a specified center of rotation.
Superclass::FixedParametersType FixedParametersType
Superclass::OutputPointType OutputPointType
Superclass::OutputVectorValueType OutputVectorValueType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::ScalarType ScalarType
Superclass::ParametersType ParametersType
Superclass::InputVectorType InputVectorType
Superclass::InputPointType InputPointType
Superclass::InputPointType InputPointType
virtual InverseTransformBasePointer GetInverseTransform() const override
Superclass::InverseTransformBaseType InverseTransformBaseType
bool GetInverse(Self *inverse) const