go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAffineDTI2DTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
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 __itkAffineDTI2DTransform_h
19 #define __itkAffineDTI2DTransform_h
20 
21 #include <iostream>
23 
24 namespace itk
25 {
26 
62 template< class TScalarType = double >
63 // Data type for scalars (float or double)
65  public AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >
66 {
67 public:
68 
72  typedef SmartPointer< Self > Pointer;
73  typedef SmartPointer< const Self > ConstPointer;
74 
76  itkNewMacro( Self );
77 
80 
82  itkStaticConstMacro( SpaceDimension, unsigned int, 2 );
83  itkStaticConstMacro( InputSpaceDimension, unsigned int, 2 );
84  itkStaticConstMacro( OutputSpaceDimension, unsigned int, 2 );
85  itkStaticConstMacro( ParametersDimension, unsigned int, 7 );
86 
105 
106  typedef typename Superclass
109  typedef typename Superclass
112  typedef typename Superclass
115 
116  typedef FixedArray< ScalarType > ScalarArrayType;
117 
123  void SetParameters( const ParametersType & parameters ) override;
124 
125  const ParametersType & GetParameters( void ) const override;
126 
129  const InputPointType &,
130  JacobianType &,
131  NonZeroJacobianIndicesType & ) const override;
132 
133  void SetIdentity( void ) override;
134 
135 protected:
136 
139  const OutputPointType & offset );
140  AffineDTI2DTransform( unsigned int outputSpaceDims,
141  unsigned int paramsSpaceDims );
142 
144 
145  void PrintSelf( std::ostream & os, Indent indent ) const override;
146 
149  ScalarArrayType angle,
150  ScalarArrayType shear,
151  ScalarArrayType scale );
152 
154  void ComputeMatrix( void ) override;
155 
156  void ComputeMatrixParameters( void ) override;
157 
160 
161 private:
162 
163  AffineDTI2DTransform( const Self & ); // purposely not implemented
164  void operator=( const Self & ); // purposely not implemented
165 
169 
170 };
171 
172 } // namespace itk
173 
174 #ifndef ITK_MANUAL_INSTANTIATION
175 #include "itkAffineDTI2DTransform.hxx"
176 #endif
177 
178 #endif /* __itkAffineDTI2DTransform_h */
Matrix< TScalarType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension) > InverseMatrixType
Superclass ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Superclass ::OutputCovariantVectorType OutputCovariantVectorType
Superclass ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass ::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Matrix< TScalarType, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension) > MatrixType
Superclass ::InputCovariantVectorType InputCovariantVectorType
Transform maps points, vectors and covariant vectors from an input space to an output space.
Superclass::ParametersType ParametersType
Superclass::OutputPointType OutputPointType
Superclass::JacobianType JacobianType
Superclass::InputPointType InputPointType
std::vector< unsigned long > NonZeroJacobianIndicesType
Superclass::InputVectorType InputVectorType
Superclass ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
AffineDTI2DTransform(const MatrixType &matrix, const OutputPointType &offset)
Superclass::ScalarType ScalarType
Superclass::OutputPointType OutputPointType
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2)
Superclass::ParametersType ParametersType
void SetVarAngleScaleShear(ScalarArrayType angle, ScalarArrayType shear, ScalarArrayType scale)
Superclass ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Superclass::TranslationType TranslationType
SmartPointer< const Self > ConstPointer
void SetIdentity(void) override
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OffsetType OffsetType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::SpatialHessianType SpatialHessianType
virtual void PrecomputeJacobianOfSpatialJacobian(void)
Superclass::CenterType CenterType
void operator=(const Self &)
Superclass::SpatialJacobianType SpatialJacobianType
FixedArray< ScalarType > ScalarArrayType
AffineDTI2DTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims)
AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 > Superclass
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
void SetParameters(const ParametersType &parameters) override
Superclass::InternalMatrixType InternalMatrixType
AffineDTI2DTransform(const Self &)
Superclass::InputPointType InputPointType
Superclass ::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::JacobianType JacobianType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::ScalarType AngleType
itkStaticConstMacro(ParametersDimension, unsigned int, 7)
Superclass::MatrixType MatrixType
void ComputeMatrix(void) override
const ParametersType & GetParameters(void) const override
Superclass::InverseMatrixType InverseMatrixType
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::OutputVectorType OutputVectorType
itkStaticConstMacro(SpaceDimension, unsigned int, 2)
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2)
void ComputeMatrixParameters(void) override


Generated on 1667476801 for elastix by doxygen 1.9.1 elastix logo