18 #ifndef itkRigid2DTransform_h
19 #define itkRigid2DTransform_h
55 template<
typename TParametersValueType=
double>
75 static constexpr
unsigned int InputSpaceDimension = 2;
76 static constexpr
unsigned int OutputSpaceDimension = 2;
77 static constexpr
unsigned int ParametersDimension = 3;
135 void SetMatrix(
const MatrixType & matrix)
override;
149 virtual void SetMatrix(
const MatrixType & matrix,
const TParametersValueType tolerance);
158 void Translate(
const OffsetType & offset,
bool pre =
false);
177 void SetAngle(TParametersValueType angle);
179 itkGetConstReferenceMacro(Angle, TParametersValueType);
182 void SetAngleInDegrees(TParametersValueType angle);
189 this->SetAngle(angle);
205 void SetParameters(
const ParametersType & parameters)
override;
215 const ParametersType & GetParameters()
const override;
219 void ComputeJacobianWithRespectToParameters(
const InputPointType & p, JacobianType & jacobian)
const override;
225 void CloneInverseTo(Pointer & newinverse)
const;
228 bool GetInverse(Self *inverse)
const;
231 InverseTransformBasePointer GetInverseTransform()
const override;
237 void CloneTo(Pointer & clone)
const;
240 void SetIdentity()
override;
243 Rigid2DTransform(
unsigned int outputSpaceDimension,
unsigned int parametersDimension);
252 void PrintSelf(std::ostream & os,
Indent indent)
const override;
257 void ComputeMatrix()
override;
263 void ComputeMatrixParameters()
override;
277 template<
typename TParametersValueType>
284 "BackTransform(): This method is slated to be removed from ITK. Instead, please use GetInverse() to generate an inverse transform and then perform the transform using that inverted transform."
286 return this->GetInverseMatrix() * ( point - this->GetOffset() );
290 template<
typename TParametersValueType>
297 "BackTransform(): This method is slated to be removed from ITK. Instead, please use GetInverse() to generate an inverse transform and then perform the transform using that inverted transform."
299 return this->GetInverseMatrix() * vect;
303 template<
typename TParametersValueType>
310 "BackTransform(): This method is slated to be removed from ITK. Instead, please use GetInverse() to generate an inverse transform and then perform the transform using that inverted transform."
312 return this->GetInverseMatrix() * vect;
316 template<
typename TParametersValueType>
323 "BackTransform(): This method is slated to be removed from ITK. Instead, please use GetInverse() to generate an inverse transform and then perform the transform using that inverted transform."
325 return this->GetMatrix() * vect;
330 #ifndef ITK_MANUAL_INSTANTIATION
331 #include "itkRigid2DTransform.hxx"
Light weight base class for most itk classes.
Control indentation during Print() invocation.
signed long OffsetValueType