18 #ifndef itkTranslationTransform_h
19 #define itkTranslationTransform_h
43 template<
typename TParametersValueType=double,
44 unsigned int NDimensions = 3>
46 public Transform<TParametersValueType, NDimensions, NDimensions>
62 itkStaticConstMacro(SpaceDimension,
unsigned int, NDimensions);
63 itkStaticConstMacro(ParametersDimension,
unsigned int, NDimensions);
112 virtual void SetParameters(
const ParametersType & parameters) ITK_OVERRIDE;
115 virtual const ParametersType & GetParameters() const ITK_OVERRIDE;
122 m_Offset = offset;
return;
126 void Compose(
const Self *other,
bool pre = 0);
132 void Translate(
const OutputVectorType & offset,
bool pre = 0);
138 OutputPointType TransformPoint(
const InputPointType & point)
const ITK_OVERRIDE;
140 using Superclass::TransformVector;
141 OutputVectorType TransformVector(
const InputVectorType & vector)
const ITK_OVERRIDE;
143 OutputVnlVectorType TransformVector(
const InputVnlVectorType & vector)
const ITK_OVERRIDE;
145 using Superclass::TransformCovariantVector;
146 OutputCovariantVectorType TransformCovariantVector(
const InputCovariantVectorType & vector)
const ITK_OVERRIDE;
151 inline InputPointType BackTransform(
const OutputPointType & point)
const;
153 inline InputVectorType BackTransform(
const OutputVectorType & vector)
const;
155 inline InputVnlVectorType BackTransform(
const OutputVnlVectorType & vector)
const;
157 inline InputCovariantVectorType BackTransform(
const OutputCovariantVectorType & vector)
const;
163 bool GetInverse(Self *inverse)
const;
166 virtual InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE;
169 virtual
void ComputeJacobianWithRespectToParameters(const InputPointType & point, JacobianType & j) const ITK_OVERRIDE;
175 virtual
void ComputeJacobianWithRespectToPosition(const InputPointType & x, JacobianType & jac) const ITK_OVERRIDE;
216 this->m_FixedParameters.
SetSize(0);
217 return this->m_FixedParameters;
225 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
235 template<typename TParametersValueType,
unsigned int NDimensions>
237 typename TranslationTransform<TParametersValueType, NDimensions>::
InputPointType
238 TranslationTransform<TParametersValueType, NDimensions>::BackTransform(const
OutputPointType & point)
const
240 return point - m_Offset;
244 template<
typename TParametersValueType,
unsigned int NDimensions>
253 template<
typename TParametersValueType,
unsigned int NDimensions>
262 template<
typename TParametersValueType,
unsigned int NDimensions>
272 #ifndef ITK_MANUAL_INSTANTIATION
273 #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.