ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::KernelTransform< TParametersValueType, VDimension > Class Template Reference

#include <itkKernelTransform.h>

Detailed Description

template<typename TParametersValueType, unsigned int VDimension>
class itk::KernelTransform< TParametersValueType, VDimension >

Intended to be a base class for elastic body spline and thin plate spline. This is implemented in as straightforward a manner as possible from [30]. Notation closely follows the paper, so if you have it in front of you, this code will make a lot more sense.

KernelTransform: Provides support for defining source and target landmarks Defines a number of data types used in the computations Defines the mathematical framework used to compute all splines, so that subclasses need only provide a kernel specific to that spline

This formulation allows the stiffness of the spline to be adjusted, allowing the spline to vary from interpolating the landmarks to approximating the landmarks. This part of the formulation is based on [109].

Definition at line 57 of file itkKernelTransform.h.

+ Inheritance diagram for itk::KernelTransform< TParametersValueType, VDimension >:
+ Collaboration diagram for itk::KernelTransform< TParametersValueType, VDimension >:

Public Types

using AMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, VDimension>
 
using BMatrixType = vnl_vector_fixed<TParametersValueType, VDimension>
 
using ColumnMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, 1>
 
using ConstPointer = SmartPointer<const Self>
 
using DMatrixType = vnl_matrix<TParametersValueType>
 
using GMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, VDimension>
 
using IMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, VDimension>
 
using InputCovariantVectorType
 
using InputPointType
 
using InputVectorType
 
using InputVnlVectorType
 
using InverseJacobianPositionType
 
using JacobianPositionType
 
using JacobianType
 
using KMatrixType = vnl_matrix<TParametersValueType>
 
using LMatrixType = vnl_matrix<TParametersValueType>
 
using OutputCovariantVectorType
 
using OutputPointType
 
using OutputVectorType
 
using OutputVnlVectorType
 
using PMatrixType = vnl_matrix<TParametersValueType>
 
using Pointer = SmartPointer<Self>
 
using PointIdentifier = typename PointSetType::PointIdentifier
 
using PointsConstIterator = typename PointSetType::PointsContainerConstIterator
 
using PointsContainer = typename PointSetType::PointsContainer
 
using PointSetPointer = typename PointSetType::Pointer
 
using PointSetTraitsType
 
using PointSetType = PointSet<InputPointType, VDimension, PointSetTraitsType>
 
using PointsIterator = typename PointSetType::PointsContainerIterator
 
using RowMatrixType = vnl_matrix_fixed<TParametersValueType, 1, VDimension>
 
using ScalarType
 
using Self = KernelTransform
 
using Superclass = Transform<TParametersValueType, VDimension, VDimension>
 
using VectorSetPointer = typename VectorSetType::Pointer
 
using VectorSetType = itk::VectorContainer<InputVectorType>
 
using WMatrixType = vnl_matrix<TParametersValueType>
 
using YMatrixType = vnl_matrix<TParametersValueType>
 
- Public Types inherited from itk::Transform< TParametersValueType, VDimension, VDimension >
using ConstPointer
 
using ConstPointer
 
using DerivativeType
 
using DerivativeType
 
using DirectionChangeMatrix
 
using DirectionChangeMatrix
 
typedef OptimizerParameters< FixedParametersValueTypeFixedParametersType
 
using FixedParametersType
 
typedef double FixedParametersValueType
 
using FixedParametersValueType
 
using InputCovariantVectorType
 
using InputCovariantVectorType
 
using InputDiffusionTensor3DType
 
using InputDiffusionTensor3DType
 
using InputDirectionMatrix
 
using InputDirectionMatrix
 
using InputPointType
 
using InputPointType
 
using InputSymmetricSecondRankTensorType
 
using InputSymmetricSecondRankTensorType
 
using InputVectorPixelType
 
using InputVectorPixelType
 
using InputVectorType
 
using InputVectorType
 
using InputVnlVectorType
 
using InputVnlVectorType
 
using InverseJacobianPositionType
 
using InverseJacobianPositionType
 
using InverseTransformBasePointer
 
using InverseTransformBasePointer
 
using InverseTransformBaseType
 
using InverseTransformBaseType
 
using JacobianPositionType
 
using JacobianPositionType
 
using JacobianType
 
using JacobianType
 
using MatrixType
 
using MatrixType
 
typedef IdentifierType NumberOfParametersType
 
using NumberOfParametersType
 
using OutputCovariantVectorType
 
using OutputCovariantVectorType
 
using OutputDiffusionTensor3DType
 
using OutputDiffusionTensor3DType
 
using OutputDirectionMatrix
 
using OutputDirectionMatrix
 
using OutputPointType
 
using OutputPointType
 
using OutputSymmetricSecondRankTensorType
 
using OutputSymmetricSecondRankTensorType
 
using OutputVectorPixelType
 
using OutputVectorPixelType
 
using OutputVectorType
 
using OutputVectorType
 
using OutputVnlVectorType
 
using OutputVnlVectorType
 
typedef OptimizerParameters< ParametersValueTypeParametersType
 
using ParametersType
 
typedef TParametersValueType ParametersValueType
 
using ParametersValueType
 
using Pointer
 
using Pointer
 
using ScalarType
 
using ScalarType
 
using Self
 
using Self
 
using Superclass
 
using Superclass
 
typedef TransformBaseTemplateEnums::TransformCategory TransformCategoryEnum
 
using TransformCategoryEnum
 
- Public Types inherited from 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
 
using TransformCategoryEnum = TransformBaseTemplateEnums::TransformCategory
 
using TransformCategoryType = TransformCategoryEnum
 

Public Member Functions

void ComputeJacobianWithRespectToParameters (const InputPointType &p, JacobianType &jacobian) const override
 
void ComputeJacobianWithRespectToPosition (const InputPointType &, JacobianPositionType &) const override
 
void ComputeWMatrix ()
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const VectorSetTypeGetDisplacements () const
 
const FixedParametersTypeGetFixedParameters () const override
 
virtual VectorSetTypeGetModifiableDisplacements ()
 
const char * GetNameOfClass () const override
 
const ParametersTypeGetParameters () const override
 
TransformCategoryEnum GetTransformCategory () const override
 
void SetFixedParameters (const FixedParametersType &) override
 
void SetParameters (const ParametersType &) override
 
OutputPointType TransformPoint (const InputPointType &thisPoint) const override
 
OutputVnlVectorType TransformVector (const InputVnlVectorType &) const override
 
virtual void UpdateParameters () const
 
virtual PointSetTypeGetModifiableSourceLandmarks ()
 
virtual const PointSetTypeGetSourceLandmarks () const
 
virtual void SetSourceLandmarks (PointSetType *)
 
virtual PointSetTypeGetModifiableTargetLandmarks ()
 
virtual const PointSetTypeGetTargetLandmarks () const
 
virtual void SetTargetLandmarks (PointSetType *)
 
OutputVectorType TransformVector (const InputVectorType &) const override
 
virtual OutputVectorType TransformVector (const InputVectorType &vector, const InputPointType &point) const
 
virtual OutputVnlVectorType TransformVector (const InputVnlVectorType &vector, const InputPointType &point) const
 
virtual OutputVectorPixelType TransformVector (const InputVectorPixelType &vector) const
 
virtual OutputVectorPixelType TransformVector (const InputVectorPixelType &vector, const InputPointType &point) const
 
OutputCovariantVectorType TransformCovariantVector (const InputCovariantVectorType &) const override
 
virtual OutputCovariantVectorType TransformCovariantVector (const InputCovariantVectorType &vector, const InputPointType &point) const
 
virtual OutputVectorPixelType TransformCovariantVector (const InputVectorPixelType &vector) const
 
virtual OutputVectorPixelType TransformCovariantVector (const InputVectorPixelType &vector, const InputPointType &point) const
 
virtual void SetStiffness (double _arg)
 
virtual double GetStiffness () const
 
- Public Member Functions inherited from itk::Transform< TParametersValueType, VDimension, VDimension >
virtual void ComputeInverseJacobianWithRespectToPosition (const InputPointType &pnt, InverseJacobianPositionType &jacobian) const
 
virtual void ComputeInverseJacobianWithRespectToPosition (const InputPointType &pnt, InverseJacobianPositionType &jacobian) const
 
virtual void ComputeJacobianWithRespectToParametersCachedTemporaries (const InputPointType &p, JacobianType &jacobian, JacobianType &cachedJacobian) const
 
virtual void ComputeJacobianWithRespectToParametersCachedTemporaries (const InputPointType &p, JacobianType &jacobian, JacobianType &cachedJacobian) const
 
void CopyInFixedParameters (const FixedParametersValueType *const begin, const FixedParametersValueType *const end) override
 
void CopyInFixedParameters (const FixedParametersValueType *const begin, const FixedParametersValueType *const end) override
 
void CopyInParameters (const ParametersValueType *const begin, const ParametersValueType *const end) override
 
void CopyInParameters (const ParametersValueType *const begin, const ParametersValueType *const end) override
 
const FixedParametersTypeGetFixedParameters () const override
 
const FixedParametersTypeGetFixedParameters () const override
 
unsigned int GetInputSpaceDimension () const override
 
unsigned int GetInputSpaceDimension () const override
 
bool GetInverse (Self *inverseTransform) const
 
bool GetInverse (Self *inverseTransform) const
 
virtual InverseTransformBasePointer GetInverseTransform () const
 
virtual InverseTransformBasePointer GetInverseTransform () const
 
const char * GetNameOfClass () const override
 
const char * GetNameOfClass () const override
 
virtual NumberOfParametersType GetNumberOfFixedParameters () const
 
virtual NumberOfParametersType GetNumberOfFixedParameters () const
 
virtual NumberOfParametersType GetNumberOfLocalParameters () const
 
virtual NumberOfParametersType GetNumberOfLocalParameters () const
 
NumberOfParametersType GetNumberOfParameters () const override
 
NumberOfParametersType GetNumberOfParameters () const override
 
unsigned int GetOutputSpaceDimension () const override
 
unsigned int GetOutputSpaceDimension () const override
 
const ParametersTypeGetParameters () const override
 
const ParametersTypeGetParameters () const override
 
TransformCategoryEnum GetTransformCategory () const override
 
TransformCategoryEnum GetTransformCategory () const override
 
std::string GetTransformTypeAsString () const override
 
std::string GetTransformTypeAsString () const override
 
virtual bool IsLinear () const
 
virtual bool IsLinear () const
 
 itkCloneMacro (Self)
 
 itkCloneMacro (Self)
 
void SetParametersByValue (const ParametersType &p) override
 
void SetParametersByValue (const ParametersType &p) override
 
virtual OutputDiffusionTensor3DType TransformDiffusionTensor3D (const InputDiffusionTensor3DType &inputTensor, const InputPointType &point) const
 
virtual OutputDiffusionTensor3DType TransformDiffusionTensor3D (const InputDiffusionTensor3DType &inputTensor, const InputPointType &point) const
 
virtual OutputDiffusionTensor3DType TransformDiffusionTensor3D (const InputDiffusionTensor3DType &tensor) const
 
virtual OutputDiffusionTensor3DType TransformDiffusionTensor3D (const InputDiffusionTensor3DType &tensor) const
 
virtual OutputVectorPixelType TransformDiffusionTensor3D (const InputVectorPixelType &inputTensor, const InputPointType &point) const
 
virtual OutputVectorPixelType TransformDiffusionTensor3D (const InputVectorPixelType &inputTensor, const InputPointType &point) const
 
virtual OutputVectorPixelType TransformDiffusionTensor3D (const InputVectorPixelType &tensor) const
 
virtual OutputVectorPixelType TransformDiffusionTensor3D (const InputVectorPixelType &tensor) const
 
virtual OutputSymmetricSecondRankTensorType TransformSymmetricSecondRankTensor (const InputSymmetricSecondRankTensorType &inputTensor, const InputPointType &point) const
 
virtual OutputSymmetricSecondRankTensorType TransformSymmetricSecondRankTensor (const InputSymmetricSecondRankTensorType &inputTensor, const InputPointType &point) const
 
virtual OutputSymmetricSecondRankTensorType TransformSymmetricSecondRankTensor (const InputSymmetricSecondRankTensorType &tensor) const
 
virtual OutputSymmetricSecondRankTensorType TransformSymmetricSecondRankTensor (const InputSymmetricSecondRankTensorType &tensor) const
 
virtual OutputVectorPixelType TransformSymmetricSecondRankTensor (const InputVectorPixelType &inputTensor, const InputPointType &point) const
 
virtual OutputVectorPixelType TransformSymmetricSecondRankTensor (const InputVectorPixelType &inputTensor, const InputPointType &point) const
 
virtual OutputVectorPixelType TransformSymmetricSecondRankTensor (const InputVectorPixelType &tensor) const
 
virtual OutputVectorPixelType TransformSymmetricSecondRankTensor (const InputVectorPixelType &tensor) const
 
virtual void UpdateTransformParameters (const DerivativeType &update, ParametersValueType factor=1.0)
 
virtual void UpdateTransformParameters (const DerivativeType &update, ParametersValueType factor=1.0)
 
std::enable_if_t< TImage::ImageDimension==VInputDimension &&TImage::ImageDimension==VOutputDimension, void > ApplyToImageMetadata (TImage *image) const
 
std::enable_if_t< TImage::ImageDimension==VInputDimension &&TImage::ImageDimension==VOutputDimension, void > ApplyToImageMetadata (SmartPointer< TImage > image) const
 
std::enable_if_t< TImage::ImageDimension==VInputDimension &&TImage::ImageDimension==VOutputDimension, void > ApplyToImageMetadata (TImage *image) const
 
std::enable_if_t< TImage::ImageDimension==VInputDimension &&TImage::ImageDimension==VOutputDimension, void > ApplyToImageMetadata (SmartPointer< TImage > image) const
 
- Public Member Functions inherited from TransformBaseTemplate< TParametersValueType >
 ITK_DISALLOW_COPY_AND_MOVE (TransformBaseTemplate)
 
 itkGetConstReferenceMacro (InputSpaceName, std::string)
 
 itkGetConstReferenceMacro (OutputSpaceName, std::string)
 
 itkOverrideGetNameOfClassMacro (TransformBaseTemplate)
 
 itkSetMacro (InputSpaceName, std::string)
 
 itkSetMacro (OutputSpaceName, std::string)
 
virtual void SetFixedParameters (const FixedParametersType &)=0
 
virtual void SetParameters (const ParametersType &)=0
 
virtual void SetParametersByValue (const ParametersType &p)=0
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static constexpr unsigned int SpaceDimension = VDimension
 
- Static Public Attributes inherited from itk::Transform< TParametersValueType, VDimension, VDimension >
static constexpr unsigned int InputSpaceDimension
 
static constexpr unsigned int InputSpaceDimension
 
static constexpr unsigned int OutputSpaceDimension
 
static constexpr unsigned int OutputSpaceDimension
 
- Static Public Attributes inherited from TransformBaseTemplate< TParametersValueType >
static constexpr TransformCategoryEnum BSpline = TransformCategoryEnum::BSpline
 
static constexpr TransformCategoryEnum DisplacementField = TransformCategoryEnum::DisplacementField
 
static constexpr TransformCategoryEnum Linear = TransformCategoryEnum::Linear
 
static constexpr TransformCategoryEnum Spline = TransformCategoryEnum::Spline
 
static constexpr TransformCategoryEnum UnknownTransformCategory = TransformCategoryEnum::UnknownTransformCategory
 
static constexpr TransformCategoryEnum VelocityField = TransformCategoryEnum::VelocityField
 

Protected Member Functions

void ComputeD ()
 
virtual void ComputeDeformationContribution (const InputPointType &thisPoint, OutputPointType &result) const
 
virtual void ComputeG (const InputVectorType &landmarkVector, GMatrixType &gmatrix) const
 
void ComputeK ()
 
void ComputeL ()
 
void ComputeP ()
 
virtual const GMatrixTypeComputeReflexiveG (PointsIterator) const
 
void ComputeY ()
 
 KernelTransform ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void ReorganizeW ()
 
 ~KernelTransform () override=default
 
- Protected Member Functions inherited from itk::Transform< TParametersValueType, VDimension, VDimension >
LightObject::Pointer InternalClone () const override
 
LightObject::Pointer InternalClone () const override
 
OutputDiffusionTensor3DType PreservationOfPrincipalDirectionDiffusionTensor3DReorientation (const InputDiffusionTensor3DType &, const InverseJacobianPositionType &) const
 
OutputDiffusionTensor3DType PreservationOfPrincipalDirectionDiffusionTensor3DReorientation (const InputDiffusionTensor3DType &, const InverseJacobianPositionType &) const
 
 Transform ()=default
 
 Transform ()=default
 
 Transform (NumberOfParametersType numberOfParameters)
 
 Transform (NumberOfParametersType numberOfParameters)
 
 ~Transform () override=default
 
 ~Transform () override=default
 
- Protected Member Functions inherited from TransformBaseTemplate< TParametersValueType >
 TransformBaseTemplate ()=default
 
 ~TransformBaseTemplate () override=default
 

Protected Attributes

AMatrixType m_AMatrix {}
 
BMatrixType m_BVector {}
 
VectorSetPointer m_Displacements {}
 
DMatrixType m_DMatrix {}
 
GMatrixType m_GMatrix {}
 
IMatrixType m_I {}
 
KMatrixType m_KMatrix {}
 
LMatrixType m_LMatrix {}
 
PMatrixType m_PMatrix {}
 
PointSetPointer m_SourceLandmarks {}
 
double m_Stiffness {}
 
PointSetPointer m_TargetLandmarks {}
 
WMatrixType m_WMatrix {}
 
bool m_WMatrixComputed {}
 
YMatrixType m_YMatrix {}
 
- Protected Attributes inherited from itk::Transform< TParametersValueType, VDimension, VDimension >
FixedParametersType m_FixedParameters
 
FixedParametersType m_FixedParameters
 
ParametersType m_Parameters
 
ParametersType m_Parameters
 

Additional Inherited Members

- Static Protected Member Functions inherited from itk::Transform< TParametersValueType, VDimension, VDimension >
static InverseTransformBasePointer InvertTransform (const TTransform &transform)
 
static InverseTransformBasePointer InvertTransform (const TTransform &transform)
 

Member Typedef Documentation

◆ AMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::AMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, VDimension>

'A' matrix type alias. Rotational part of the Affine component

Definition at line 268 of file itkKernelTransform.h.

◆ BMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::BMatrixType = vnl_vector_fixed<TParametersValueType, VDimension>

'B' matrix type alias. Translational part of the Affine component

Definition at line 271 of file itkKernelTransform.h.

◆ ColumnMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::ColumnMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, 1>

Column matrix type alias.

Definition at line 277 of file itkKernelTransform.h.

◆ ConstPointer

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::ConstPointer = SmartPointer<const Self>

Definition at line 66 of file itkKernelTransform.h.

◆ DMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::DMatrixType = vnl_matrix<TParametersValueType>

'D' matrix type alias. Deformation component

Definition at line 265 of file itkKernelTransform.h.

◆ GMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::GMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, VDimension>

'G' matrix type alias.

Definition at line 247 of file itkKernelTransform.h.

◆ IMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::IMatrixType = vnl_matrix_fixed<TParametersValueType, VDimension, VDimension>

'I' (identity) matrix type alias.

Definition at line 177 of file itkKernelTransform.h.

◆ InputCovariantVectorType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::InputCovariantVectorType

Standard covariant vector type for this class

Definition at line 152 of file itkTransform.h.

◆ InputPointType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::InputPointType

Standard coordinate point type for this class

Definition at line 160 of file itkTransform.h.

◆ InputVectorType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::InputVectorType

Standard vector type for this class.

Definition at line 135 of file itkTransform.h.

◆ InputVnlVectorType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::InputVnlVectorType

Standard vnl_vector type for this class.

Definition at line 156 of file itkTransform.h.

◆ InverseJacobianPositionType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::InverseJacobianPositionType

Definition at line 132 of file itkTransform.h.

◆ JacobianPositionType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::JacobianPositionType

Definition at line 131 of file itkTransform.h.

◆ JacobianType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::JacobianType

Type of the Jacobian matrix.

Definition at line 130 of file itkTransform.h.

◆ KMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::KMatrixType = vnl_matrix<TParametersValueType>

'K' matrix type alias.

Definition at line 253 of file itkKernelTransform.h.

◆ LMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::LMatrixType = vnl_matrix<TParametersValueType>

'L' matrix type alias.

Definition at line 250 of file itkKernelTransform.h.

◆ OutputCovariantVectorType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::OutputCovariantVectorType

Definition at line 153 of file itkTransform.h.

◆ OutputPointType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::OutputPointType

Definition at line 161 of file itkTransform.h.

◆ OutputVectorType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::OutputVectorType

Definition at line 136 of file itkTransform.h.

◆ OutputVnlVectorType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::OutputVnlVectorType

Definition at line 157 of file itkTransform.h.

◆ PMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PMatrixType = vnl_matrix<TParametersValueType>

'P' matrix type alias.

Definition at line 256 of file itkKernelTransform.h.

◆ Pointer

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::Pointer = SmartPointer<Self>

Definition at line 65 of file itkKernelTransform.h.

◆ PointIdentifier

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PointIdentifier = typename PointSetType::PointIdentifier

Definition at line 121 of file itkKernelTransform.h.

◆ PointsConstIterator

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PointsConstIterator = typename PointSetType::PointsContainerConstIterator

Definition at line 120 of file itkKernelTransform.h.

◆ PointsContainer

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PointsContainer = typename PointSetType::PointsContainer

Definition at line 118 of file itkKernelTransform.h.

◆ PointSetPointer

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PointSetPointer = typename PointSetType::Pointer

Definition at line 117 of file itkKernelTransform.h.

◆ PointSetTraitsType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PointSetTraitsType
Initial value:

PointList type alias. This type is used for maintaining lists of points, specifically, the source and target landmark lists.

Definition at line 113 of file itkKernelTransform.h.

◆ PointSetType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PointSetType = PointSet<InputPointType, VDimension, PointSetTraitsType>

Definition at line 115 of file itkKernelTransform.h.

◆ PointsIterator

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::PointsIterator = typename PointSetType::PointsContainerIterator

Definition at line 119 of file itkKernelTransform.h.

◆ RowMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::RowMatrixType = vnl_matrix_fixed<TParametersValueType, 1, VDimension>

Row matrix type alias.

Definition at line 274 of file itkKernelTransform.h.

◆ ScalarType

template<typename TParametersValueType, unsigned int VDimension>
using itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::ScalarType

Type of the scalar representing coordinate and vector elements.

Definition at line 127 of file itkTransform.h.

◆ Self

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::Self = KernelTransform

Standard class type aliases.

Definition at line 63 of file itkKernelTransform.h.

◆ Superclass

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::Superclass = Transform<TParametersValueType, VDimension, VDimension>

Definition at line 64 of file itkKernelTransform.h.

◆ VectorSetPointer

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::VectorSetPointer = typename VectorSetType::Pointer

Definition at line 125 of file itkKernelTransform.h.

◆ VectorSetType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::VectorSetType = itk::VectorContainer<InputVectorType>

VectorSet type alias.

Definition at line 124 of file itkKernelTransform.h.

◆ WMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::WMatrixType = vnl_matrix<TParametersValueType>

'W' matrix type alias.

Definition at line 262 of file itkKernelTransform.h.

◆ YMatrixType

template<typename TParametersValueType, unsigned int VDimension>
using itk::KernelTransform< TParametersValueType, VDimension >::YMatrixType = vnl_matrix<TParametersValueType>

'Y' matrix type alias.

Definition at line 259 of file itkKernelTransform.h.

Constructor & Destructor Documentation

◆ KernelTransform()

template<typename TParametersValueType, unsigned int VDimension>
itk::KernelTransform< TParametersValueType, VDimension >::KernelTransform ( )
protected

◆ ~KernelTransform()

template<typename TParametersValueType, unsigned int VDimension>
itk::KernelTransform< TParametersValueType, VDimension >::~KernelTransform ( )
overrideprotecteddefault

Member Function Documentation

◆ ComputeD()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeD ( )
protected

Compute displacements \( q_i - p_i \).

◆ ComputeDeformationContribution()

template<typename TParametersValueType, unsigned int VDimension>
virtual void itk::KernelTransform< TParametersValueType, VDimension >::ComputeDeformationContribution ( const InputPointType & thisPoint,
OutputPointType & result ) const
protectedvirtual

◆ ComputeG()

template<typename TParametersValueType, unsigned int VDimension>
virtual void itk::KernelTransform< TParametersValueType, VDimension >::ComputeG ( const InputVectorType & landmarkVector,
GMatrixType & gmatrix ) const
protectedvirtual

Compute G(x) This is essentially the kernel of the transform. By overriding this method, we can obtain (among others): Elastic body spline Thin plate spline Volume spline

Reimplemented in itk::ThinPlateR2LogRSplineKernelTransform< TParametersValueType, VDimension >, itk::ThinPlateSplineKernelTransform< TParametersValueType, VDimension >, and itk::VolumeSplineKernelTransform< TParametersValueType, VDimension >.

◆ ComputeJacobianWithRespectToParameters()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeJacobianWithRespectToParameters ( const InputPointType & p,
JacobianType & jacobian ) const
overridevirtual

Compute the Jacobian Matrix of the transformation at one point

Implements itk::Transform< TParametersValueType, VDimension, VDimension >.

◆ ComputeJacobianWithRespectToPosition()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeJacobianWithRespectToPosition ( const InputPointType & x,
JacobianPositionType & jacobian ) const
inlineoverridevirtual

This provides the ability to get a local jacobian value in a dense/local transform, e.g. DisplacementFieldTransform. For such transforms it would be unclear what parameters would refer to. Generally, global transforms should return an identity jacobian since there is no change with respect to position.

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

Definition at line 184 of file itkKernelTransform.h.

◆ ComputeK()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeK ( )
protected

Compute K matrix.

◆ ComputeL()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeL ( )
protected

Compute L matrix.

◆ ComputeP()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeP ( )
protected

Compute P matrix.

◆ ComputeReflexiveG()

template<typename TParametersValueType, unsigned int VDimension>
virtual const GMatrixType & itk::KernelTransform< TParametersValueType, VDimension >::ComputeReflexiveG ( PointsIterator ) const
protectedvirtual

Compute a G(x) for a point to itself (i.e. for the block diagonal elements of the matrix K. Parameter indicates for which landmark the reflexive G is to be computed. The default implementation for the reflexive contribution is a diagonal matrix where the diagonal elements are the stiffness of the spline.

Warning
this method is not thread-safe. However this method is called only through ComputeWMatrix() that is itself normally called from a single thread during the initialization of the Transform.

◆ ComputeWMatrix()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeWMatrix ( )

Compute W matrix.

◆ ComputeY()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ComputeY ( )
protected

Compute Y matrix.

◆ CreateAnother()

template<typename TParametersValueType, unsigned int VDimension>
virtual::itk::LightObject::Pointer itk::KernelTransform< TParametersValueType, VDimension >::CreateAnother ( ) const

◆ GetDisplacements()

template<typename TParametersValueType, unsigned int VDimension>
virtual const VectorSetType * itk::KernelTransform< TParametersValueType, VDimension >::GetDisplacements ( ) const
virtual

◆ GetFixedParameters()

template<typename TParametersValueType, unsigned int VDimension>
const FixedParametersType & itk::KernelTransform< TParametersValueType, VDimension >::GetFixedParameters ( ) const
overridevirtual

Get Transform Fixed Parameters - Gets the Target Landmarks

Implements TransformBaseTemplate< TParametersValueType >.

◆ GetModifiableDisplacements()

template<typename TParametersValueType, unsigned int VDimension>
virtual VectorSetType * itk::KernelTransform< TParametersValueType, VDimension >::GetModifiableDisplacements ( )
virtual

Get the displacements list, which we will denote \( d \), where \( d_i = q_i - p_i \).

◆ GetModifiableSourceLandmarks()

template<typename TParametersValueType, unsigned int VDimension>
virtual PointSetType * itk::KernelTransform< TParametersValueType, VDimension >::GetModifiableSourceLandmarks ( )
virtual

Get/Set the source landmarks list, which we will denote \( p \).

◆ GetModifiableTargetLandmarks()

template<typename TParametersValueType, unsigned int VDimension>
virtual PointSetType * itk::KernelTransform< TParametersValueType, VDimension >::GetModifiableTargetLandmarks ( )
virtual

Get the target landmarks list, which we will denote \( q \).

◆ GetNameOfClass()

template<typename TParametersValueType, unsigned int VDimension>
const char * itk::KernelTransform< TParametersValueType, VDimension >::GetNameOfClass ( ) const
override

◆ GetParameters()

template<typename TParametersValueType, unsigned int VDimension>
const ParametersType & itk::KernelTransform< TParametersValueType, VDimension >::GetParameters ( ) const
overridevirtual

Get the Transformation Parameters - Gets the Source Landmarks

Implements TransformBaseTemplate< TParametersValueType >.

◆ GetSourceLandmarks()

template<typename TParametersValueType, unsigned int VDimension>
virtual const PointSetType * itk::KernelTransform< TParametersValueType, VDimension >::GetSourceLandmarks ( ) const
virtual

Get/Set the source landmarks list, which we will denote \( p \).

◆ GetStiffness()

template<typename TParametersValueType, unsigned int VDimension>
virtual double itk::KernelTransform< TParametersValueType, VDimension >::GetStiffness ( ) const
virtual

Stiffness of the spline. A stiffness of zero results in the standard interpolating spline. A non-zero stiffness allows the spline to approximate rather than interpolate the landmarks. Stiffness values are usually rather small, typically in the range of 0.001 to 0.1. The approximating spline formulation is based on [109].

◆ GetTargetLandmarks()

template<typename TParametersValueType, unsigned int VDimension>
virtual const PointSetType * itk::KernelTransform< TParametersValueType, VDimension >::GetTargetLandmarks ( ) const
virtual

Get the target landmarks list, which we will denote \( q \).

◆ GetTransformCategory()

template<typename TParametersValueType, unsigned int VDimension>
TransformCategoryEnum itk::KernelTransform< TParametersValueType, VDimension >::GetTransformCategory ( ) const
inlineoverridevirtual

This transform is not linear, because the transformation of a linear combination of points is not equal to the linear combination of the transformations of individual points

Implements TransformBaseTemplate< TParametersValueType >.

Definition at line 223 of file itkKernelTransform.h.

◆ New()

template<typename TParametersValueType, unsigned int VDimension>
static Pointer itk::KernelTransform< TParametersValueType, VDimension >::New ( )
static

New macro for creation of through a Smart Pointer

◆ PrintSelf()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::PrintSelf ( std::ostream & os,
Indent indent ) const
overrideprotected

◆ ReorganizeW()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::ReorganizeW ( )
protected

Reorganize the components of W into D (deformable), A (rotation part of affine) and B (translational part of affine ) components.

Warning
This method release the memory of the W Matrix

◆ SetFixedParameters()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::SetFixedParameters ( const FixedParametersType & )
overridevirtual

Set Transform Fixed Parameters: To support the transform file writer this function was added to set the target landmarks similar to the SetParameters function setting the source landmarks

Implements itk::Transform< TParametersValueType, VDimension, VDimension >.

◆ SetParameters()

template<typename TParametersValueType, unsigned int VDimension>
void itk::KernelTransform< TParametersValueType, VDimension >::SetParameters ( const ParametersType & )
overridevirtual

Set the Transformation Parameters and update the internal transformation. The parameters represent the source landmarks. Each landmark point is represented by VDimension doubles. All the landmarks are concatenated to form one flat Array<double>.

Implements itk::Transform< TParametersValueType, VDimension, VDimension >.

◆ SetSourceLandmarks()

template<typename TParametersValueType, unsigned int VDimension>
virtual void itk::KernelTransform< TParametersValueType, VDimension >::SetSourceLandmarks ( PointSetType * )
virtual

Get/Set the source landmarks list, which we will denote \( p \).

◆ SetStiffness()

template<typename TParametersValueType, unsigned int VDimension>
virtual void itk::KernelTransform< TParametersValueType, VDimension >::SetStiffness ( double _arg)
virtual

Stiffness of the spline. A stiffness of zero results in the standard interpolating spline. A non-zero stiffness allows the spline to approximate rather than interpolate the landmarks. Stiffness values are usually rather small, typically in the range of 0.001 to 0.1. The approximating spline formulation is based on [109].

◆ SetTargetLandmarks()

template<typename TParametersValueType, unsigned int VDimension>
virtual void itk::KernelTransform< TParametersValueType, VDimension >::SetTargetLandmarks ( PointSetType * )
virtual

Get the target landmarks list, which we will denote \( q \).

◆ TransformCovariantVector() [1/4]

template<typename TParametersValueType, unsigned int VDimension>
OutputCovariantVectorType itk::KernelTransform< TParametersValueType, VDimension >::TransformCovariantVector ( const InputCovariantVectorType & ) const
inlineoverridevirtual

Method to transform a CovariantVector.

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

Definition at line 169 of file itkKernelTransform.h.

◆ TransformCovariantVector() [2/4]

template<typename TParametersValueType, unsigned int VDimension>
virtual OutputCovariantVectorType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformCovariantVector ( const InputCovariantVectorType & vector,
const InputPointType & point ) const
virtual

◆ TransformCovariantVector() [3/4]

template<typename TParametersValueType, unsigned int VDimension>
virtual OutputVectorPixelType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformCovariantVector ( const InputVectorPixelType & vector) const
inlinevirtual

Method to transform a CovariantVector.

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

Definition at line 252 of file itkTransform.h.

◆ TransformCovariantVector() [4/4]

template<typename TParametersValueType, unsigned int VDimension>
virtual OutputVectorPixelType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformCovariantVector ( const InputVectorPixelType & vector,
const InputPointType & point ) const
virtual

◆ TransformPoint()

template<typename TParametersValueType, unsigned int VDimension>
OutputPointType itk::KernelTransform< TParametersValueType, VDimension >::TransformPoint ( const InputPointType & thisPoint) const
overridevirtual

Compute the position of point in the new space

Implements itk::Transform< TParametersValueType, VDimension, VDimension >.

◆ TransformVector() [1/6]

template<typename TParametersValueType, unsigned int VDimension>
virtual OutputVectorPixelType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformVector ( const InputVectorPixelType & vector) const
inlinevirtual

These vector transforms are not implemented for this transform

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

Definition at line 218 of file itkTransform.h.

◆ TransformVector() [2/6]

template<typename TParametersValueType, unsigned int VDimension>
virtual OutputVectorPixelType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformVector ( const InputVectorPixelType & vector,
const InputPointType & point ) const
virtual

These vector transforms are not implemented for this transform

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

◆ TransformVector() [3/6]

template<typename TParametersValueType, unsigned int VDimension>
OutputVectorType itk::KernelTransform< TParametersValueType, VDimension >::TransformVector ( const InputVectorType & ) const
inlineoverridevirtual

These vector transforms are not implemented for this transform

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

Definition at line 154 of file itkKernelTransform.h.

◆ TransformVector() [4/6]

template<typename TParametersValueType, unsigned int VDimension>
virtual OutputVectorType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformVector ( const InputVectorType & vector,
const InputPointType & point ) const
virtual

These vector transforms are not implemented for this transform

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

◆ TransformVector() [5/6]

template<typename TParametersValueType, unsigned int VDimension>
OutputVnlVectorType itk::KernelTransform< TParametersValueType, VDimension >::TransformVector ( const InputVnlVectorType & ) const
inlineoverridevirtual

Method to transform a vnl_vector.

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

Definition at line 161 of file itkKernelTransform.h.

◆ TransformVector() [6/6]

template<typename TParametersValueType, unsigned int VDimension>
virtual OutputVnlVectorType itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::TransformVector ( const InputVnlVectorType & vector,
const InputPointType & point ) const
virtual

These vector transforms are not implemented for this transform

Reimplemented from itk::Transform< TParametersValueType, VDimension, VDimension >.

◆ UpdateParameters()

template<typename TParametersValueType, unsigned int VDimension>
virtual void itk::KernelTransform< TParametersValueType, VDimension >::UpdateParameters ( ) const
virtual

Update the Parameters array from the landmarks coordinates.

Member Data Documentation

◆ m_AMatrix

template<typename TParametersValueType, unsigned int VDimension>
AMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_AMatrix {}
protected

Rotational/Shearing part of the Affine component of the Transformation

Definition at line 362 of file itkKernelTransform.h.

◆ m_BVector

template<typename TParametersValueType, unsigned int VDimension>
BMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_BVector {}
protected

Translational part of the Affine component of the Transformation

Definition at line 365 of file itkKernelTransform.h.

◆ m_Displacements

template<typename TParametersValueType, unsigned int VDimension>
VectorSetPointer itk::KernelTransform< TParametersValueType, VDimension >::m_Displacements {}
protected

The list of displacements. d[i] = q[i] - p[i];

Definition at line 337 of file itkKernelTransform.h.

◆ m_DMatrix

template<typename TParametersValueType, unsigned int VDimension>
DMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_DMatrix {}
protected

The Deformation matrix. This is an auxiliary matrix that will hold the Deformation (non-affine) part of the transform. Those are the coefficients that will multiply the Kernel function

Definition at line 359 of file itkKernelTransform.h.

◆ m_GMatrix

template<typename TParametersValueType, unsigned int VDimension>
GMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_GMatrix {}
mutableprotected

The G matrix. It is made mutable because m_GMatrix was made an ivar only to avoid copying the matrix at return time

Definition at line 370 of file itkKernelTransform.h.

◆ m_I

template<typename TParametersValueType, unsigned int VDimension>
IMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_I {}
protected

Identity matrix.

Definition at line 376 of file itkKernelTransform.h.

◆ m_KMatrix

template<typename TParametersValueType, unsigned int VDimension>
KMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_KMatrix {}
protected

The K matrix.

Definition at line 343 of file itkKernelTransform.h.

◆ m_LMatrix

template<typename TParametersValueType, unsigned int VDimension>
LMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_LMatrix {}
protected

The L matrix.

Definition at line 340 of file itkKernelTransform.h.

◆ m_PMatrix

template<typename TParametersValueType, unsigned int VDimension>
PMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_PMatrix {}
protected

The P matrix.

Definition at line 346 of file itkKernelTransform.h.

◆ m_SourceLandmarks

template<typename TParametersValueType, unsigned int VDimension>
PointSetPointer itk::KernelTransform< TParametersValueType, VDimension >::m_SourceLandmarks {}
protected

The list of source landmarks, denoted 'p'.

Definition at line 379 of file itkKernelTransform.h.

◆ m_Stiffness

template<typename TParametersValueType, unsigned int VDimension>
double itk::KernelTransform< TParametersValueType, VDimension >::m_Stiffness {}
protected

Stiffness parameter

Definition at line 333 of file itkKernelTransform.h.

◆ m_TargetLandmarks

template<typename TParametersValueType, unsigned int VDimension>
PointSetPointer itk::KernelTransform< TParametersValueType, VDimension >::m_TargetLandmarks {}
protected

The list of target landmarks, denoted 'q'.

Definition at line 382 of file itkKernelTransform.h.

◆ m_WMatrix

template<typename TParametersValueType, unsigned int VDimension>
WMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_WMatrix {}
protected

The W matrix.

Definition at line 352 of file itkKernelTransform.h.

◆ m_WMatrixComputed

template<typename TParametersValueType, unsigned int VDimension>
bool itk::KernelTransform< TParametersValueType, VDimension >::m_WMatrixComputed {}
protected

Has the W matrix been computed?

Definition at line 373 of file itkKernelTransform.h.

◆ m_YMatrix

template<typename TParametersValueType, unsigned int VDimension>
YMatrixType itk::KernelTransform< TParametersValueType, VDimension >::m_YMatrix {}
protected

The Y matrix.

Definition at line 349 of file itkKernelTransform.h.

◆ SpaceDimension

template<typename TParametersValueType, unsigned int VDimension>
unsigned int itk::KernelTransform< TParametersValueType, VDimension >::SpaceDimension = VDimension
staticconstexpr

Dimension of the domain space.

Definition at line 75 of file itkKernelTransform.h.


The documentation for this class was generated from the following file: