Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkAdvancedBSplineDeformableTransformBase.h>
Base class for deformable transform using a B-spline representation.
This class is the base for the encapsulation of a deformable transform of points from one N-dimensional one space to another N-dimensional space.
This class is not templated over the spline order, which makes the use of different spline orders more convenient in subsequent code.
Definition at line 42 of file itkAdvancedBSplineDeformableTransformBase.h.
Protected Types | |
typedef Image< JacobianPixelType, itkGetStaticConstMacro(SpaceDimension) > | JacobianImageType |
typedef JacobianType::ValueType | JacobianPixelType |
Protected Member Functions | |
AdvancedBSplineDeformableTransformBase () | |
virtual void | ComputeNonZeroJacobianIndices (NonZeroJacobianIndicesType &nonZeroJacobianIndices, const RegionType &supportRegion) const =0 |
virtual bool | InsideValidRegion (const ContinuousIndexType &index) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | TransformPointToContinuousGridIndex (const InputPointType &point, ContinuousIndexType &index) const |
void | UpdateGridOffsetTable (void) |
void | UpdatePointIndexConversions (void) |
void | WrapAsImages (void) |
~AdvancedBSplineDeformableTransformBase () override | |
Protected Member Functions inherited from itk::AdvancedTransform< double, 3, 3 > | |
AdvancedTransform () | |
AdvancedTransform (NumberOfParametersType numberOfParameters) | |
~AdvancedTransform () override | |
Private Member Functions | |
AdvancedBSplineDeformableTransformBase (const Self &) | |
void | operator= (const Self &) |
typedef SmartPointer< const Self > itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ConstPointer |
Definition at line 52 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef ContinuousIndex< ScalarType, SpaceDimension > itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ContinuousIndexType |
This typedef should be equal to the typedef used in derived classes based on the weights function.
Definition at line 283 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::DerivativeType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::DerivativeType |
Definition at line 65 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef ImageType::DirectionType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::DirectionType |
Definition at line 192 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::FixedParametersType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::FixedParametersType |
Definition at line 62 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef IndexType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::GridOffsetType |
Definition at line 194 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef ImageType::Pointer itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ImagePointer |
Definition at line 167 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Image< PixelType, itkGetStaticConstMacro( SpaceDimension ) > itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ImageType |
Definition at line 166 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef RegionType::IndexType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::IndexType |
Definition at line 189 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::InputCovariantVectorType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::InputCovariantVectorType |
Definition at line 75 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::InputPointType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::InputPointType |
Definition at line 68 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::InputVectorType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::InputVectorType |
Definition at line 70 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::InputVnlVectorType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::InputVnlVectorType |
Definition at line 72 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::InternalMatrixType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::InternalMatrixType |
Definition at line 88 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 347 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::JacobianOfSpatialHessianType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::JacobianOfSpatialHessianType |
Definition at line 87 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::JacobianOfSpatialJacobianType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::JacobianOfSpatialJacobianType |
Definition at line 84 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Jacobian as SpaceDimension number of images.
Definition at line 345 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::JacobianType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::JacobianType |
Definition at line 66 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::MovingImageGradientType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::MovingImageGradientType |
Definition at line 89 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::MovingImageGradientValueType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::MovingImageGradientValueType |
Definition at line 90 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::NonZeroJacobianIndicesType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::NonZeroJacobianIndicesType |
Definition at line 81 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::NumberOfParametersType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::NumberOfParametersType |
Definition at line 64 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef ImageType::PointType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::OriginType |
Definition at line 193 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::OutputCovariantVectorType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::OutputCovariantVectorType |
Definition at line 77 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::OutputPointType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::OutputPointType |
Definition at line 69 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::OutputVectorType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::OutputVectorType |
Definition at line 71 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::OutputVnlVectorType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::OutputVnlVectorType |
Definition at line 73 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Array< unsigned long > itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ParameterIndexArrayType |
Parameter index array type.
Definition at line 221 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::ParametersType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ParametersType |
Typedefs from Superclass.
Definition at line 61 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::ParametersValueType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ParametersValueType |
Definition at line 63 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef SmartPointer< Self > itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::Pointer |
Definition at line 51 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef ImageRegion< itkGetStaticConstMacro( SpaceDimension ) > itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::RegionType |
Typedefs for specifying the extend to the grid.
Definition at line 187 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::ScalarType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::ScalarType |
Definition at line 67 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef AdvancedBSplineDeformableTransformBase itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::Self |
Standard class typedefs.
Definition at line 48 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef RegionType::SizeType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::SizeType |
Definition at line 190 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef ImageType::SpacingType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::SpacingType |
Definition at line 191 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::SpatialHessianType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::SpatialHessianType |
Definition at line 85 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::SpatialJacobianType itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::SpatialJacobianType |
Definition at line 82 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef AdvancedTransform< TScalarType, NDimensions, NDimensions > itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::Superclass |
Definition at line 50 of file itkAdvancedBSplineDeformableTransformBase.h.
typedef Superclass::TransformCategoryEnum itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::TransformCategoryEnum |
Definition at line 78 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
|
overrideprotected |
|
private |
|
protectedpure virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::AdvancedTransform< double, 3, 3 >.
Reimplemented in itk::GPUAdvancedBSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder, TParentTransform >, itk::AdvancedBSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::AdvancedBSplineDeformableTransform< double, 3, 3 >, itk::AdvancedBSplineDeformableTransform< double, 3, 0 >, itk::AdvancedBSplineDeformableTransform< float, 3, 3 >, itk::CyclicBSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::RecursiveBSplineTransform< TScalarType, NDimensions, VSplineOrder >, and itk::DeformationVectorFieldTransform< TScalarType, NDimensions >.
|
inlinevirtual |
Get the array of coefficient images.
Definition at line 170 of file itkAdvancedBSplineDeformableTransformBase.h.
|
override |
Get the Transformation Fixed Parameters.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
|
overridepure virtual |
Reimplemented from itk::AdvancedTransform< double, 3, 3 >.
Implemented in itk::AdvancedBSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::AdvancedBSplineDeformableTransform< double, 3, 3 >, itk::AdvancedBSplineDeformableTransform< double, 3, 0 >, and itk::AdvancedBSplineDeformableTransform< float, 3, 3 >.
|
override |
Return the number of parameters that completely define the Transform.
|
virtual |
Return the number of parameters per dimension
|
override |
Get the Transformation Parameters.
|
inlineoverride |
Indicates the category transform. e.g. an affine transform, or a local one, e.g. a deformation field.
Definition at line 270 of file itkAdvancedBSplineDeformableTransformBase.h.
|
virtual |
Return the region of the grid wholly within the support region
|
protectedvirtual |
Check if a continuous index is inside the valid region.
|
inlineoverride |
Indicates that this transform is linear. That is, given two points P and Q, and scalar coefficients a and b, then
T( a*P + b*Q ) = a * T(P) + b * T(Q)
Definition at line 265 of file itkAdvancedBSplineDeformableTransformBase.h.
itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::itkStaticConstMacro | ( | SpaceDimension | , |
unsigned int | , | ||
NDimensions | |||
) |
Dimension of the domain space.
|
private |
|
overrideprotected |
Print contents of an AdvancedBSplineDeformableTransformBase.
|
virtual |
Set the array of coefficient images.
This is an alternative API for setting the B-spline coefficients as an array of SpaceDimension images. The grid region spacing and origin is taken from the first image. It is assume that the buffered region of all the subsequent images are the same as the first image. Note that no error checking is done.
Warning: use either the SetParameters() or SetCoefficientImages() API. Mixing the two modes may results in unexpected results.
|
override |
This method sets the fixed parameters of the transform. For a B-spline deformation transform, the parameters are the following: Grid Size, Grid Origin, and Grid Spacing
The fixed parameters are the three times the size of the templated dimensions. This function has the effect of make the following calls: transform->SetGridSpacing( spacing ); transform->SetGridOrigin( origin ); transform->SetGridDirection( direction ); transform->SetGridRegion( bsplineRegion );
This function was added to allow the transform to work with the itkTransformReader/Writer I/O filters.
|
virtual |
This method specifies the grid directions .
|
virtual |
This method specifies the grid origin.
|
pure virtual |
This method specifies the region over which the grid resides.
Implemented in itk::AdvancedBSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::AdvancedBSplineDeformableTransform< double, 3, 3 >, itk::AdvancedBSplineDeformableTransform< double, 3, 0 >, and itk::AdvancedBSplineDeformableTransform< float, 3, 3 >.
|
virtual |
This method specifies the grid spacing or resolution.
void itk::AdvancedBSplineDeformableTransformBase< TScalarType, NDimensions >::SetIdentity | ( | void | ) |
This method can ONLY be invoked AFTER calling SetParameters(). This restriction is due to the fact that the AdvancedBSplineDeformableTransform does not copy the array of parameters internally, instead it keeps a pointer to the user-provided array of parameters. This method is also in violation of the const-correctness of the parameters since the parameter array has been passed to the transform on a 'const' basis but the values get modified when the user invokes SetIdentity().
|
override |
This method sets the parameters of the transform. For a B-spline deformation transform, the parameters are the BSpline coefficients on a sparse grid.
The parameters are N number of N-D grid of coefficients. Each N-D grid is represented as a flat array of doubles (in the same configuration as an itk::Image). The N arrays are then concatenated to form one parameter array.
For efficiency, this transform does not make a copy of the parameters. It only keeps a pointer to the input parameters. It assumes that the memory is managed by the caller. Use SetParametersByValue to force the transform to call copy the parameters.
This method wraps each grid as itk::Image's using the user specified grid region, spacing and origin. NOTE: The grid region, spacing and origin must be set first.
|
override |
This method sets the parameters of the transform. For a B-spline deformation transform, the parameters are the BSpline coefficients on a sparse grid.
The parameters are N number of N-D grid of coefficients. Each N-D grid is represented as a flat array of doubles (in the same configuration as an itk::Image). The N arrays are then concatenated to form one parameter array.
This methods makes a copy of the parameters while for efficiency the SetParameters method does not.
This method wraps each grid as itk::Image's using the user specified grid region, spacing and origin. NOTE: The grid region, spacing and origin must be set first.
|
inlineoverride |
Method to transform a CovariantVector - not applicable for this type of transform.
Definition at line 244 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Convert an input point to a continuous index inside the B-spline grid.
|
inlineoverride |
Method to transform a vector - not applicable for this type of transform.
Definition at line 226 of file itkAdvancedBSplineDeformableTransformBase.h.
|
inlineoverride |
Method to transform a vnl_vector - not applicable for this type of transform.
Definition at line 235 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
|
protected |
|
protected |
Wrap flat array into images of coefficients.
|
protected |
Array of images representing the B-spline coefficients in each dimension.
Definition at line 312 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 317 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 319 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 318 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Variables defining the coefficient grid extend.
Definition at line 315 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 316 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 327 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Keep a pointer to the input parameters.
Definition at line 342 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Internal parameters buffer.
Definition at line 360 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 349 of file itkAdvancedBSplineDeformableTransformBase.h.
|
mutableprotected |
Keep track of last support region used in computing the Jacobian for fast resetting of Jacobian to zero.
Definition at line 354 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Variables defining the interpolation support region.
Definition at line 333 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 321 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 322 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 325 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 326 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 328 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 323 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 324 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Odd or even order B-spline.
Definition at line 339 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 334 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 330 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 335 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Definition at line 336 of file itkAdvancedBSplineDeformableTransformBase.h.
|
protected |
Array holding images wrapped from the flat parameters.
Definition at line 357 of file itkAdvancedBSplineDeformableTransformBase.h.
Generated on 1667476801 for elastix by 1.9.4 |