ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkIdentityTransform.h>
Implementation of an Identity Transform.
This class defines the generic interface for an Identity Transform.
It will map every point to itself, every vector to itself and every covariant vector to itself.
This class is intended to be used primarily as a default Transform for initializing those classes supporting a generic Transform.
This class is templated over the Representation type for coordinates (that is the type used for representing the components of points and vectors) and over the dimension of the space. In this case the Input and Output spaces are the same so only one dimension is required.
Definition at line 51 of file itkIdentityTransform.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::FixedParametersType | FixedParametersType |
typedef Superclass::FixedParametersValueType | FixedParametersValueType |
typedef InverseTransformBaseType::Pointer | InverseTransformBasePointer |
typedef Superclass::InverseTransformBaseType | InverseTransformBaseType |
typedef Superclass::JacobianType | JacobianType |
typedef Superclass::ParametersType | ParametersType |
typedef Superclass::ParametersValueType | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef ParametersValueType | ScalarType |
typedef IdentityTransform | Self |
typedef Transform < TParametersValueType, NDimensions, NDimensions > | Superclass |
typedef Superclass::TransformCategoryType | TransformCategoryType |
typedef Vector < TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> | InputVectorType |
typedef Vector < TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> | OutputVectorType |
typedef CovariantVector < TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> | InputCovariantVectorType |
typedef CovariantVector < TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> | OutputCovariantVectorType |
typedef vnl_vector_fixed < TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> | InputVnlVectorType |
typedef vnl_vector_fixed < TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> | OutputVnlVectorType |
typedef Point < TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> | InputPointType |
typedef Point < TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> | OutputPointType |
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 | InputSpaceDimension = NDimensions |
static const unsigned int | OutputSpaceDimension = NDimensions |
Static Public Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
static const unsigned int | InputSpaceDimension |
static const unsigned int | OutputSpaceDimension |
Protected Member Functions | |
IdentityTransform () | |
virtual | ~IdentityTransform () |
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 | PrintSelf (std::ostream &os, Indent indent) const override |
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 | |
IdentityTransform (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
JacobianType | m_IdentityJacobian |
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::IdentityTransform< TParametersValueType, NDimensions >::ConstPointer |
Definition at line 58 of file itkIdentityTransform.h.
typedef Superclass::FixedParametersType itk::IdentityTransform< TParametersValueType, NDimensions >::FixedParametersType |
Definition at line 74 of file itkIdentityTransform.h.
typedef Superclass::FixedParametersValueType itk::IdentityTransform< TParametersValueType, NDimensions >::FixedParametersValueType |
Definition at line 75 of file itkIdentityTransform.h.
typedef CovariantVector<TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::InputCovariantVectorType |
Standard covariant vector type for this class
Definition at line 94 of file itkIdentityTransform.h.
typedef Point<TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::InputPointType |
Standard coordinate point type for this class
Definition at line 108 of file itkIdentityTransform.h.
typedef Vector<TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::InputVectorType |
Standard vector type for this class.
Definition at line 87 of file itkIdentityTransform.h.
typedef vnl_vector_fixed<TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::InputVnlVectorType |
Standard vnl_vector type for this class.
Definition at line 101 of file itkIdentityTransform.h.
typedef InverseTransformBaseType::Pointer itk::IdentityTransform< TParametersValueType, NDimensions >::InverseTransformBasePointer |
Definition at line 116 of file itkIdentityTransform.h.
typedef Superclass::InverseTransformBaseType itk::IdentityTransform< 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 115 of file itkIdentityTransform.h.
typedef Superclass::JacobianType itk::IdentityTransform< TParametersValueType, NDimensions >::JacobianType |
Type of the Jacobian matrix.
Definition at line 80 of file itkIdentityTransform.h.
typedef CovariantVector<TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::OutputCovariantVectorType |
Standard covariant vector type for this class
Definition at line 96 of file itkIdentityTransform.h.
typedef Point<TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::OutputPointType |
Standard coordinate point type for this class
Definition at line 110 of file itkIdentityTransform.h.
typedef Vector<TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::OutputVectorType |
Standard vector type for this class.
Definition at line 89 of file itkIdentityTransform.h.
typedef vnl_vector_fixed<TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension)> itk::IdentityTransform< TParametersValueType, NDimensions >::OutputVnlVectorType |
Standard vnl_vector type for this class.
Definition at line 103 of file itkIdentityTransform.h.
typedef Superclass::ParametersType itk::IdentityTransform< TParametersValueType, NDimensions >::ParametersType |
Type of the input parameters.
Definition at line 72 of file itkIdentityTransform.h.
typedef Superclass::ParametersValueType itk::IdentityTransform< TParametersValueType, NDimensions >::ParametersValueType |
Definition at line 73 of file itkIdentityTransform.h.
typedef SmartPointer<Self> itk::IdentityTransform< TParametersValueType, NDimensions >::Pointer |
Definition at line 57 of file itkIdentityTransform.h.
typedef ParametersValueType itk::IdentityTransform< TParametersValueType, NDimensions >::ScalarType |
Definition at line 76 of file itkIdentityTransform.h.
typedef IdentityTransform itk::IdentityTransform< TParametersValueType, NDimensions >::Self |
Standard class typedefs.
Definition at line 55 of file itkIdentityTransform.h.
typedef Transform<TParametersValueType, NDimensions, NDimensions> itk::IdentityTransform< TParametersValueType, NDimensions >::Superclass |
Definition at line 56 of file itkIdentityTransform.h.
typedef Superclass::TransformCategoryType itk::IdentityTransform< TParametersValueType, NDimensions >::TransformCategoryType |
Transform category type.
Definition at line 83 of file itkIdentityTransform.h.
|
inlineprotected |
Definition at line 249 of file itkIdentityTransform.h.
References itk::IdentityTransform< TParametersValueType, NDimensions >::m_IdentityJacobian.
|
inlineprotectedvirtual |
Definition at line 257 of file itkIdentityTransform.h.
|
private |
|
inlineoverridevirtual |
Compute the Jacobian of the transformation
This method computes the Jacobian matrix of the transformation. given point or vector, returning the transformed point or vector. The rank of the Jacobian will also indicate if the transform is invertible at this point.
The Jacobian can be expressed as a set of partial derivatives of the output point components with respect to the parameters that defined the transform:
Definition at line 181 of file itkIdentityTransform.h.
References itk::IdentityTransform< TParametersValueType, NDimensions >::m_IdentityJacobian.
|
inlineoverridevirtual |
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.
Definition at line 191 of file itkIdentityTransform.h.
|
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.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 227 of file itkIdentityTransform.h.
References itk::Transform< TParametersValueType, NDimensions, NDimensions >::m_FixedParameters.
|
inline |
Definition at line 204 of file itkIdentityTransform.h.
|
inlineoverridevirtual |
Return an inverse of the identity transform - another identity transform.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 211 of file itkIdentityTransform.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and itk::IdentityTransform< TParametersValueType, NDimensions >::New().
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
|
inlineoverridevirtual |
Get the Parameters.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 238 of file itkIdentityTransform.h.
References itk::Transform< TParametersValueType, NDimensions, NDimensions >::m_Parameters.
|
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 221 of file itkIdentityTransform.h.
References itk::TransformBaseTemplate< TParametersValueType >::Linear.
|
static |
New method for creating an object using a factory.
Referenced by itk::IdentityTransform< TParametersValueType, NDimensions >::GetInverseTransform(), and itk::ImageRegistrationMethodv4< TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet >::MakeOutputTransform().
|
private |
|
inlineoverridevirtual |
Set the fixed parameters and update internal transformation.
Definition at line 233 of file itkIdentityTransform.h.
|
inline |
Set the transformation to an Identity
This is a ITK_NULLPTR operation in the case of this particular transform. The method is provided only to comply with the interface of other transforms.
Definition at line 149 of file itkIdentityTransform.h.
|
inlineoverridevirtual |
Set the fixed parameters and update internal transformation.
Definition at line 244 of file itkIdentityTransform.h.
|
inlineoverridevirtual |
Definition at line 139 of file itkIdentityTransform.h.
|
inlineoverridevirtual |
Method to transform a point.
Definition at line 119 of file itkIdentityTransform.h.
|
inlineoverridevirtual |
Definition at line 126 of file itkIdentityTransform.h.
|
inlineoverridevirtual |
Method to transform a vnl_vector.
Definition at line 132 of file itkIdentityTransform.h.
|
static |
Dimension of the domain space.
Definition at line 67 of file itkIdentityTransform.h.
|
private |
|
static |
Dimension of the domain space.
Definition at line 68 of file itkIdentityTransform.h.