ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#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 performace.
Definition at line 45 of file itkTranslationTransform.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | FixedParametersType = typename Superclass::FixedParametersType |
using | InputCovariantVectorType = CovariantVector< TParametersValueType, NDimensions > |
using | InputPointType = Point< TParametersValueType, NDimensions > |
using | InputVectorType = Vector< TParametersValueType, NDimensions > |
using | InputVnlVectorType = vnl_vector_fixed< TParametersValueType, NDimensions > |
using | InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType |
using | InverseTransformBasePointer = typename InverseTransformBaseType::Pointer |
using | InverseTransformBaseType = typename Superclass::InverseTransformBaseType |
using | JacobianPositionType = typename Superclass::JacobianPositionType |
using | JacobianType = typename Superclass::JacobianType |
using | NumberOfParametersType = typename Superclass::NumberOfParametersType |
using | OutputCovariantVectorType = CovariantVector< TParametersValueType, NDimensions > |
using | OutputPointType = Point< TParametersValueType, NDimensions > |
using | OutputVectorType = Vector< TParametersValueType, NDimensions > |
using | OutputVnlVectorType = vnl_vector_fixed< TParametersValueType, NDimensions > |
using | ParametersType = typename Superclass::ParametersType |
using | Pointer = SmartPointer< Self > |
using | ScalarType = typename Superclass::ScalarType |
using | Self = TranslationTransform |
using | Superclass = Transform< TParametersValueType, NDimensions, NDimensions > |
using | TransformCategoryType = typename Superclass::TransformCategoryType |
Public Types inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeType = Array< ParametersValueType > |
using | DirectionChangeMatrix = Matrix< double, Self::OutputSpaceDimension, Self::InputSpaceDimension > |
using | FixedParametersType = typename Superclass::FixedParametersType |
using | FixedParametersValueType = typename Superclass::FixedParametersValueType |
using | InputCovariantVectorType = CovariantVector< TParametersValueType, NInputDimensions > |
using | InputDiffusionTensor3DType = DiffusionTensor3D< TParametersValueType > |
using | InputDirectionMatrix = Matrix< double, Self::InputSpaceDimension, Self::InputSpaceDimension > |
using | InputPointType = Point< TParametersValueType, NInputDimensions > |
using | InputSymmetricSecondRankTensorType = SymmetricSecondRankTensor< TParametersValueType, NInputDimensions > |
using | InputVectorPixelType = VariableLengthVector< TParametersValueType > |
using | InputVectorType = Vector< TParametersValueType, NInputDimensions > |
using | InputVnlVectorType = vnl_vector_fixed< TParametersValueType, NInputDimensions > |
using | InverseJacobianPositionType = vnl_matrix_fixed< ParametersValueType, NInputDimensions, NOutputDimensions > |
using | InverseTransformBasePointer = typename InverseTransformBaseType::Pointer |
using | InverseTransformBaseType = Transform< TParametersValueType, NOutputDimensions, NInputDimensions > |
using | JacobianPositionType = vnl_matrix_fixed< ParametersValueType, NOutputDimensions, NInputDimensions > |
using | JacobianType = Array2D< ParametersValueType > |
using | MatrixType = Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension > |
using | NumberOfParametersType = typename Superclass::NumberOfParametersType |
using | OutputCovariantVectorType = CovariantVector< TParametersValueType, NOutputDimensions > |
using | OutputDiffusionTensor3DType = DiffusionTensor3D< TParametersValueType > |
using | OutputDirectionMatrix = Matrix< double, Self::OutputSpaceDimension, Self::OutputSpaceDimension > |
using | OutputPointType = Point< TParametersValueType, NOutputDimensions > |
using | OutputSymmetricSecondRankTensorType = SymmetricSecondRankTensor< TParametersValueType, NOutputDimensions > |
using | OutputVectorPixelType = VariableLengthVector< TParametersValueType > |
using | OutputVectorType = Vector< TParametersValueType, NOutputDimensions > |
using | OutputVnlVectorType = vnl_vector_fixed< TParametersValueType, NOutputDimensions > |
using | ParametersType = typename Superclass::ParametersType |
using | ParametersValueType = typename Superclass::ParametersValueType |
using | Pointer = SmartPointer< Self > |
using | ScalarType = ParametersValueType |
using | Self = Transform |
using | Superclass = TransformBaseTemplate< TParametersValueType > |
using | TransformCategoryType = typename Superclass::TransformCategoryType |
Public Types inherited from itk::TransformBaseTemplate< TParametersValueType > | |
using | ConstPointer = SmartPointer< const Self > |
using | FixedParametersType = OptimizerParameters< FixedParametersValueType > |
using | FixedParametersValueType = double |
using | NumberOfParametersType = IdentifierType |
using | ParametersType = OptimizerParameters< ParametersValueType > |
using | ParametersValueType = TParametersValueType |
using | Pointer = SmartPointer< Self > |
using | Self = TransformBaseTemplate |
using | Superclass = Object |
enum | TransformCategoryType { UnknownTransformCategory =0, Linear =1, BSpline =2, Spline =3, DisplacementField =4, VelocityField =5 } |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ParametersDimension = NDimensions |
static constexpr unsigned int | SpaceDimension = NDimensions |
Static Public Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
static constexpr unsigned int | InputSpaceDimension |
static constexpr unsigned int | OutputSpaceDimension |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
TranslationTransform () | |
~TranslationTransform () override=default | |
Protected Member Functions inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
LightObject::Pointer | InternalClone () const override |
OutputDiffusionTensor3DType | PreservationOfPrincipalDirectionDiffusionTensor3DReorientation (const InputDiffusionTensor3DType &, const InverseJacobianPositionType &) const |
Transform () | |
Transform (NumberOfParametersType NumberOfParameters) | |
~Transform () override=default | |
Protected Member Functions inherited from itk::TransformBaseTemplate< TParametersValueType > | |
TransformBaseTemplate ()=default | |
~TransformBaseTemplate () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
JacobianType | m_IdentityJacobian |
OutputVectorType | m_Offset |
Additional Inherited Members | |
Protected Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
DirectionChangeMatrix | m_DirectionChange |
FixedParametersType | m_FixedParameters |
ParametersType | m_Parameters |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::TranslationTransform< TParametersValueType, NDimensions >::ConstPointer = SmartPointer<const Self> |
Definition at line 55 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::FixedParametersType = typename Superclass::FixedParametersType |
Standard parameters container.
Definition at line 71 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::InputCovariantVectorType = CovariantVector<TParametersValueType, NDimensions> |
Standard covariant vector type for this class.
Definition at line 87 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::InputPointType = Point<TParametersValueType, NDimensions> |
Standard coordinate point type for this class.
Definition at line 95 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::InputVectorType = Vector<TParametersValueType, NDimensions> |
Standard vector type for this class.
Definition at line 83 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::InputVnlVectorType = vnl_vector_fixed<TParametersValueType, NDimensions> |
Standard vnl_vector type for this class.
Definition at line 91 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType |
Definition at line 77 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::InverseTransformBasePointer = typename InverseTransformBaseType::Pointer |
Definition at line 101 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::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 100 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::JacobianPositionType = typename Superclass::JacobianPositionType |
Definition at line 76 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::JacobianType = typename Superclass::JacobianType |
Standard Jacobian containers.
Definition at line 75 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::NumberOfParametersType = typename Superclass::NumberOfParametersType |
The number of parameters defininig this transform.
Definition at line 80 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::OutputCovariantVectorType = CovariantVector<TParametersValueType, NDimensions> |
Definition at line 88 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::OutputPointType = Point<TParametersValueType, NDimensions> |
Definition at line 96 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::OutputVectorType = Vector<TParametersValueType, NDimensions> |
Definition at line 84 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::OutputVnlVectorType = vnl_vector_fixed<TParametersValueType, NDimensions> |
Definition at line 92 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::ParametersType = typename Superclass::ParametersType |
Definition at line 72 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::Pointer = SmartPointer<Self> |
Definition at line 54 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::ScalarType = typename Superclass::ScalarType |
Standard scalar type for this class.
Definition at line 68 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::Self = TranslationTransform |
Standard class type aliases.
Definition at line 52 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::Superclass = Transform<TParametersValueType, NDimensions, NDimensions> |
Definition at line 53 of file itkTranslationTransform.h.
using itk::TranslationTransform< TParametersValueType, NDimensions >::TransformCategoryType = typename Superclass::TransformCategoryType |
Transform category type.
Definition at line 104 of file itkTranslationTransform.h.
|
protected |
|
overrideprotecteddefault |
|
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 241 of file itkTranslationTransform.h.
|
inline |
Definition at line 250 of file itkTranslationTransform.h.
|
inline |
Definition at line 259 of file itkTranslationTransform.h.
|
inline |
Definition at line 268 of file itkTranslationTransform.h.
void itk::TranslationTransform< TParametersValueType, NDimensions >::Compose | ( | const Self * | other, |
bool | pre = false |
||
) |
Compose with another TranslationTransform.
|
override |
Compute the Jacobian Matrix of the transformation at one 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.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
inlineoverridevirtual |
Get the Fixed Parameters. The TranslationTransform does not require Fixed parameters, therefore this method returns an parameters array of size zero.
Implements itk::TransformBaseTemplate< TParametersValueType >.
Definition at line 219 of file itkTranslationTransform.h.
References itk::Array< TValue >::SetSize().
bool itk::TranslationTransform< TParametersValueType, NDimensions >::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< TParametersValueType, NDimensions, NDimensions >.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
|
inlineoverridevirtual |
Return the number of parameters that completely define the Transfom
Implements itk::TransformBaseTemplate< TParametersValueType >.
Definition at line 186 of file itkTranslationTransform.h.
|
inline |
This method returns the value of the offset of the TranslationTransform.
Definition at line 108 of file itkTranslationTransform.h.
|
overridevirtual |
Get the Transformation Parameters.
Implements itk::TransformBaseTemplate< TParametersValueType >.
|
inlineoverridevirtual |
Indicates the category transform. e.g. an affine transform, or a local one, e.g. a deformation field.
Implements itk::TransformBaseTemplate< TParametersValueType >.
Definition at line 204 of file itkTranslationTransform.h.
|
inlineoverridevirtual |
Indicates that this transform is linear. That is, given two points P and Q, and scalar coefficients a and b, then
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 196 of file itkTranslationTransform.h.
|
static |
New macro for creation of through the object factory.
|
overrideprotectedvirtual |
Print contents of an TranslationTransform.
Reimplemented from itk::Object.
|
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< TParametersValueType, NDimensions, NDimensions >.
Definition at line 212 of file itkTranslationTransform.h.
void itk::TranslationTransform< TParametersValueType, NDimensions >::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 123 of file itkTranslationTransform.h.
|
overridevirtual |
This method sets the parameters for the transform value specified by the user.
Implements itk::Transform< TParametersValueType, NDimensions, NDimensions >.
|
override |
|
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.
|
override |
|
override |
void itk::TranslationTransform< TParametersValueType, NDimensions >::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 233 of file itkTranslationTransform.h.
|
private |
Definition at line 234 of file itkTranslationTransform.h.
|
static |
Definition at line 65 of file itkTranslationTransform.h.
|
static |
Dimension of the domain space.
Definition at line 64 of file itkTranslationTransform.h.