18 #ifndef itkTranslationTransform_h
19 #define itkTranslationTransform_h
42 template <
typename TParametersValueType =
double,
unsigned int NDimensions = 3>
61 static constexpr
unsigned int SpaceDimension = NDimensions;
62 static constexpr
unsigned int ParametersDimension = NDimensions;
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;
260 template <
typename TParametersValueType,
unsigned int NDimensions>
264 return point - m_Offset;
268 template <
typename TParametersValueType,
unsigned int NDimensions>
276 template <
typename TParametersValueType,
unsigned int NDimensions>
284 template <
typename TParametersValueType,
unsigned int NDimensions>
293 #ifndef ITK_MANUAL_INSTANTIATION
294 # include "itkTranslationTransform.hxx"