#include <itkTranslationTransform.h>
Translation transformation of a vector space (e.g. space coordinates)
The same functionality could be obtained by using the Affine transform, but with a large difference in performance.
Definition at line 43 of file itkTranslationTransform.h.
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
TranslationTransform () | |
~TranslationTransform () override=default | |
![]() | |
LightObject::Pointer | InternalClone () const override |
OutputDiffusionTensor3DType | PreservationOfPrincipalDirectionDiffusionTensor3DReorientation (const InputDiffusionTensor3DType &, const InverseJacobianPositionType &) const |
Transform ()=default | |
Transform (NumberOfParametersType numberOfParameters) | |
~Transform () override=default | |
![]() | |
TransformBaseTemplate ()=default | |
TransformBaseTemplate ()=default | |
~TransformBaseTemplate () override=default | |
~TransformBaseTemplate () override=default | |
Private Attributes | |
JacobianType | m_IdentityJacobian {} |
OutputVectorType | m_Offset {} |
Additional Inherited Members | |
![]() | |
static InverseTransformBasePointer | InvertTransform (const TTransform &transform) |
![]() | |
FixedParametersType | m_FixedParameters |
ParametersType | m_Parameters |
using itk::TranslationTransform< TParametersValueType, VDimension >::ConstPointer = SmartPointer<const Self> |
Definition at line 52 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::InputCovariantVectorType = CovariantVector<TParametersValueType, VDimension> |
Standard covariant vector type for this class.
Definition at line 84 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::InputPointType = Point<TParametersValueType, VDimension> |
Standard coordinate point type for this class.
Definition at line 92 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::InputVectorType = Vector<TParametersValueType, VDimension> |
Standard vector type for this class.
Definition at line 80 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::InputVnlVectorType = vnl_vector_fixed<TParametersValueType, VDimension> |
Standard vnl_vector type for this class.
Definition at line 88 of file itkTranslationTransform.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::InverseJacobianPositionType |
Definition at line 132 of file itkTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::InverseTransformBasePointer = typename InverseTransformBaseType::Pointer |
Definition at line 98 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::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 97 of file itkTranslationTransform.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::JacobianPositionType |
Definition at line 131 of file itkTransform.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::JacobianType |
Type of the Jacobian matrix.
Definition at line 130 of file itkTransform.h.
The number of parameters can potentially be very large, therefore we use here a large capacity integer.
using itk::TranslationTransform< TParametersValueType, VDimension >::OutputCovariantVectorType = CovariantVector<TParametersValueType, VDimension> |
Definition at line 85 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::OutputPointType = Point<TParametersValueType, VDimension> |
Definition at line 93 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::OutputVectorType = Vector<TParametersValueType, VDimension> |
Definition at line 81 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::OutputVnlVectorType = vnl_vector_fixed<TParametersValueType, VDimension> |
Definition at line 89 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::Pointer = SmartPointer<Self> |
Definition at line 51 of file itkTranslationTransform.h.
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::ScalarType |
Type of the scalar representing coordinate and vector elements.
Definition at line 127 of file itkTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::Self = TranslationTransform |
Standard class type aliases.
Definition at line 49 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, VDimension >::Superclass = Transform<TParametersValueType, VDimension, VDimension> |
Definition at line 50 of file itkTranslationTransform.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
inline |
Definition at line 289 of file itkTranslationTransform.h.
|
inline |
This method finds the point or vector that maps to a given point or vector under the affine transformation defined by self. If no such point exists, an exception is thrown.
Definition at line 262 of file itkTranslationTransform.h.
References m_Offset, and itk::point().
Referenced by TransformCovariantVector().
|
inline |
Definition at line 271 of file itkTranslationTransform.h.
|
inline |
Definition at line 280 of file itkTranslationTransform.h.
void itk::TranslationTransform< TParametersValueType, VDimension >::Compose | ( | const Self * | other, |
bool | pre = false ) |
Compose with another TranslationTransform.
|
override |
Compute the Jacobian Matrix of the transformation at one point
References itk::point().
|
override |
Get the jacobian with respect to position, which simply is an identity jacobian because the transform is position-invariant. jac will be resized as needed, but it will be more efficient if it is already properly sized.
References itk::Transform< TParametersValueType, VDimension, VDimension >::ComputeJacobianWithRespectToPosition().
|
inline |
This provides the ability to get a local jacobian value in a dense/local transform, e.g. DisplacementFieldTransform. For such transforms it would be unclear what parameters would refer to. Generally, global transforms should return an identity jacobian since there is no change with respect to position.
Definition at line 528 of file itkTransform.h.
virtual::itk::LightObject::Pointer itk::TranslationTransform< TParametersValueType, VDimension >::CreateAnother | ( | ) | const |
|
inlineoverridevirtual |
Get the Fixed Parameters. The TranslationTransform does not require Fixed parameters, therefore this method returns an parameters array of size zero.
Reimplemented from itk::Transform< double, 3, 3 >.
Definition at line 240 of file itkTranslationTransform.h.
References itk::Transform< double, 3, 3 >::m_FixedParameters.
bool itk::TranslationTransform< TParametersValueType, VDimension >::GetInverse | ( | Self * | inverse | ) | const |
Find inverse of an affine transformation. This method creates and returns a new TranslationTransform object which is the inverse of self. If self is not invertible, false is returned.
|
overridevirtual |
Return an inverse of this transform.
Reimplemented from itk::Transform< double, 3, 3 >.
|
override |
|
inlineoverridevirtual |
Return the number of parameters that completely define the Transform
Reimplemented from itk::Transform< double, 3, 3 >.
Definition at line 204 of file itkTranslationTransform.h.
|
inline |
This method returns the value of the offset of the TranslationTransform.
Definition at line 106 of file itkTranslationTransform.h.
References m_Offset.
|
overridevirtual |
Get the Transformation Parameters.
Reimplemented from itk::Transform< double, 3, 3 >.
|
inlineoverridevirtual |
Indicates the category transform. e.g. an affine transform, or a local one, e.g. a deformation field.
Reimplemented from itk::Transform< double, 3, 3 >.
Definition at line 224 of file itkTranslationTransform.h.
References TransformBaseTemplate< double >::Linear.
|
inlineoverridevirtual |
Indicates that this transform is linear. That is, given two points P and Q, and scalar coefficients a and b, then
\[ T( a*P + b*Q ) = a * T(P) + b * T(Q) \]
Reimplemented from itk::Transform< double, 3, 3 >.
Definition at line 215 of file itkTranslationTransform.h.
|
static |
New macro for creation of through the object factory.
|
overrideprotected |
Print contents of an TranslationTransform.
|
inlineoverridevirtual |
Set the fixed parameters and update internal transformation. The Translation Transform does not require fixed parameters, therefore the implementation of this method is a null operation.
Implements itk::Transform< double, 3, 3 >.
Definition at line 233 of file itkTranslationTransform.h.
void itk::TranslationTransform< TParametersValueType, VDimension >::SetIdentity | ( | ) |
Set the parameters to the IdentityTransform
|
inline |
Set offset of an Translation Transform. This method sets the offset of an TranslationTransform to a value specified by the user.
Definition at line 124 of file itkTranslationTransform.h.
References m_Offset.
|
overridevirtual |
This method sets the parameters for the transform value specified by the user.
Implements itk::Transform< double, 3, 3 >.
|
inline |
Method to transform a CovariantVector.
Definition at line 234 of file itkTransform.h.
|
override |
References BackTransform(), and itk::point().
virtual OutputCovariantVectorType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformCovariantVector | ( | const InputCovariantVectorType & | vector, |
const InputPointType & | point ) const |
Method to transform a CovariantVector, using a point. Global transforms can ignore the point
parameter. Local transforms (e.g. deformation field transform) must override and provide required behavior. By default, point
is ignored and TransformCovariantVector(vector)
is called
|
inline |
Method to transform a CovariantVector stored in a VectorImage.
Definition at line 252 of file itkTransform.h.
virtual OutputVectorPixelType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformCovariantVector | ( | const InputVectorPixelType & | vector, |
const InputPointType & | point ) const |
Method to transform a CovariantVector, using a point. Global transforms can ignore the point
parameter. Local transforms (e.g. deformation field transform) must override and provide required behavior. By default, point
is ignored and TransformCovariantVector(vector)
is called
|
override |
Transform by an affine transformation. This method applies the affine transform given by self to a given point or vector, returning the transformed point or vector.
References itk::point(), and itk::Transform< TParametersValueType, VDimension, VDimension >::TransformVector().
|
inline |
Method to transform a vector stored in a VectorImage.
Definition at line 218 of file itkTransform.h.
virtual OutputVectorPixelType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformVector | ( | const InputVectorPixelType & | vector, |
const InputPointType & | point ) const |
Method to transform a vector stored in a VectorImage, at a point. For global transforms, point
is ignored and TransformVector( vector )
is called. Local transforms (e.g. deformation field transform) must override and provide required behavior.
|
inline |
Method to transform a vector.
Definition at line 186 of file itkTransform.h.
|
override |
virtual OutputVectorType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformVector | ( | const InputVectorType & | vector, |
const InputPointType & | point ) const |
Method to transform a vector at a given location. For global transforms, point
is ignored and TransformVector( vector )
is called. Local transforms (e.g. deformation field transform) must override and provide required behavior.
|
inline |
Method to transform a vnl_vector.
Definition at line 202 of file itkTransform.h.
|
override |
virtual OutputVnlVectorType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformVector | ( | const InputVnlVectorType & | vector, |
const InputPointType & | point ) const |
Method to transform a vnl_vector, at a point. For global transforms, point
is ignored and TransformVector( vector )
is called. Local transforms (e.g. deformation field transform) must override and provide required behavior.
void itk::TranslationTransform< TParametersValueType, VDimension >::Translate | ( | const OutputVectorType & | offset, |
bool | pre = false ) |
Compose affine 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.
|
private |
Definition at line 255 of file itkTranslationTransform.h.
|
private |
Definition at line 256 of file itkTranslationTransform.h.
Referenced by BackTransform(), GetOffset(), and SetOffset().
|
staticconstexpr |
Definition at line 62 of file itkTranslationTransform.h.
|
staticconstexpr |
Dimension of the domain space.
Definition at line 61 of file itkTranslationTransform.h.