ITK  4.6.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  typename TScalar = double, // Data type for scalars
35  unsigned int NDimensions = 3>
36 // Number of dimensions in the input space
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 
70 
80 
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 
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 */
Superclass::InputVnlVectorType InputVnlVectorType
SmartPointer< const Self > ConstPointer
static const unsigned int SpaceDimension
Superclass::ParametersType ParametersType
Light weight base class for most itk classes.
Superclass::ScalarType ScalarType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::OutputCovariantVectorType OutputCovariantVectorType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::ParametersType ParametersType
Superclass::OutputPointType OutputPointType
Superclass::JacobianType JacobianType
Superclass::InputVectorType InputVectorType
Superclass::InputVectorType InputVectorType
Superclass::ParametersValueType ParametersValueType
const ParametersType & GetParameters(void) const
Superclass::InputPointType InputPointType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::JacobianType JacobianType
Superclass::InputCovariantVectorType InputCovariantVectorType
bool GetInverse(Self *inverse) const
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::InputPointType InputPointType
Superclass::InputCovariantVectorType InputCovariantVectorType
static const unsigned int ParametersDimension
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OffsetType OffsetType
Superclass::InverseTransformBaseType InverseTransformBaseType
Superclass::OutputVectorValueType OutputVectorValueType
Superclass::OutputVectorType OutputVectorType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const
Affine transformation with a specified center of rotation.
const Self & operator=(const Self &)
virtual InverseTransformBasePointer GetInverseTransform() const
Superclass::OutputPointType OutputPointType
Superclass::MatrixValueType MatrixValueType
Superclass::MatrixType MatrixType
AffineTransform< TScalar, NDimensions > Superclass
Superclass::OutputVectorType OutputVectorType
void SetParameters(const ParametersType &parameters)
Superclass::InputPointValueType InputPointValueType