ITK
6.0.0
Insight Toolkit
|
#include <itkRigid2DTransform.h>
Rigid2DTransform of a vector space (e.g. space coordinates)
This transform applies a rigid transformation in 2D space. The transform is specified as a rotation around a arbitrary center and is followed by a translation.
The parameters for this transform can be set either using individual Set methods or in serialized form using SetParameters() and SetFixedParameters().
The serialization of the optimizable parameters is an array of 3 elements ordered as follows: p[0] = angle p[1] = x component of the translation p[2] = y component of the translation
The serialization of the fixed parameters is an array of 2 elements ordered as follows: p[0] = x coordinate of the center p[1] = y coordinate of the center
Access methods for the center, translation and underlying matrix offset vectors are documented in the superclass MatrixOffsetTransformBase.
Definition at line 56 of file itkRigid2DTransform.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::MatrixOffsetTransformBase< double, 2, 2 > | |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | InputSpaceDimension = 2 |
static constexpr unsigned int | OutputSpaceDimension = 2 |
static constexpr unsigned int | ParametersDimension = 3 |
Static Public Attributes inherited from itk::MatrixOffsetTransformBase< double, 2, 2 > | |
static constexpr unsigned int | InputSpaceDimension |
static constexpr unsigned int | OutputSpaceDimension |
static constexpr unsigned int | ParametersDimension |
Static Public Attributes inherited from itk::Transform< double, VInputDimension, VOutputDimension > | |
static constexpr unsigned int | InputSpaceDimension |
static constexpr unsigned int | OutputSpaceDimension |
Static Public Attributes inherited from TransformBaseTemplate< double > | |
static constexpr TransformCategoryEnum | BSpline |
static constexpr TransformCategoryEnum | DisplacementField |
static constexpr TransformCategoryEnum | Linear |
static constexpr TransformCategoryEnum | Spline |
static constexpr TransformCategoryEnum | UnknownTransformCategory |
static constexpr TransformCategoryEnum | VelocityField |
Private Attributes | |
TParametersValueType | m_Angle {} |
Additional Inherited Members | |
Public Attributes inherited from itk::Transform< double, VInputDimension, VOutputDimension > | |
InverseJacobianPositionType &jacobian | const |
Static Protected Member Functions inherited from itk::Transform< double, VInputDimension, VOutputDimension > | |
static InverseTransformBasePointer | InvertTransform (const TTransform &transform) |
Protected Attributes inherited from itk::Transform< double, VInputDimension, VOutputDimension > | |
FixedParametersType | m_FixedParameters |
ParametersType | m_Parameters |
using itk::Rigid2DTransform< TParametersValueType >::ConstPointer = SmartPointer<const Self> |
Definition at line 65 of file itkRigid2DTransform.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::InputCovariantVectorType = CovariantVector<TParametersValueType, Self::InputSpaceDimension> |
Standard covariant vector type for this class
Definition at line 153 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::InputPointType = Point<TParametersValueType, Self::InputSpaceDimension> |
Standard coordinate point type for this class
Definition at line 174 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::InputVectorType = Vector<TParametersValueType, Self::InputSpaceDimension> |
Standard vector type for this class
Definition at line 148 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::InputVnlVectorType = vnl_vector_fixed<TParametersValueType, Self::InputSpaceDimension> |
Standard vnl_vector type for this class
Definition at line 170 of file itkMatrixOffsetTransformBase.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::InverseJacobianPositionType = vnl_matrix_fixed<ParametersValueType, VInputDimension, VOutputDimension> |
Definition at line 139 of file itkTransform.h.
using itk::Rigid2DTransform< TParametersValueType >::InverseTransformBasePointer = typename InverseTransformBaseType::Pointer |
Definition at line 120 of file itkRigid2DTransform.h.
using itk::Rigid2DTransform< TParametersValueType >::InverseTransformBaseType = typename Superclass::InverseTransformBaseType |
Base inverse transform type. This type should not be changed to the concrete inverse transform type or inheritance would be lost.
Definition at line 119 of file itkRigid2DTransform.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::JacobianPositionType = vnl_matrix_fixed<ParametersValueType, VOutputDimension, VInputDimension> |
Definition at line 138 of file itkTransform.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::JacobianType = Array2D<ParametersValueType> |
Type of the Jacobian matrix.
Definition at line 137 of file itkTransform.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::MatrixType = Matrix<TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension> |
Standard matrix type for this class
Definition at line 180 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::MatrixValueType = typename MatrixType::ValueType |
Definition at line 181 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::OffsetType = OutputVectorType |
Definition at line 188 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::OffsetValueType = typename OffsetType::ValueType |
Definition at line 189 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::OutputCovariantVectorType = CovariantVector<TParametersValueType, Self::OutputSpaceDimension> |
Definition at line 154 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::OutputPointType = Point<TParametersValueType, Self::OutputSpaceDimension> |
Definition at line 176 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::OutputVectorType = Vector<TParametersValueType, Self::OutputSpaceDimension> |
Definition at line 149 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::OutputVectorValueType = typename OutputVectorType::ValueType |
Definition at line 150 of file itkMatrixOffsetTransformBase.h.
using itk::MatrixOffsetTransformBase< TParametersValueType, VInputDimension, VOutputDimension >::OutputVnlVectorType = vnl_vector_fixed<TParametersValueType, Self::OutputSpaceDimension> |
Definition at line 171 of file itkMatrixOffsetTransformBase.h.
using itk::Rigid2DTransform< TParametersValueType >::Pointer = SmartPointer<Self> |
Definition at line 64 of file itkRigid2DTransform.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::ScalarType = ParametersValueType |
Type of the scalar representing coordinate and vector elements.
Definition at line 145 of file itkTransform.h.
using itk::Rigid2DTransform< TParametersValueType >::Self = Rigid2DTransform |
Standard class type aliases.
Definition at line 62 of file itkRigid2DTransform.h.
using itk::Rigid2DTransform< TParametersValueType >::Superclass = MatrixOffsetTransformBase<TParametersValueType, 2, 2> |
Definition at line 63 of file itkRigid2DTransform.h.
|
protected |
|
protected |
|
protected |
|
overrideprotecteddefault |
|
inline |
Definition at line 331 of file itkRigid2DTransform.h.
|
inline |
Back transform by an rigid transformation.
The BackTransform() methods are slated to be removed from ITK. Instead, please use GetInverse() or CloneInverseTo() to generate an inverse transform and then perform the transform using that inverted transform.
Definition at line 301 of file itkRigid2DTransform.h.
References itk::point().
|
inline |
Definition at line 311 of file itkRigid2DTransform.h.
|
inline |
Definition at line 321 of file itkRigid2DTransform.h.
void itk::Rigid2DTransform< TParametersValueType >::CloneInverseTo | ( | Pointer & | result | ) | const |
This method creates and returns a new Rigid2DTransform object which is the inverse of self.
void itk::Rigid2DTransform< TParametersValueType >::CloneTo | ( | Pointer & | result | ) | const |
This method creates and returns a new Rigid2DTransform object which has the same parameters.
|
override |
Compute the Jacobian Matrix of the transformation at one point, allowing for thread-safety.
|
overrideprotectedvirtual |
Compute the matrix from angle. This is used in Set methods to update the underlying matrix whenever a transform parameter is changed.
Reimplemented from itk::MatrixOffsetTransformBase< double, 2, 2 >.
Reimplemented in itk::Similarity2DTransform< double >.
|
overrideprotectedvirtual |
Compute the angle from the matrix. This is used to compute transform parameters from a given matrix. This is used in MatrixOffsetTransformBase::Compose() and MatrixOffsetTransformBase::GetInverse().
Reimplemented from itk::MatrixOffsetTransformBase< double, 2, 2 >.
Reimplemented in itk::Similarity2DTransform< double >.
|
virtual |
bool itk::Rigid2DTransform< TParametersValueType >::GetInverse | ( | Self * | inverse | ) | const |
Get an inverse of this transform.
|
overridevirtual |
Return an inverse of this transform.
Reimplemented from itk::Transform< double, VInputDimension, VOutputDimension >.
Reimplemented in itk::Similarity2DTransform< double >.
|
override |
|
overridevirtual |
Get the parameters that uniquely define the transform This is typically used by optimizers. There are 3 parameters. The first one represents the angle or rotation in radians and the last two represents the translation. The center of rotation is fixed.
Implements TransformBaseTemplate< double >.
Reimplemented in itk::Similarity2DTransform< double >.
|
inlinevirtual |
Set/Get the angle of rotation in radians. These methods are old and are retained for backward compatibility. Instead, use SetAngle() and GetAngle().
Definition at line 201 of file itkRigid2DTransform.h.
|
static |
New macro for creation of through a Smart Pointer
|
overrideprotected |
Print contents of an Rigid2DTransform
void itk::Rigid2DTransform< TParametersValueType >::SetAngle | ( | TParametersValueType | angle | ) |
Set/Get the angle of rotation in radians
void itk::Rigid2DTransform< TParametersValueType >::SetAngleInDegrees | ( | TParametersValueType | angle | ) |
Set the angle of rotation in degrees.
|
overridevirtual |
Reset the parameters to create and identity transform.
Reimplemented from itk::MatrixOffsetTransformBase< double, 2, 2 >.
Reimplemented in itk::Similarity2DTransform< double >.
|
override |
Set the rotation Matrix of a Rigid2D Transform
This method sets the 2x2 matrix representing the rotation in the transform. The Matrix is expected to be orthogonal with a certain tolerance.
Reimplemented in itk::Similarity2DTransform< double >.
|
virtual |
Set the rotation Matrix of a Rigid2D Transform
This method sets the 2x2 matrix representing the rotation in the transform. The Matrix is expected to be orthogonal with a certain tolerance.
Reimplemented in itk::Similarity2DTransform< double >.
|
overridevirtual |
Set the transformation from a container of parameters This is typically used by optimizers. There are 3 parameters. The first one represents the angle of rotation in radians and the last two represents the translation. The center of rotation is fixed.
Implements itk::Transform< double, VInputDimension, VOutputDimension >.
Reimplemented in itk::Similarity2DTransform< double >.
|
inline |
Set/Get the angle of rotation in radians. These methods are old and are retained for backward compatibility. Instead, use SetAngle() and GetAngle().
Definition at line 196 of file itkRigid2DTransform.h.
|
inlineprotected |
Update angle without recomputation of other internal variables.
Definition at line 288 of file itkRigid2DTransform.h.
void itk::Rigid2DTransform< TParametersValueType >::Translate | ( | const OffsetType & | offset, |
bool | pre = false |
||
) |
Compose the transformation with a translation
This method modifies self to include a translation of the origin. The translation is precomposed with self if pre is true, and postcomposed otherwise.
|
staticconstexpr |
Dimension of the space.
Definition at line 74 of file itkRigid2DTransform.h.
|
private |
Definition at line 294 of file itkRigid2DTransform.h.
|
staticconstexpr |
Definition at line 75 of file itkRigid2DTransform.h.
|
staticconstexpr |
Definition at line 76 of file itkRigid2DTransform.h.