ITK
4.3.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 48 of file itkTranslationTransform.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef CovariantVector < TScalarType, NDimensions > | InputCovariantVectorType |
typedef Point< TScalarType, NDimensions > | InputPointType |
typedef Vector< TScalarType, NDimensions > | InputVectorType |
typedef vnl_vector_fixed < TScalarType, NDimensions > | InputVnlVectorType |
typedef InverseTransformBaseType::Pointer | InverseTransformBasePointer |
typedef Superclass::InverseTransformBaseType | InverseTransformBaseType |
typedef Superclass::JacobianType | JacobianType |
typedef Superclass::NumberOfParametersType | NumberOfParametersType |
typedef CovariantVector < TScalarType, NDimensions > | OutputCovariantVectorType |
typedef Point< TScalarType, NDimensions > | OutputPointType |
typedef Vector< TScalarType, NDimensions > | OutputVectorType |
typedef vnl_vector_fixed < TScalarType, NDimensions > | OutputVnlVectorType |
typedef Superclass::ParametersType | ParametersType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::ScalarType | ScalarType |
typedef TranslationTransform | Self |
typedef Transform< TScalarType, NDimensions, NDimensions > | Superclass |
typedef Superclass::TransformCategoryType | TransformCategoryType |
Public Types inherited from itk::Transform< TScalarType, NDimensions, NDimensions > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Array < ParametersValueType > | DerivativeType |
typedef Matrix< double, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | DirectionChangeMatrix |
typedef CovariantVector < TScalarType, NInputDimensions > | InputCovariantVectorType |
typedef DiffusionTensor3D < TScalarType > | InputDiffusionTensor3DType |
typedef Matrix< double, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | InputDirectionMatrix |
typedef Point< TScalarType, NInputDimensions > | InputPointType |
typedef SymmetricSecondRankTensor < TScalarType, NInputDimensions > | InputSymmetricSecondRankTensorType |
typedef VariableLengthVector < TScalarType > | InputVectorPixelType |
typedef Vector< TScalarType, NInputDimensions > | InputVectorType |
typedef vnl_vector_fixed < TScalarType, NInputDimensions > | InputVnlVectorType |
typedef InverseTransformBaseType::Pointer | InverseTransformBasePointer |
typedef Transform< TScalarType, NOutputDimensions, NInputDimensions > | InverseTransformBaseType |
typedef Array2D < ParametersValueType > | JacobianType |
typedef Matrix< TScalarType, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | MatrixType |
typedef Superclass::NumberOfParametersType | NumberOfParametersType |
typedef CovariantVector < TScalarType, NOutputDimensions > | OutputCovariantVectorType |
typedef DiffusionTensor3D < TScalarType > | OutputDiffusionTensor3DType |
typedef Matrix< double, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)> | OutputDirectionMatrix |
typedef Point< TScalarType, NOutputDimensions > | OutputPointType |
typedef SymmetricSecondRankTensor < TScalarType, NOutputDimensions > | OutputSymmetricSecondRankTensorType |
typedef VariableLengthVector < TScalarType > | OutputVectorPixelType |
typedef Vector< TScalarType, NOutputDimensions > | OutputVectorType |
typedef vnl_vector_fixed < TScalarType, NOutputDimensions > | OutputVnlVectorType |
typedef Superclass::ParametersType | ParametersType |
typedef Superclass::ParametersValueType | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef TScalarType | ScalarType |
typedef Transform | Self |
typedef TransformBase | Superclass |
Public Types inherited from itk::TransformBase | |
typedef SmartPointer< const Self > | ConstPointer |
typedef IdentifierType | NumberOfParametersType |
typedef OptimizerParameters < ParametersValueType > | ParametersType |
typedef double | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef TransformBase | Self |
typedef Object | Superclass |
enum | TransformCategoryType { UnknownTransformCategory =0, Linear =1, BSpline =2, Spline =3, DisplacementField =4, VelocityField =5 } |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | SpaceDimension = NDimensions |
static const unsigned int | ParametersDimension = NDimensions |
Static Public Attributes inherited from itk::Transform< TScalarType, NDimensions, NDimensions > | |
static const unsigned int | InputSpaceDimension |
static const unsigned int | OutputSpaceDimension |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const |
TranslationTransform () | |
~TranslationTransform () | |
Protected Member Functions inherited from itk::Transform< TScalarType, NDimensions, NDimensions > | |
virtual LightObject::Pointer | InternalClone () const |
OutputDiffusionTensor3DType | PreservationOfPrincipalDirectionDiffusionTensor3DReorientation (const InputDiffusionTensor3DType, const JacobianType) const |
Transform () | |
Transform (NumberOfParametersType NumberOfParameters) | |
virtual | ~Transform () |
Protected Member Functions inherited from itk::TransformBase | |
TransformBase () | |
virtual | ~TransformBase () |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
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 Member Functions | |
void | operator= (const Self &) |
TranslationTransform (const Self &) | |
Private Attributes | |
JacobianType | m_IdentityJacobian |
OutputVectorType | m_Offset |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Attributes inherited from itk::Transform< TScalarType, NDimensions, NDimensions > | |
DirectionChangeMatrix | m_DirectionChange |
ParametersType | m_FixedParameters |
ParametersType | m_Parameters |
typedef SmartPointer<const Self> itk::TranslationTransform< TScalarType, NDimensions >::ConstPointer |
Definition at line 56 of file itkTranslationTransform.h.
typedef CovariantVector<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::InputCovariantVectorType |
Standard covariant vector type for this class.
Definition at line 86 of file itkTranslationTransform.h.
typedef Point<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::InputPointType |
Standard coordinate point type for this class.
Definition at line 94 of file itkTranslationTransform.h.
typedef Vector<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::InputVectorType |
Standard vector type for this class.
Definition at line 82 of file itkTranslationTransform.h.
typedef vnl_vector_fixed<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::InputVnlVectorType |
Standard vnl_vector type for this class.
Definition at line 90 of file itkTranslationTransform.h.
typedef InverseTransformBaseType::Pointer itk::TranslationTransform< TScalarType, NDimensions >::InverseTransformBasePointer |
Definition at line 100 of file itkTranslationTransform.h.
typedef Superclass::InverseTransformBaseType itk::TranslationTransform< TScalarType, NDimensions >::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 99 of file itkTranslationTransform.h.
typedef Superclass::JacobianType itk::TranslationTransform< TScalarType, NDimensions >::JacobianType |
Standard Jacobian container.
Definition at line 76 of file itkTranslationTransform.h.
typedef Superclass::NumberOfParametersType itk::TranslationTransform< TScalarType, NDimensions >::NumberOfParametersType |
The number of parameters defininig this transform.
Definition at line 79 of file itkTranslationTransform.h.
typedef CovariantVector<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::OutputCovariantVectorType |
Definition at line 87 of file itkTranslationTransform.h.
typedef Point<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::OutputPointType |
Definition at line 95 of file itkTranslationTransform.h.
typedef Vector<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::OutputVectorType |
Definition at line 83 of file itkTranslationTransform.h.
typedef vnl_vector_fixed<TScalarType, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::OutputVnlVectorType |
Definition at line 91 of file itkTranslationTransform.h.
typedef Superclass::ParametersType itk::TranslationTransform< TScalarType, NDimensions >::ParametersType |
Standard parameters container.
Definition at line 73 of file itkTranslationTransform.h.
typedef SmartPointer<Self> itk::TranslationTransform< TScalarType, NDimensions >::Pointer |
Definition at line 55 of file itkTranslationTransform.h.
typedef Superclass::ScalarType itk::TranslationTransform< TScalarType, NDimensions >::ScalarType |
Standard scalar type for this class.
Definition at line 70 of file itkTranslationTransform.h.
typedef TranslationTransform itk::TranslationTransform< TScalarType, NDimensions >::Self |
Standard class typedefs.
Definition at line 53 of file itkTranslationTransform.h.
typedef Transform<TScalarType, NDimensions, NDimensions> itk::TranslationTransform< TScalarType, NDimensions >::Superclass |
Definition at line 54 of file itkTranslationTransform.h.
typedef Superclass::TransformCategoryType itk::TranslationTransform< TScalarType, NDimensions >::TransformCategoryType |
Transform category type.
Definition at line 103 of file itkTranslationTransform.h.
|
protected |
|
protected |
|
private |
|
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< TScalarType, NDimensions >::Compose | ( | const Self * | other, |
bool | pre = 0 |
||
) |
Compose with another TranslationTransform.
|
virtual |
Compute the Jacobian Matrix of the transformation at one point
|
virtual |
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.
|
inlinevirtual |
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< TScalarType, NDimensions, NDimensions >.
Definition at line 216 of file itkTranslationTransform.h.
References itk::Array< TValueType >::SetSize().
bool itk::TranslationTransform< TScalarType, 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.
|
virtual |
Return an inverse of this transform.
Reimplemented from itk::Transform< TScalarType, NDimensions, NDimensions >.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Transform< TScalarType, NDimensions, NDimensions >.
|
inlinevirtual |
Return the number of parameters that completely define the Transfom
Reimplemented from itk::Transform< TScalarType, NDimensions, NDimensions >.
Definition at line 183 of file itkTranslationTransform.h.
|
inline |
This method returns the value of the offset of the TranslationTransform.
Definition at line 107 of file itkTranslationTransform.h.
|
virtual |
Get the Transformation Parameters.
Reimplemented from itk::Transform< TScalarType, NDimensions, NDimensions >.
|
inlinevirtual |
Indicates the category transform. e.g. an affine transform, or a local one, e.g. a deformation field.
Reimplemented from itk::Transform< TScalarType, NDimensions, NDimensions >.
Definition at line 201 of file itkTranslationTransform.h.
|
inlinevirtual |
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< TScalarType, NDimensions, NDimensions >.
Definition at line 193 of file itkTranslationTransform.h.
|
static |
New macro for creation of through the object factory.
|
private |
|
protectedvirtual |
Print contents of an TranslationTransform.
Reimplemented from itk::Object.
|
inlinevirtual |
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< TScalarType, NDimensions, NDimensions >.
Definition at line 209 of file itkTranslationTransform.h.
void itk::TranslationTransform< TScalarType, NDimensions >::SetIdentity | ( | void | ) |
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 122 of file itkTranslationTransform.h.
|
virtual |
This method sets the parameters for the transform value specified by the user.
Implements itk::Transform< TScalarType, NDimensions, NDimensions >.
|
virtual |
Method to transform a CovariantVector.
Reimplemented from itk::Transform< TScalarType, NDimensions, NDimensions >.
OutputPointType itk::TranslationTransform< TScalarType, NDimensions >::TransformPoint | ( | const InputPointType & | point | ) | const |
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.
OutputVectorType itk::TranslationTransform< TScalarType, NDimensions >::TransformVector | ( | const InputVectorType & | vector | ) | const |
OutputVnlVectorType itk::TranslationTransform< TScalarType, NDimensions >::TransformVector | ( | const InputVnlVectorType & | vector | ) | const |
void itk::TranslationTransform< TScalarType, NDimensions >::Translate | ( | const OutputVectorType & | offset, |
bool | pre = 0 |
||
) |
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 |
Dimension of the domain space.
Definition at line 66 of file itkTranslationTransform.h.
|
static |
Dimension of the domain space.
Definition at line 65 of file itkTranslationTransform.h.