SimpleITK
|
A dense deformable transform over a bounded spatial domain for 2D or 3D coordinates space. More...
#include <sitkDisplacementFieldTransform.h>
A dense deformable transform over a bounded spatial domain for 2D or 3D coordinates space.
Definition at line 34 of file sitkDisplacementFieldTransform.h.
Classes | |
struct | MyVisitor |
Public Types | |
using | Self = DisplacementFieldTransform |
using | Superclass = Transform |
Public Types inherited from itk::simple::Transform | |
using | Self = Transform |
Public Member Functions | |
DisplacementFieldTransform (const DisplacementFieldTransform &) | |
DisplacementFieldTransform (const Transform &) | |
DisplacementFieldTransform (Image &) | |
Consume an image to construct a displacement field transform. More... | |
DisplacementFieldTransform (unsigned int dimensions) | |
Image | GetDisplacementField () const |
Image | GetInverseDisplacementField () const |
std::string | GetName () const override |
DisplacementFieldTransform & | operator= (const DisplacementFieldTransform &) |
Self & | SetDisplacementField (Image &) |
Consume an image, and set the displacement field. More... | |
Self & | SetInterpolator (InterpolatorEnum interp) |
Self & | SetInverseDisplacementField (Image &) |
Self & | SetSmoothingBSplineOnUpdate (const std::vector< unsigned int > &numberOfControlPointsForUpdateField=std::vector< unsigned int >(3, 4), const std::vector< unsigned int > &numberOfControlPointsForTotalField=std::vector< unsigned int >(3, 4), bool enforceStationaryBoundary=true, unsigned int order=3) |
Self & | SetSmoothingGaussianOnUpdate (double varianceForUpdateField=1.75, double varianceForTotalField=0.5) |
Self & | SetSmoothingOff () |
~DisplacementFieldTransform () override | |
Public Member Functions inherited from itk::simple::Transform | |
unsigned int | GetDimension () const |
Transform | GetInverse () const |
Return a new inverse transform of the same type as this. More... | |
unsigned int | GetNumberOfFixedParameters () const |
unsigned int | GetNumberOfParameters () const |
TransformEnum | GetTransformEnum () const |
Get the TransformEnum of the underlying Transform. More... | |
virtual bool | IsLinear () const |
void | MakeUnique () |
Performs actually coping if needed to make object unique. More... | |
virtual void | SetIdentity () |
virtual bool | SetInverse () |
Try to change the current transform to it's inverse. More... | |
std::string | ToString () const |
Transform () | |
By default a 3-d identity transform is constructed. More... | |
Transform (Image &displacement, TransformEnum type=sitkDisplacementField) | |
Use an image to construct a transform. More... | |
template<unsigned int NDimension> | |
Transform (itk::CompositeTransform< double, NDimension > *compositeTransform) | |
Construct a SimpleITK Transform from a pointer to an ITK composite transform. More... | |
Transform (itk::TransformBase *transform) | |
Transform (unsigned int dimensions, TransformEnum type) | |
Construct a specific transformation. More... | |
std::vector< double > | TransformPoint (const std::vector< double > &point) const |
std::vector< double > | TransformVector (const std::vector< double > &vector, const std::vector< double > &point) const |
void | WriteTransform (const std::string &filename) const |
virtual | ~Transform () |
Transform & | operator= (const Transform &) |
Copy constructor and assignment operator. More... | |
Transform (const Transform &) | |
Copy constructor and assignment operator. More... | |
itk::TransformBase * | GetITKBase () |
const itk::TransformBase * | GetITKBase () const |
void | SetParameters (const std::vector< double > ¶meters) |
std::vector< double > | GetParameters () const |
void | SetFixedParameters (const std::vector< double > ¶meters) |
std::vector< double > | GetFixedParameters () const |
Protected Member Functions | |
void | SetPimpleTransform (std::unique_ptr< PimpleTransformBase > &&pimpleTransform) override |
Protected Member Functions inherited from itk::simple::Transform | |
Transform (PimpleTransformBase *pimpleTransform) | |
Private Member Functions | |
void | InternalInitialization (itk::TransformBase *transform) |
template<typename TransformType > | |
void | InternalInitialization (TransformType *transform) |
template<typename TDisplacementFieldTransform > | |
void | InternalSetSmoothingBSplineOnUpdate (TDisplacementFieldTransform *itkDisplacement, const std::vector< unsigned int > &numberOfControlPointsForUpdateField, const std::vector< unsigned int > &numberOfControlPointsForTotalField, bool enforceStationaryBoundary, unsigned int order) |
template<typename TDisplacementFieldTransform > | |
void | InternalSetSmoothingGaussianOnUpdate (TDisplacementFieldTransform *itkDisplacement, double varianceForUpdateField, double varianceForTotalField) |
template<typename TDisplacementFieldTransform > | |
void | InternalSetSmoothingOff (TDisplacementFieldTransform *itkDisplacement) |
Static Private Member Functions | |
static PimpleTransformBase * | CreateDisplacementFieldPimpleTransform (unsigned int dimension) |
template<typename TDisplacementFieldTransform > | |
static Image | InternalGetDisplacementField (const TDisplacementFieldTransform *itkDisplacementTx) |
template<typename TDisplacementFieldTransform > | |
static Image | InternalGetInverseDisplacementField (const TDisplacementFieldTransform *itkDisplacementTx) |
Private Attributes | |
std::function< Image()> | m_pfGetDisplacementField |
std::function< InterpolatorEnum()> | m_pfGetInterpolator |
std::function< Image()> | m_pfGetInverseDisplacementField |
std::function< void(Image &)> | m_pfSetDisplacementField |
std::function< void(InterpolatorEnum &)> | m_pfSetInterpolator |
std::function< void(Image &)> | m_pfSetInverseDisplacementField |
std::function< void(const std::vector< unsigned int > &, const std::vector< unsigned int > &, bool, unsigned int)> | m_pfSetSmoothingBSplineOnUpdate |
std::function< void(double, double)> | m_pfSetSmoothingGaussianOnUpdate |
std::function< void()> | m_pfSetSmoothingOff |
Definition at line 37 of file sitkDisplacementFieldTransform.h.
Definition at line 38 of file sitkDisplacementFieldTransform.h.
|
override |
|
explicit |
|
explicit |
Consume an image to construct a displacement field transform.
Image must be of sitkVectorFloat64 pixel type with the number of components equal to the image dimension.
itk::simple::DisplacementFieldTransform::DisplacementFieldTransform | ( | const DisplacementFieldTransform & | ) |
|
explicit |
|
staticprivate |
Image itk::simple::DisplacementFieldTransform::GetDisplacementField | ( | ) | const |
Image itk::simple::DisplacementFieldTransform::GetInverseDisplacementField | ( | ) | const |
|
inlineoverridevirtual |
Name of this class
Reimplemented from itk::simple::Transform.
Definition at line 65 of file sitkDisplacementFieldTransform.h.
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
DisplacementFieldTransform& itk::simple::DisplacementFieldTransform::operator= | ( | const DisplacementFieldTransform & | ) |
Consume an image, and set the displacement field.
parameters
Image must be of sitkVectorFloat64 pixel type with the number of components equal to the image dimension.
Self& itk::simple::DisplacementFieldTransform::SetInterpolator | ( | InterpolatorEnum | interp | ) |
Set the interpolator used between the field voxels.
fixed parameter
|
overrideprotectedvirtual |
Reimplemented from itk::simple::Transform.
Self& itk::simple::DisplacementFieldTransform::SetSmoothingBSplineOnUpdate | ( | const std::vector< unsigned int > & | numberOfControlPointsForUpdateField = std::vector< unsigned int >(3, 4) , |
const std::vector< unsigned int > & | numberOfControlPointsForTotalField = std::vector< unsigned int >(3, 4) , |
||
bool | enforceStationaryBoundary = true , |
||
unsigned int | order = 3 |
||
) |
Self& itk::simple::DisplacementFieldTransform::SetSmoothingGaussianOnUpdate | ( | double | varianceForUpdateField = 1.75 , |
double | varianceForTotalField = 0.5 |
||
) |
Self& itk::simple::DisplacementFieldTransform::SetSmoothingOff | ( | ) |
|
private |
Definition at line 176 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 182 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 179 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 175 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 181 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 178 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 187 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 185 of file sitkDisplacementFieldTransform.h.
|
private |
Definition at line 184 of file sitkDisplacementFieldTransform.h.