18 #ifndef itkRigid2DTransform_h
19 #define itkRigid2DTransform_h
55 template<
typename TParametersValueType=
double>
73 itkStaticConstMacro(InputSpaceDimension,
unsigned int, 2);
74 itkStaticConstMacro(OutputSpaceDimension,
unsigned int, 2);
75 itkStaticConstMacro(ParametersDimension,
unsigned int, 3);
132 virtual void SetMatrix(
const MatrixType & matrix) ITK_OVERRIDE;
146 virtual void SetMatrix(
const MatrixType & matrix,
const TParametersValueType tolerance);
155 void Translate(
const OffsetType & offset,
bool pre =
false);
174 void SetAngle(TParametersValueType angle);
176 itkGetConstReferenceMacro(Angle, TParametersValueType);
179 void SetAngleInDegrees(TParametersValueType angle);
186 this->SetAngle(angle);
202 virtual void SetParameters(
const ParametersType & parameters) ITK_OVERRIDE;
212 virtual const ParametersType & GetParameters() const ITK_OVERRIDE;
216 virtual
void ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
222 void CloneInverseTo(Pointer & newinverse) const;
225 bool GetInverse(Self *inverse) const;
228 virtual InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE;
234 void CloneTo(Pointer & clone) const;
237 virtual
void SetIdentity() ITK_OVERRIDE;
239 #ifdef ITKV3_COMPATIBILITY
246 itkLegacyMacro(
virtual void SetRotationMatrix(
const MatrixType & matrix));
247 itkLegacyMacro(
const MatrixType & GetRotationMatrix()
const);
252 Rigid2DTransform(
unsigned int outputSpaceDimension,
unsigned int parametersDimension);
261 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
266 virtual
void ComputeMatrix() ITK_OVERRIDE;
272 virtual
void ComputeMatrixParameters() ITK_OVERRIDE;
275 void SetVarAngle(TParametersValueType angle)
288 template<
typename TParametersValueType>
295 "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."
297 return this->GetInverseMatrix() * ( point - this->GetOffset() );
301 template<
typename TParametersValueType>
308 "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."
310 return this->GetInverseMatrix() * vect;
314 template<
typename TParametersValueType>
321 "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."
323 return this->GetInverseMatrix() * vect;
327 template<
typename TParametersValueType>
334 "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."
336 return this->GetMatrix() * vect;
341 #ifndef ITK_MANUAL_INSTANTIATION
342 #include "itkRigid2DTransform.hxx"
Light weight base class for most itk classes.
signed long OffsetValueType
Control indentation during Print() invocation.