ITK
4.8.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 | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::FixedParametersType | FixedParametersType |
typedef CovariantVector < TParametersValueType, NDimensions > | InputCovariantVectorType |
typedef Point < TParametersValueType, NDimensions > | InputPointType |
typedef Vector < TParametersValueType, NDimensions > | InputVectorType |
typedef vnl_vector_fixed < TParametersValueType, NDimensions > | InputVnlVectorType |
typedef InverseTransformBaseType::Pointer | InverseTransformBasePointer |
typedef Superclass::InverseTransformBaseType | InverseTransformBaseType |
typedef Superclass::JacobianType | JacobianType |
typedef Superclass::NumberOfParametersType | NumberOfParametersType |
typedef CovariantVector < TParametersValueType, NDimensions > | OutputCovariantVectorType |
typedef Point < TParametersValueType, NDimensions > | OutputPointType |
typedef Vector < TParametersValueType, NDimensions > | OutputVectorType |
typedef vnl_vector_fixed < TParametersValueType, NDimensions > | OutputVnlVectorType |
typedef Superclass::ParametersType | ParametersType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::ScalarType | ScalarType |
typedef TranslationTransform | Self |
typedef Transform < TParametersValueType, NDimensions, NDimensions > | Superclass |
typedef Superclass::TransformCategoryType | TransformCategoryType |
Public Types inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Array < ParametersValueType > | DerivativeType |
typedef Matrix< double, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | DirectionChangeMatrix |
typedef Superclass::FixedParametersType | FixedParametersType |
typedef Superclass::FixedParametersValueType | FixedParametersValueType |
typedef CovariantVector < TParametersValueType, NInputDimensions > | InputCovariantVectorType |
typedef DiffusionTensor3D < TParametersValueType > | InputDiffusionTensor3DType |
typedef Matrix< double, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | InputDirectionMatrix |
typedef Point < TParametersValueType, NInputDimensions > | InputPointType |
typedef SymmetricSecondRankTensor < TParametersValueType, NInputDimensions > | InputSymmetricSecondRankTensorType |
typedef VariableLengthVector < TParametersValueType > | InputVectorPixelType |
typedef Vector < TParametersValueType, NInputDimensions > | InputVectorType |
typedef vnl_vector_fixed < TParametersValueType, NInputDimensions > | InputVnlVectorType |
typedef InverseTransformBaseType::Pointer | InverseTransformBasePointer |
typedef Transform < TParametersValueType, NOutputDimensions, NInputDimensions > | InverseTransformBaseType |
typedef Array2D < ParametersValueType > | JacobianType |
typedef Matrix < TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | MatrixType |
typedef Superclass::NumberOfParametersType | NumberOfParametersType |
typedef CovariantVector < TParametersValueType, NOutputDimensions > | OutputCovariantVectorType |
typedef DiffusionTensor3D < TParametersValueType > | OutputDiffusionTensor3DType |
typedef Matrix< double, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)> | OutputDirectionMatrix |
typedef Point < TParametersValueType, NOutputDimensions > | OutputPointType |
typedef SymmetricSecondRankTensor < TParametersValueType, NOutputDimensions > | OutputSymmetricSecondRankTensorType |
typedef VariableLengthVector < TParametersValueType > | OutputVectorPixelType |
typedef Vector < TParametersValueType, NOutputDimensions > | OutputVectorType |
typedef vnl_vector_fixed < TParametersValueType, NOutputDimensions > | OutputVnlVectorType |
typedef Superclass::ParametersType | ParametersType |
typedef Superclass::ParametersValueType | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef ParametersValueType | ScalarType |
typedef Transform | Self |
typedef TransformBaseTemplate < TParametersValueType > | Superclass |
typedef Superclass::TransformCategoryType | TransformCategoryType |
Public Types inherited from itk::TransformBaseTemplate< TParametersValueType > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef OptimizerParameters < FixedParametersValueType > | FixedParametersType |
typedef ParametersValueType | FixedParametersValueType |
typedef IdentifierType | NumberOfParametersType |
typedef OptimizerParameters < ParametersValueType > | ParametersType |
typedef TParametersValueType | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef TransformBaseTemplate | 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 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 const unsigned int | SpaceDimension = NDimensions |
static const unsigned int | ParametersDimension = NDimensions |
Static Public Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
static const unsigned int | InputSpaceDimension |
static const unsigned int | OutputSpaceDimension |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const override |
TranslationTransform () | |
~TranslationTransform () | |
Protected Member Functions inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
virtual LightObject::Pointer | InternalClone () const override |
OutputDiffusionTensor3DType | PreservationOfPrincipalDirectionDiffusionTensor3DReorientation (const InputDiffusionTensor3DType, const JacobianType) const |
Transform () | |
Transform (NumberOfParametersType NumberOfParameters) | |
virtual | ~Transform () |
Protected Member Functions inherited from itk::TransformBaseTemplate< TParametersValueType > | |
TransformBaseTemplate () | |
virtual | ~TransformBaseTemplate () |
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 Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
DirectionChangeMatrix | m_DirectionChange |
FixedParametersType | m_FixedParameters |
ParametersType | m_Parameters |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer<const Self> itk::TranslationTransform< TParametersValueType, NDimensions >::ConstPointer |
Definition at line 53 of file itkTranslationTransform.h.
typedef Superclass::FixedParametersType itk::TranslationTransform< TParametersValueType, NDimensions >::FixedParametersType |
Standard parameters container.
Definition at line 70 of file itkTranslationTransform.h.
typedef CovariantVector<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::InputCovariantVectorType |
Standard covariant vector type for this class.
Definition at line 84 of file itkTranslationTransform.h.
typedef Point<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::InputPointType |
Standard coordinate point type for this class.
Definition at line 92 of file itkTranslationTransform.h.
typedef Vector<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::InputVectorType |
Standard vector type for this class.
Definition at line 80 of file itkTranslationTransform.h.
typedef vnl_vector_fixed<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::InputVnlVectorType |
Standard vnl_vector type for this class.
Definition at line 88 of file itkTranslationTransform.h.
typedef InverseTransformBaseType::Pointer itk::TranslationTransform< TParametersValueType, NDimensions >::InverseTransformBasePointer |
Definition at line 98 of file itkTranslationTransform.h.
typedef Superclass::InverseTransformBaseType itk::TranslationTransform< TParametersValueType, 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 97 of file itkTranslationTransform.h.
typedef Superclass::JacobianType itk::TranslationTransform< TParametersValueType, NDimensions >::JacobianType |
Standard Jacobian container.
Definition at line 74 of file itkTranslationTransform.h.
typedef Superclass::NumberOfParametersType itk::TranslationTransform< TParametersValueType, NDimensions >::NumberOfParametersType |
The number of parameters defininig this transform.
Definition at line 77 of file itkTranslationTransform.h.
typedef CovariantVector<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::OutputCovariantVectorType |
Definition at line 85 of file itkTranslationTransform.h.
typedef Point<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::OutputPointType |
Definition at line 93 of file itkTranslationTransform.h.
typedef Vector<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::OutputVectorType |
Definition at line 81 of file itkTranslationTransform.h.
typedef vnl_vector_fixed<TParametersValueType, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::OutputVnlVectorType |
Definition at line 89 of file itkTranslationTransform.h.
typedef Superclass::ParametersType itk::TranslationTransform< TParametersValueType, NDimensions >::ParametersType |
Definition at line 71 of file itkTranslationTransform.h.
typedef SmartPointer<Self> itk::TranslationTransform< TParametersValueType, NDimensions >::Pointer |
Definition at line 52 of file itkTranslationTransform.h.
typedef Superclass::ScalarType itk::TranslationTransform< TParametersValueType, NDimensions >::ScalarType |
Standard scalar type for this class.
Definition at line 67 of file itkTranslationTransform.h.
typedef TranslationTransform itk::TranslationTransform< TParametersValueType, NDimensions >::Self |
Standard class typedefs.
Definition at line 50 of file itkTranslationTransform.h.
typedef Transform<TParametersValueType, NDimensions, NDimensions> itk::TranslationTransform< TParametersValueType, NDimensions >::Superclass |
Definition at line 51 of file itkTranslationTransform.h.
typedef Superclass::TransformCategoryType itk::TranslationTransform< TParametersValueType, NDimensions >::TransformCategoryType |
Transform category type.
Definition at line 101 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 239 of file itkTranslationTransform.h.
|
inline |
Definition at line 248 of file itkTranslationTransform.h.
|
inline |
Definition at line 257 of file itkTranslationTransform.h.
|
inline |
Definition at line 266 of file itkTranslationTransform.h.
void itk::TranslationTransform< TParametersValueType, NDimensions >::Compose | ( | const Self * | other, |
bool | pre = 0 |
||
) |
Compose with another TranslationTransform.
|
overridevirtual |
Compute the Jacobian Matrix of the transformation at one point
|
overridevirtual |
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.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 214 of file itkTranslationTransform.h.
References itk::Transform< TParametersValueType, NDimensions, NDimensions >::m_FixedParameters, and 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
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 181 of file itkTranslationTransform.h.
|
inline |
This method returns the value of the offset of the TranslationTransform.
Definition at line 105 of file itkTranslationTransform.h.
References itk::TranslationTransform< TParametersValueType, NDimensions >::m_Offset.
|
overridevirtual |
Get the Transformation Parameters.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
|
inlineoverridevirtual |
Indicates the category transform. e.g. an affine transform, or a local one, e.g. a deformation field.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 199 of file itkTranslationTransform.h.
References itk::TransformBaseTemplate< TParametersValueType >::Linear.
|
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 191 of file itkTranslationTransform.h.
|
static |
New macro for creation of through the object factory.
|
private |
|
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 207 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 120 of file itkTranslationTransform.h.
References itk::TranslationTransform< TParametersValueType, NDimensions >::m_Offset.
|
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 = 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 231 of file itkTranslationTransform.h.
|
private |
Definition at line 232 of file itkTranslationTransform.h.
Referenced by itk::TranslationTransform< TParametersValueType, NDimensions >::GetOffset(), and itk::TranslationTransform< TParametersValueType, NDimensions >::SetOffset().
|
static |
Dimension of the domain space.
Definition at line 63 of file itkTranslationTransform.h.
|
static |
Dimension of the domain space.
Definition at line 62 of file itkTranslationTransform.h.