18 #ifndef itkTranslationTransform_h
19 #define itkTranslationTransform_h
43 template<
typename TParametersValueType=double,
44 unsigned int NDimensions = 3>
46 public Transform<TParametersValueType, NDimensions, NDimensions>
64 static constexpr
unsigned int SpaceDimension = NDimensions;
65 static constexpr
unsigned int ParametersDimension = NDimensions;
115 void SetParameters(
const ParametersType & parameters)
override;
118 const ParametersType & GetParameters()
const override;
125 m_Offset = offset;
return;
129 void Compose(
const Self *other,
bool pre =
false);
135 void Translate(
const OutputVectorType & offset,
bool pre =
false);
141 OutputPointType TransformPoint(
const InputPointType & point)
const override;
143 using Superclass::TransformVector;
144 OutputVectorType TransformVector(
const InputVectorType & vector)
const override;
146 OutputVnlVectorType TransformVector(
const InputVnlVectorType & vector)
const override;
148 using Superclass::TransformCovariantVector;
149 OutputCovariantVectorType TransformCovariantVector(
const InputCovariantVectorType & vector)
const override;
154 inline InputPointType BackTransform(
const OutputPointType & point)
const;
156 inline InputVectorType BackTransform(
const OutputVectorType & vector)
const;
158 inline InputVnlVectorType BackTransform(
const OutputVnlVectorType & vector)
const;
160 inline InputCovariantVectorType BackTransform(
const OutputCovariantVectorType & vector)
const;
166 bool GetInverse(Self *inverse)
const;
169 InverseTransformBasePointer GetInverseTransform()
const override;
172 void ComputeJacobianWithRespectToParameters(
const InputPointType & point, JacobianType & j)
const override;
179 void ComputeJacobianWithRespectToPosition(
const InputPointType & x, JacobianPositionType & jac)
const override;
180 using Superclass::ComputeJacobianWithRespectToPosition;
221 this->m_FixedParameters.
SetSize(0);
222 return this->m_FixedParameters;
230 void PrintSelf(std::ostream & os,
Indent indent)
const override;
238 template<
typename TParametersValueType,
unsigned int NDimensions>
243 return point - m_Offset;
247 template<
typename TParametersValueType,
unsigned int NDimensions>
256 template<
typename TParametersValueType,
unsigned int NDimensions>
265 template<
typename TParametersValueType,
unsigned int NDimensions>
275 #ifndef ITK_MANUAL_INSTANTIATION
276 #include "itkTranslationTransform.hxx"
Light weight base class for most itk classes.
void SetSize(SizeValueType sz)
Class to hold and manage different parameter types used during optimization.
Control indentation during Print() invocation.
A templated class holding a geometric point in n-Dimensional space.
A templated class holding a n-Dimensional covariant vector.