ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkDisplacementFieldTransform.h>
Provides local/dense/high-dimensionaltiy transformation via a a displacement field.
The displacement field stores vectors of displacements, with dimension NDimensions
. Transformation is performed at a given point by adding the displacement at that point to the input point.
T(x, p), x is the position, p is the local parameter at position x. For a 2D example:
x = (x0, x1), p = (p0, p1)
then T(x, p) is defined as:
T(x, p) = (T0, T1) = (x0+p0, x1+p1)
During transformation, out-of-bounds input points are returned with zero displacement.
The displacement field is defined using an itkImage, and must be set before use by the user, using SetDisplacementField
. The image has the same dimensionality as the input and output spaces, defined by template parameter NDimensions
, and is an image of vectors of type OutputVectorType
, with dimensionality NDimensions as well.
An interpolator of type VectorInterpolateImageFunction
is used with the displacement field image. By default, VectorLinearInterpolateImageFunction is used, and the user can override using SetInterpolator.
The displacement field data is stored using the common OptimizerParameters
type in conjunction with the ImageVectorOptimizerParametersHelper
class. This allows access of the displacement field image as if it were an itkArray, allowing transparent use with other classes.
SetParameters
method will copy the passed parameters, which can be costly since displacement fields are dense and thus potentially very large.The UpdateTransformParameters
method simply adds the provided update array, applying the usual optional scaling factor. Derived classes may provide different behavior.
Because this is a local transform, methods that have a version that takes a point must be used, such as TransformVector
, TransformCovariantVector
, and TransformDiffusionTensor
. Also, ComputeJacobianWithRespectToParameters
simply returns an identity matrix (see method documentation), and ComputeJacobianWithRespectToPosition
should be used.
Definition at line 87 of file itkDisplacementFieldTransform.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeType = typename Superclass::DerivativeType |
using | DirectionType = typename DisplacementFieldType::DirectionType |
using | DisplacementFieldConstPointer = typename DisplacementFieldType::ConstPointer |
using | DisplacementFieldPointer = typename DisplacementFieldType::Pointer |
using | DisplacementFieldType = Image< OutputVectorType, Dimension > |
using | FixedParametersType = typename Superclass::FixedParametersType |
using | FixedParametersValueType = typename Superclass::FixedParametersValueType |
using | IndexType = typename DisplacementFieldType::IndexType |
using | InputCovariantVectorType = typename Superclass::InputCovariantVectorType |
using | InputDiffusionTensor3DType = typename Superclass::InputDiffusionTensor3DType |
using | InputPointType = typename Superclass::InputPointType |
using | InputTensorEigenVectorType = CovariantVector< ScalarType, InputDiffusionTensor3DType::Dimension > |
using | InputVectorPixelType = typename Superclass::InputVectorPixelType |
using | InputVectorType = typename Superclass::InputVectorType |
using | InputVnlVectorType = typename Superclass::InputVnlVectorType |
using | InterpolatorType = VectorInterpolateImageFunction< DisplacementFieldType, ScalarType > |
using | InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType |
using | InverseTransformBasePointer = typename Superclass::InverseTransformBasePointer |
using | JacobianPositionType = typename Superclass::JacobianPositionType |
using | JacobianType = typename Superclass::JacobianType |
using | NumberOfParametersType = typename Superclass::NumberOfParametersType |
using | OptimizerParametersHelperType = ImageVectorOptimizerParametersHelper< ScalarType, OutputVectorType::Dimension, Dimension > |
using | OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType |
using | OutputDiffusionTensor3DType = typename Superclass::OutputDiffusionTensor3DType |
using | OutputPointType = typename Superclass::OutputPointType |
using | OutputTensorEigenVectorType = CovariantVector< ScalarType, OutputDiffusionTensor3DType::Dimension > |
using | OutputVectorPixelType = typename Superclass::OutputVectorPixelType |
using | OutputVectorType = typename Superclass::OutputVectorType |
using | OutputVnlVectorType = typename Superclass::OutputVnlVectorType |
using | ParametersType = typename Superclass::ParametersType |
using | ParametersValueType = typename Superclass::ParametersValueType |
using | PixelType = typename DisplacementFieldType::PixelType |
using | Pointer = SmartPointer< Self > |
using | PointType = typename DisplacementFieldType::PointType |
using | RegionType = typename DisplacementFieldType::RegionType |
using | ScalarType = typename Superclass::ScalarType |
using | Self = DisplacementFieldTransform |
using | SizeType = typename DisplacementFieldType::SizeType |
using | SpacingType = typename DisplacementFieldType::SpacingType |
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 | Dimension = NDimensions |
Static Public Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
static constexpr unsigned int | InputSpaceDimension |
static constexpr unsigned int | OutputSpaceDimension |
Protected Member Functions | |
DisplacementFieldTransform () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~DisplacementFieldTransform () 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 () |
Protected Attributes | |
DisplacementFieldType::Pointer | m_DisplacementField |
ModifiedTimeType | m_DisplacementFieldSetTime { 0 } |
JacobianType | m_IdentityJacobian |
InterpolatorType::Pointer | m_Interpolator |
DisplacementFieldType::Pointer | m_InverseDisplacementField |
InterpolatorType::Pointer | m_InverseInterpolator |
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 |
Private Member Functions | |
virtual void | ComputeJacobianWithRespectToPositionInternal (const IndexType &index, JacobianPositionType &jacobian, bool doInverseJacobian) const |
virtual void | SetFixedParametersFromDisplacementField () const |
virtual void | VerifyFixedParametersInformation () |
Private Attributes | |
double | m_CoordinateTolerance |
double | m_DirectionTolerance |
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::ConstPointer = SmartPointer<const Self> |
Definition at line 97 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::DerivativeType = typename Superclass::DerivativeType |
Derivative type
Definition at line 158 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::DirectionType = typename DisplacementFieldType::DirectionType |
Definition at line 176 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::DisplacementFieldConstPointer = typename DisplacementFieldType::ConstPointer |
Definition at line 166 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::DisplacementFieldPointer = typename DisplacementFieldType::Pointer |
Definition at line 165 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::DisplacementFieldType = Image<OutputVectorType, Dimension> |
Define the displacement field type and corresponding interpolator type.
Definition at line 164 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::FixedParametersType = typename Superclass::FixedParametersType |
Type of the input parameters.
Definition at line 112 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::FixedParametersValueType = typename Superclass::FixedParametersValueType |
Definition at line 113 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::IndexType = typename DisplacementFieldType::IndexType |
Standard types for the displacement Field
Definition at line 172 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InputCovariantVectorType = typename Superclass::InputCovariantVectorType |
Standard covariant vector type for this class
Definition at line 140 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InputDiffusionTensor3DType = typename Superclass::InputDiffusionTensor3DType |
Standard diffusion tensor type for this class
Definition at line 148 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InputPointType = typename Superclass::InputPointType |
Standard coordinate point type for this class.
Definition at line 129 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InputTensorEigenVectorType = CovariantVector<ScalarType, InputDiffusionTensor3DType::Dimension> |
Standard tensor type for this class
Definition at line 153 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InputVectorPixelType = typename Superclass::InputVectorPixelType |
Definition at line 136 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InputVectorType = typename Superclass::InputVectorType |
Standard vector type for this class.
Definition at line 133 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InputVnlVectorType = typename Superclass::InputVnlVectorType |
Standard vnl_vector type for this class.
Definition at line 144 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InterpolatorType = VectorInterpolateImageFunction <DisplacementFieldType, ScalarType> |
Definition at line 169 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType |
Definition at line 120 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::InverseTransformBasePointer = typename Superclass::InverseTransformBasePointer |
InverseTransform type.
Definition at line 106 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::JacobianPositionType = typename Superclass::JacobianPositionType |
Definition at line 119 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::JacobianType = typename Superclass::JacobianType |
Jacobian types.
Definition at line 118 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::NumberOfParametersType = typename Superclass::NumberOfParametersType |
The number of parameters defininig this transform.
Definition at line 126 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OptimizerParametersHelperType = ImageVectorOptimizerParametersHelper< ScalarType, OutputVectorType::Dimension, Dimension> |
Define the internal parameter helper used to access the field
Definition at line 184 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType |
Definition at line 141 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OutputDiffusionTensor3DType = typename Superclass::OutputDiffusionTensor3DType |
Definition at line 149 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OutputPointType = typename Superclass::OutputPointType |
Definition at line 130 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OutputTensorEigenVectorType = CovariantVector<ScalarType, OutputDiffusionTensor3DType::Dimension> |
Definition at line 155 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OutputVectorPixelType = typename Superclass::OutputVectorPixelType |
Definition at line 137 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OutputVectorType = typename Superclass::OutputVectorType |
Definition at line 134 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::OutputVnlVectorType = typename Superclass::OutputVnlVectorType |
Definition at line 145 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::ParametersType = typename Superclass::ParametersType |
Definition at line 114 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::ParametersValueType = typename Superclass::ParametersValueType |
Definition at line 115 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::PixelType = typename DisplacementFieldType::PixelType |
Definition at line 178 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::Pointer = SmartPointer<Self> |
Definition at line 96 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::PointType = typename DisplacementFieldType::PointType |
Definition at line 177 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::RegionType = typename DisplacementFieldType::RegionType |
Definition at line 173 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::ScalarType = typename Superclass::ScalarType |
Scalar type.
Definition at line 109 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::Self = DisplacementFieldTransform |
Standard class type aliases.
Definition at line 94 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::SizeType = typename DisplacementFieldType::SizeType |
Definition at line 174 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::SpacingType = typename DisplacementFieldType::SpacingType |
Definition at line 175 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::Superclass = Transform<TParametersValueType, NDimensions, NDimensions> |
Definition at line 95 of file itkDisplacementFieldTransform.h.
using itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::TransformCategoryType = typename Superclass::TransformCategoryType |
Transform category type.
Definition at line 123 of file itkDisplacementFieldTransform.h.
|
protected |
|
overrideprotecteddefault |
|
override |
Compute the jacobian with respect to the position, by point. j
will be resized as needed.
|
inlineoverride |
Compute the jacobian with respect to the parameters at a point. Simply returns identity matrix, sized [NDimensions, NDimensions].
T(x, p), x is the position, p is the local parameter at position x. Take a 2D example, x = (x0, x1), p = (p0, p1) and T(x, p) is defined as:
T(x, p) = (T0, T1) = (x0+p0, x1+p1)
Each local deformation is defined as a translation transform. So the Jacobian w.r.t parameters are
dT/dp = [ dT0/dp0, dT0/dp1; dT1/dp0, dT1/dp1 ];
= [1, 0; 0, 1];
TODO: format the above for doxygen formula.
Definition at line 325 of file itkDisplacementFieldTransform.h.
|
inlinevirtual |
Compute the jacobian with respect to the parameters at an index. Simply returns identity matrix, sized [NDimensions, NDimensions]. See ComputeJacobianWithRespectToParameters
( InputPointType, ... ) for rationale.
Definition at line 338 of file itkDisplacementFieldTransform.h.
|
override |
Compute the jacobian with respect to the position, by point. j
will be resized as needed.
|
virtual |
Compute the jacobian with respect to the position, by index. j
will be resized as needed.
|
privatevirtual |
Internal method for calculating either forward or inverse jacobian, depending on state of doInverseJacobian
. Used by public methods ComputeJacobianWithRespectToPosition
and GetInverseJacobianOfForwardFieldWithRespectToPosition
to perform actual work. doInverseJacobian
indicates that the inverse jacobian should be returned
|
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.
Reimplemented in itk::TimeVaryingBSplineVelocityFieldTransform< TParametersValueType, NDimensions >, itk::GaussianExponentialDiffeomorphicTransform< TParametersValueType, NDimensions >, itk::TimeVaryingVelocityFieldTransform< TParametersValueType, NDimensions >, itk::GaussianSmoothingOnUpdateDisplacementFieldTransform< TParametersValueType, NDimensions >, itk::GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform< TParametersValueType, NDimensions >, and itk::VelocityFieldTransform< TParametersValueType, NDimensions >.
|
virtual |
Set/Get the coordinate tolerance. This tolerance is used when comparing the space defined by deformation fields and it's inverse to ensure they occupy the same physical space.
|
virtual |
Set/Get the direction tolerance. This tolerance is used to when comparing the orientation of the deformation fields and it's inverse to ensure they occupy the same physical space.
|
virtual |
Get/Set the displacement field. Set the displacement field. Create special set accessor to update interpolator and assign displacement field to transform parameters container.
|
virtual |
Get the modification time of displacement field.
|
virtual |
Get/Set the interpolator. Create out own set accessor that assigns the displacement field.
bool itk::DisplacementFieldTransform< TParametersValueType, NDimensions >::GetInverse | ( | Self * | inverse | ) | const |
Return an inverse of this transform. Note that the inverse displacement field must be set by the user.
|
virtual |
Get/Set the inverse displacement field. This must be supplied by the user for GetInverse() to work.
|
virtual |
Get/Set the interpolator for the inverse field. Create out own set accessor that assigns the displacement field.
|
virtual |
Compute the inverse jacobian of the forward displacement field with respect to the position, by point. Note that this is different than the jacobian of the inverse displacement field. This takes advantage of the ability to compute the inverse jacobian of a displacement field by simply reversing the sign of the forward jacobian. However, a more accurate method for computing the inverse jacobian is to take the inverse of the jacobian matrix. This method is more computationally expensive and may be used by setting useSVD
to true
|
virtual |
Compute the inverse jacobian of the forward displacement field with respect to the position, by index.Note that this is different than the jacobian of the inverse displacement field. This takes advantage of the ability to compute the inverse jacobian of a displacement field by simply reversing the sign of the forward jacobian. However, a more accurate method for computing the inverse jacobian is to take the inverse of the jacobian matrix. This method is more computationally expensive and may be used by setting useSVD
to true
|
overridevirtual |
Return an inverse of this transform. Note that the inverse displacement field must be set by the user.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Reimplemented in itk::VelocityFieldTransform< TParametersValueType, NDimensions >.
|
virtual |
Get/Set the displacement field. Set the displacement field. Create special set accessor to update interpolator and assign displacement field to transform parameters container.
|
virtual |
Get/Set the interpolator. Create out own set accessor that assigns the displacement field.
|
virtual |
Get/Set the inverse displacement field. This must be supplied by the user for GetInverse() to work.
|
virtual |
Get/Set the interpolator for the inverse field. Create out own set accessor that assigns the displacement field.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Reimplemented in itk::TimeVaryingBSplineVelocityFieldTransform< TParametersValueType, NDimensions >, itk::BSplineExponentialDiffeomorphicTransform< TParametersValueType, NDimensions >, itk::GaussianExponentialDiffeomorphicTransform< TParametersValueType, NDimensions >, itk::TimeVaryingVelocityFieldTransform< TParametersValueType, NDimensions >, itk::BSplineSmoothingOnUpdateDisplacementFieldTransform< TParametersValueType, NDimensions >, itk::GaussianSmoothingOnUpdateDisplacementFieldTransform< TParametersValueType, NDimensions >, itk::GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform< TParametersValueType, NDimensions >, itk::ConstantVelocityFieldTransform< TParametersValueType, NDimensions >, and itk::VelocityFieldTransform< TParametersValueType, NDimensions >.
|
inlineoverridevirtual |
Return the number of local parameters that completely defines the Transform at an individual voxel. For transforms with local support, this will enable downstream computation of the jacobian wrt only the local support region. For instance, in the case of a deformation field, this will be equal to the number of image dimensions. If it is an affine transform, this will be the same as the GetNumberOfParameters().
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 413 of file itkDisplacementFieldTransform.h.
References itk::GTest::TypedefsAndConstructors::Dimension2::Dimension.
|
inlineoverridevirtual |
This transform is not linear.
Implements itk::TransformBaseTemplate< TParametersValueType >.
Definition at line 408 of file itkDisplacementFieldTransform.h.
|
static |
New macro for creation of through a Smart Pointer
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
Reimplemented in itk::VelocityFieldTransform< TParametersValueType, NDimensions >, itk::TimeVaryingBSplineVelocityFieldTransform< TParametersValueType, NDimensions >, itk::GaussianExponentialDiffeomorphicTransform< TParametersValueType, NDimensions >, itk::GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform< TParametersValueType, NDimensions >, and itk::GaussianSmoothingOnUpdateDisplacementFieldTransform< TParametersValueType, NDimensions >.
|
virtual |
Set/Get the coordinate tolerance. This tolerance is used when comparing the space defined by deformation fields and it's inverse to ensure they occupy the same physical space.
|
virtual |
Set/Get the direction tolerance. This tolerance is used to when comparing the orientation of the deformation fields and it's inverse to ensure they occupy the same physical space.
|
virtual |
Get/Set the displacement field. Set the displacement field. Create special set accessor to update interpolator and assign displacement field to transform parameters container.
Reimplemented in itk::VelocityFieldTransform< TParametersValueType, NDimensions >.
|
overridevirtual |
This method sets the fixed parameters of the transform. For a displacement field transform, the fixed parameters are the following: field size, field origin, field spacing, and field direction.
Note: If a displacement field already exists, this function creates a new one with zero displacement (identity transform). If an inverse displacement field exists, a new one is also created.
Implements itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Reimplemented in itk::VelocityFieldTransform< TParametersValueType, NDimensions >.
|
privatevirtual |
Convenience method which reads the information from the current displacement field into m_FixedParameters.
|
virtual |
|
virtual |
Get/Set the interpolator. Create out own set accessor that assigns the displacement field.
|
virtual |
Get/Set the inverse displacement field. This must be supplied by the user for GetInverse() to work.
|
virtual |
Get/Set the interpolator for the inverse field. Create out own set accessor that assigns the displacement field.
|
inlineoverridevirtual |
Set the transformation parameters. This sets the displacement field image directly.
Implements itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 276 of file itkDisplacementFieldTransform.h.
References itk::Array< TValue >::Size().
|
inlineoverride |
Definition at line 259 of file itkDisplacementFieldTransform.h.
|
inlineoverride |
Definition at line 267 of file itkDisplacementFieldTransform.h.
|
inline |
Definition at line 242 of file itkDisplacementFieldTransform.h.
|
inline |
Definition at line 250 of file itkDisplacementFieldTransform.h.
|
override |
Method to transform a point. Out-of-bounds points will be returned with zero displacemnt.
|
inlineoverride |
Definition at line 221 of file itkDisplacementFieldTransform.h.
|
inlineoverride |
Definition at line 228 of file itkDisplacementFieldTransform.h.
|
inlineoverride |
Definition at line 234 of file itkDisplacementFieldTransform.h.
|
override |
|
privatevirtual |
Internal method to check that the inverse and forward displacement fields have the same fixed parameters.
|
static |
Dimension of the domain spaces.
Definition at line 161 of file itkDisplacementFieldTransform.h.
|
private |
Definition at line 487 of file itkDisplacementFieldTransform.h.
|
private |
Definition at line 488 of file itkDisplacementFieldTransform.h.
|
protected |
The displacement field and its inverse (if it exists).
Definition at line 447 of file itkDisplacementFieldTransform.h.
|
protected |
Track when the displacement field was last set/assigned, as distinct from when it may have had its contents modified.
Definition at line 456 of file itkDisplacementFieldTransform.h.
|
protected |
Create an identity jacobian for use in ComputeJacobianWithRespectToParameters.
Definition at line 460 of file itkDisplacementFieldTransform.h.
|
protected |
The interpolator.
Definition at line 451 of file itkDisplacementFieldTransform.h.
|
protected |
Definition at line 448 of file itkDisplacementFieldTransform.h.
|
protected |
Definition at line 452 of file itkDisplacementFieldTransform.h.