18 #ifndef itkTranslationTransform_h
19 #define itkTranslationTransform_h
42 template <
typename TParametersValueType =
double,
unsigned int VDimension = 3>
61 static constexpr
unsigned int SpaceDimension = VDimension;
62 static constexpr
unsigned int ParametersDimension = VDimension;
68 using typename Superclass::FixedParametersType;
69 using typename Superclass::ParametersType;
77 using typename Superclass::NumberOfParametersType;
101 using typename Superclass::TransformCategoryEnum;
114 SetParameters(
const ParametersType & parameters)
override;
117 const ParametersType &
118 GetParameters()
const override;
132 Compose(
const Self * other,
bool pre =
false);
139 Translate(
const OutputVectorType & offset,
bool pre =
false);
146 TransformPoint(
const InputPointType &
point)
const override;
148 using Superclass::TransformVector;
150 TransformVector(
const InputVectorType & vect)
const override;
153 TransformVector(
const InputVnlVectorType & vect)
const override;
155 using Superclass::TransformCovariantVector;
156 OutputCovariantVectorType
157 TransformCovariantVector(
const InputCovariantVectorType & vect)
const override;
162 inline InputPointType
163 BackTransform(
const OutputPointType &
point)
const;
165 inline InputVectorType
166 BackTransform(
const OutputVectorType & vect)
const;
168 inline InputVnlVectorType
169 BackTransform(
const OutputVnlVectorType & vect)
const;
171 inline InputCovariantVectorType
172 BackTransform(
const OutputCovariantVectorType & vect)
const;
179 GetInverse(
Self * inverse)
const;
182 InverseTransformBasePointer
183 GetInverseTransform()
const override;
187 ComputeJacobianWithRespectToParameters(
const InputPointType &
point, JacobianType & jacobian)
const override;
195 ComputeJacobianWithRespectToPosition(
const InputPointType & x, JacobianPositionType & jac)
const override;
196 using Superclass::ComputeJacobianWithRespectToPosition;
203 NumberOfParametersType
223 TransformCategoryEnum
226 return Self::TransformCategoryEnum::Linear;
239 const FixedParametersType &
242 this->m_FixedParameters.SetSize(0);
243 return this->m_FixedParameters;
252 PrintSelf(std::ostream & os,
Indent indent)
const override;
255 JacobianType m_IdentityJacobian{};
260 template <
typename TParametersValueType,
unsigned int VDimension>
265 return point - m_Offset;
269 template <
typename TParametersValueType,
unsigned int VDimension>
278 template <
typename TParametersValueType,
unsigned int VDimension>
287 template <
typename TParametersValueType,
unsigned int VDimension>
297 #ifndef ITK_MANUAL_INSTANTIATION
298 # include "itkTranslationTransform.hxx"