ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkBSplineBaseTransform.h>
A base class with common elements of BSplineTransform and BSplineDeformableTransform.
Definition at line 36 of file itkBSplineBaseTransform.h.
Public Types | |
typedef FixedArray < ImagePointer, NDimensions > | CoefficientImageArray |
typedef SmartPointer< const Self > | ConstPointer |
typedef WeightsFunctionType::ContinuousIndexType | ContinuousIndexType |
typedef Superclass::DerivativeType | DerivativeType |
typedef ImageType::DirectionType | DirectionType |
typedef Superclass::FixedParametersType | FixedParametersType |
typedef ImageType::Pointer | ImagePointer |
typedef Image < ParametersValueType, itkGetStaticConstMacro(SpaceDimension)> | ImageType |
typedef RegionType::IndexType | IndexType |
typedef vnl_vector_fixed < TParametersValueType, SpaceDimension > | InputVnlVectorType |
typedef Superclass::JacobianType | JacobianType |
typedef SizeType | MeshSizeType |
typedef Superclass::NumberOfParametersType | NumberOfParametersType |
typedef ImageType::PointType | OriginType |
typedef vnl_vector_fixed < TParametersValueType, SpaceDimension > | OutputVnlVectorType |
typedef Array< unsigned long > | ParameterIndexArrayType |
typedef Superclass::ParametersType | ParametersType |
typedef ParametersType::ValueType | ParametersValueType |
typedef ImageType::SpacingType | PhysicalDimensionsType |
typedef ImageType::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef ImageRegion < itkGetStaticConstMacro(SpaceDimension)> | RegionType |
typedef Superclass::ScalarType | ScalarType |
typedef BSplineBaseTransform | Self |
typedef RegionType::SizeType | SizeType |
typedef ImageType::SpacingType | SpacingType |
typedef Transform < TParametersValueType, NDimensions, NDimensions > | Superclass |
typedef Superclass::TransformCategoryType | TransformCategoryType |
typedef BSplineInterpolationWeightFunction < ScalarType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SplineOrder)> | WeightsFunctionType |
typedef WeightsFunctionType::WeightsType | WeightsType |
typedef Vector < TParametersValueType, itkGetStaticConstMacro(SpaceDimension)> | InputVectorType |
typedef Vector < TParametersValueType, itkGetStaticConstMacro(SpaceDimension)> | OutputVectorType |
typedef CovariantVector < TParametersValueType, itkGetStaticConstMacro(SpaceDimension)> | InputCovariantVectorType |
typedef CovariantVector < TParametersValueType, itkGetStaticConstMacro(SpaceDimension)> | OutputCovariantVectorType |
typedef Point < TParametersValueType, itkGetStaticConstMacro(SpaceDimension)> | InputPointType |
typedef Point < TParametersValueType, itkGetStaticConstMacro(SpaceDimension)> | OutputPointType |
Public Types inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Array < ParametersValueType > | DerivativeType |
typedef Matrix< double, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | DirectionChangeMatrix |
typedef Superclass::FixedParametersType | FixedParametersType |
typedef Superclass::FixedParametersValueType | FixedParametersValueType |
typedef CovariantVector < TParametersValueType, NInputDimensions > | InputCovariantVectorType |
typedef DiffusionTensor3D < TParametersValueType > | InputDiffusionTensor3DType |
typedef Matrix< double, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | InputDirectionMatrix |
typedef Point < TParametersValueType, NInputDimensions > | InputPointType |
typedef SymmetricSecondRankTensor < TParametersValueType, NInputDimensions > | InputSymmetricSecondRankTensorType |
typedef VariableLengthVector < TParametersValueType > | InputVectorPixelType |
typedef Vector < TParametersValueType, NInputDimensions > | InputVectorType |
typedef vnl_vector_fixed < TParametersValueType, NInputDimensions > | InputVnlVectorType |
typedef InverseTransformBaseType::Pointer | InverseTransformBasePointer |
typedef Transform < TParametersValueType, NOutputDimensions, NInputDimensions > | InverseTransformBaseType |
typedef Array2D < ParametersValueType > | JacobianType |
typedef Matrix < TParametersValueType, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension)> | MatrixType |
typedef Superclass::NumberOfParametersType | NumberOfParametersType |
typedef CovariantVector < TParametersValueType, NOutputDimensions > | OutputCovariantVectorType |
typedef DiffusionTensor3D < TParametersValueType > | OutputDiffusionTensor3DType |
typedef Matrix< double, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)> | OutputDirectionMatrix |
typedef Point < TParametersValueType, NOutputDimensions > | OutputPointType |
typedef SymmetricSecondRankTensor < TParametersValueType, NOutputDimensions > | OutputSymmetricSecondRankTensorType |
typedef VariableLengthVector < TParametersValueType > | OutputVectorPixelType |
typedef Vector < TParametersValueType, NOutputDimensions > | OutputVectorType |
typedef vnl_vector_fixed < TParametersValueType, NOutputDimensions > | OutputVnlVectorType |
typedef Superclass::ParametersType | ParametersType |
typedef Superclass::ParametersValueType | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef ParametersValueType | ScalarType |
typedef Transform | Self |
typedef TransformBaseTemplate < TParametersValueType > | Superclass |
typedef Superclass::TransformCategoryType | TransformCategoryType |
Public Types inherited from itk::TransformBaseTemplate< TParametersValueType > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef OptimizerParameters < FixedParametersValueType > | FixedParametersType |
typedef ParametersValueType | FixedParametersValueType |
typedef IdentifierType | NumberOfParametersType |
typedef OptimizerParameters < ParametersValueType > | ParametersType |
typedef TParametersValueType | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef TransformBaseTemplate | Self |
typedef Object | Superclass |
enum | TransformCategoryType { UnknownTransformCategory =0, Linear =1, BSpline =2, Spline =3, DisplacementField =4, VelocityField =5 } |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Attributes | |
static const unsigned int | SpaceDimension = NDimensions |
static const unsigned int | SplineOrder = VSplineOrder |
Static Public Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
static const unsigned int | InputSpaceDimension |
static const unsigned int | OutputSpaceDimension |
Protected Attributes | |
CoefficientImageArray | m_CoefficientImages |
ParametersType | m_InternalParametersBuffer |
WeightsFunctionType::Pointer | m_WeightsFunction |
Protected Attributes inherited from itk::Transform< TParametersValueType, NDimensions, NDimensions > | |
DirectionChangeMatrix | m_DirectionChange |
FixedParametersType | m_FixedParameters |
ParametersType | m_Parameters |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
Private Member Functions | |
CoefficientImageArray | ArrayOfImagePointerGeneratorHelper () const |
BSplineBaseTransform (const Self &) | |
void | operator= (const Self &) |
Additional Inherited Members | |
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 () |
typedef FixedArray<ImagePointer, NDimensions> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::CoefficientImageArray |
Definition at line 177 of file itkBSplineBaseTransform.h.
typedef SmartPointer<const Self> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ConstPointer |
Definition at line 44 of file itkBSplineBaseTransform.h.
typedef WeightsFunctionType::ContinuousIndexType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ContinuousIndexType |
Definition at line 230 of file itkBSplineBaseTransform.h.
typedef Superclass::DerivativeType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::DerivativeType |
Definition at line 198 of file itkBSplineBaseTransform.h.
typedef ImageType::DirectionType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::DirectionType |
Definition at line 218 of file itkBSplineBaseTransform.h.
typedef Superclass::FixedParametersType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::FixedParametersType |
Standard parameters container.
Definition at line 62 of file itkBSplineBaseTransform.h.
typedef ImageType::Pointer itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ImagePointer |
Definition at line 176 of file itkBSplineBaseTransform.h.
typedef Image<ParametersValueType, itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ImageType |
Definition at line 175 of file itkBSplineBaseTransform.h.
typedef RegionType::IndexType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::IndexType |
Definition at line 215 of file itkBSplineBaseTransform.h.
typedef CovariantVector<TParametersValueType, itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::InputCovariantVectorType |
Standard covariant vector type for this class.
Definition at line 80 of file itkBSplineBaseTransform.h.
typedef Point<TParametersValueType, itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::InputPointType |
Standard coordinate point type for this class.
Definition at line 89 of file itkBSplineBaseTransform.h.
typedef Vector<TParametersValueType, itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::InputVectorType |
Standard vector type for this class.
Definition at line 75 of file itkBSplineBaseTransform.h.
typedef vnl_vector_fixed<TParametersValueType, SpaceDimension> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::InputVnlVectorType |
Standard vnl_vector type for this class.
Definition at line 85 of file itkBSplineBaseTransform.h.
typedef Superclass::JacobianType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::JacobianType |
Standard Jacobian container.
Definition at line 66 of file itkBSplineBaseTransform.h.
typedef SizeType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::MeshSizeType |
Definition at line 306 of file itkBSplineBaseTransform.h.
typedef Superclass::NumberOfParametersType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::NumberOfParametersType |
The number of parameters defininig this transform.
Definition at line 72 of file itkBSplineBaseTransform.h.
typedef ImageType::PointType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::OriginType |
Definition at line 219 of file itkBSplineBaseTransform.h.
typedef CovariantVector<TParametersValueType, itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::OutputCovariantVectorType |
Standard covariant vector type for this class.
Definition at line 81 of file itkBSplineBaseTransform.h.
typedef Point<TParametersValueType, itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::OutputPointType |
Standard coordinate point type for this class.
Definition at line 90 of file itkBSplineBaseTransform.h.
typedef Vector<TParametersValueType, itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::OutputVectorType |
Standard vector type for this class.
Definition at line 76 of file itkBSplineBaseTransform.h.
typedef vnl_vector_fixed<TParametersValueType, SpaceDimension> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::OutputVnlVectorType |
Definition at line 86 of file itkBSplineBaseTransform.h.
typedef Array<unsigned long> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ParameterIndexArrayType |
Parameter index array type.
Definition at line 233 of file itkBSplineBaseTransform.h.
typedef Superclass::ParametersType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ParametersType |
Definition at line 63 of file itkBSplineBaseTransform.h.
typedef ParametersType::ValueType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ParametersValueType |
Parameters as SpaceDimension number of images.
Definition at line 174 of file itkBSplineBaseTransform.h.
typedef ImageType::SpacingType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::PhysicalDimensionsType |
Definition at line 303 of file itkBSplineBaseTransform.h.
typedef ImageType::PixelType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::PixelType |
Definition at line 304 of file itkBSplineBaseTransform.h.
typedef SmartPointer<Self> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::Pointer |
Definition at line 43 of file itkBSplineBaseTransform.h.
typedef ImageRegion<itkGetStaticConstMacro( SpaceDimension )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::RegionType |
Typedefs for specifying the extent of the grid.
Definition at line 213 of file itkBSplineBaseTransform.h.
typedef Superclass::ScalarType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ScalarType |
Standard scalar type for this class.
Definition at line 59 of file itkBSplineBaseTransform.h.
typedef BSplineBaseTransform itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::Self |
Standard class typedefs.
Definition at line 41 of file itkBSplineBaseTransform.h.
typedef RegionType::SizeType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::SizeType |
Definition at line 216 of file itkBSplineBaseTransform.h.
typedef ImageType::SpacingType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::SpacingType |
Definition at line 217 of file itkBSplineBaseTransform.h.
typedef Transform<TParametersValueType, NDimensions, NDimensions> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::Superclass |
Definition at line 42 of file itkBSplineBaseTransform.h.
typedef Superclass::TransformCategoryType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::TransformCategoryType |
Transform category type.
Definition at line 69 of file itkBSplineBaseTransform.h.
typedef BSplineInterpolationWeightFunction<ScalarType, itkGetStaticConstMacro( SpaceDimension ), itkGetStaticConstMacro( SplineOrder )> itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::WeightsFunctionType |
Interpolation weights function type.
Definition at line 227 of file itkBSplineBaseTransform.h.
typedef WeightsFunctionType::WeightsType itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::WeightsType |
Definition at line 229 of file itkBSplineBaseTransform.h.
|
protected |
|
protectedvirtual |
|
private |
|
private |
void itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ComputeJacobianFromBSplineWeightsWithRespectToPosition | ( | const InputPointType & | , |
WeightsType & | , | ||
ParameterIndexArrayType & | |||
) | const |
Get Jacobian at a point. A very specialized function just for BSplines
|
overridepure virtual |
|
inlineoverridevirtual |
Definition at line 284 of file itkBSplineBaseTransform.h.
References itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::GetNameOfClass().
|
inline |
Get the array of coefficient images.
Definition at line 193 of file itkBSplineBaseTransform.h.
References itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::m_CoefficientImages.
|
overridevirtual |
Get the Transformation Fixed Parameters.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
|
protectedvirtual |
Get/Set to allow subclasses to access and manipulate the weights function.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Reimplemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
Referenced by itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::ComputeJacobianWithRespectToPosition().
unsigned int itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::GetNumberOfAffectedWeights | ( | ) | const |
|
inlineoverridevirtual |
Return the number of local parameters
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 309 of file itkBSplineBaseTransform.h.
References itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::GetNumberOfParameters().
|
overridepure virtual |
Return the number of parameters that completely define the Transfom
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
Referenced by itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::GetNumberOfLocalParameters().
|
pure virtual |
Return the number of parameters per dimension
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
inline |
Get number of weights.
Definition at line 247 of file itkBSplineBaseTransform.h.
References itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::m_WeightsFunction.
|
overridevirtual |
Get the Transformation Parameters.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
|
inlineoverridevirtual |
Indicates the category transform. e.g. an affine transform, or a local one, e.g. a deformation field.
Reimplemented from itk::Transform< TParametersValueType, NDimensions, NDimensions >.
Definition at line 296 of file itkBSplineBaseTransform.h.
References itk::TransformBaseTemplate< TParametersValueType >::BSpline.
|
protectedvirtual |
Get/Set to allow subclasses to access and manipulate the weights function.
|
protectedpure virtual |
Check if a continuous index is inside the valid region.
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::itkCloneMacro | ( | Self | ) |
implement type-specific clone method
|
private |
|
overrideprotectedvirtual |
Print contents of an BSplineBaseTransform.
Reimplemented from itk::Object.
Reimplemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
protectedpure virtual |
Construct control point grid size from transform domain information
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
pure virtual |
Set the array of coefficient images.
This is an alternative API for setting the BSpline coefficients as an array of SpaceDimension images. The fixed parameters are taken from the first image. It is assumed 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.
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
overridepure virtual |
This method sets the fixed parameters of the transform. For a BSpline deformation transform, the fixed parameters are the following: grid size, grid origin, grid spacing, and grid direction. However, all of these are set via the much more intuitive SetTransformDomainXXX() functions
The fixed parameters are the three times the size of the templated dimensions. This function has the effect of make the following non- existing functional calls: transform->SetGridSpacing( spacing ); transform->SetGridOrigin( origin ); transform->SetGridDirection( direction ); transform->SetGridRegion( bsplineRegion );
With recent updates to this transform, however, all these parameters are set indirectly by setting the transform domain parameters unless the user sets them with SetFixedParameters().
This function was added to allow the transform to work with the itkTransformReader/Writer I/O filters.
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
protected |
Construct control point grid from transform domain information
|
protectedpure virtual |
Construct control point grid direction from transform domain information
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
protectedpure virtual |
Construct control point grid origin from transform domain information
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
protectedpure virtual |
Construct control point grid size from transform domain information
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
protectedpure virtual |
Construct control point grid spacing from transform domain information
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
void itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::SetIdentity | ( | ) |
This method can ONLY be invoked AFTER calling SetParameters(). This restriction is due to the fact that the BSplineBaseTransform 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 BSpline 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 scalars (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 fixed parameters. NOTE: The transform domain must be set first.
|
override |
This method sets the parameters of the transform. For a BSpline 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 fixed parameters. NOTE: The fixed parameters must be set first.
|
protectedvirtual |
Get/Set to allow subclasses to access and manipulate the weights function.
|
inlineoverridevirtual |
Definition at line 271 of file itkBSplineBaseTransform.h.
|
override |
Transform points by a BSpline deformable transformation.
|
pure virtual |
Transform points by a BSpline deformable transformation. On return, weights contains the interpolation weights used to compute the deformation and indices of the x (zeroth) dimension coefficient parameters in the support region used to compute the deformation. Parameter indices for the i-th dimension can be obtained by adding ( i * this->GetNumberOfParametersPerDimension() ) to the indices array.
Implemented in itk::BSplineDeformableTransform< TParametersValueType, NDimensions, VSplineOrder >, and itk::BSplineTransform< TParametersValueType, NDimensions, VSplineOrder >.
|
inlineoverridevirtual |
Definition at line 255 of file itkBSplineBaseTransform.h.
|
inlineoverridevirtual |
Method to transform a vnl_vector - not applicable for this type of transform
Definition at line 263 of file itkBSplineBaseTransform.h.
|
overridevirtual |
Update the transform's parameters by the adding values in update
to current parameter values. We assume update
is of the same length as Parameters. Throw exception otherwise. factor
is a scalar multiplier for each value in update. SetParameters is called at the end of this method, to allow transforms to perform any required operations on the update parameters, typically a converion to member variables for use in TransformPoint. Derived classes should override to provide specialized behavior.
|
protected |
Wrap flat array into images of coefficients.
|
protected |
Array of images representing the B-spline coefficients in each dimension wrapped from the flat parameters in m_InternalParametersBuffer
Definition at line 365 of file itkBSplineBaseTransform.h.
Referenced by itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::GetCoefficientImages().
|
protected |
Internal parameters buffer.
Definition at line 368 of file itkBSplineBaseTransform.h.
|
protected |
Pointer to function used to compute Bspline interpolation weights.
Definition at line 371 of file itkBSplineBaseTransform.h.
Referenced by itk::BSplineBaseTransform< TParametersValueType, NDimensions, VSplineOrder >::GetNumberOfWeights().
|
static |
Dimension of the domain space.
Definition at line 50 of file itkBSplineBaseTransform.h.
|
static |
The BSpline order.
Definition at line 53 of file itkBSplineBaseTransform.h.