SIRF  3.5.0
Public Member Functions | Static Protected Member Functions | List of all members
sirf::Transformation< dataType > Class Template Referenceabstract

Forward declarations. More...

#include "Transformation.h"

Inheritance diagram for sirf::Transformation< dataType >:
sirf::AffineTransformation< dataType > sirf::NonRigidTransformation< dataType > sirf::NiftiImageData3DDeformation< dataType > sirf::NiftiImageData3DDisplacement< dataType >

Public Member Functions

 Transformation ()
 Constructor.
 
virtual ~Transformation ()
 Destructor.
 
virtual NiftiImageData3DDeformation< dataType > get_as_deformation_field (const NiftiImageData< dataType > &ref, const bool use_ref=true) const =0
 
virtual void write (const std::string &filename) const =0
 Write.
 

Static Protected Member Functions

static void check_ref_and_def (const NiftiImageData< dataType > &ref, const NiftiImageData3DDeformation< dataType > &def)
 Check that the deformation field image matches the reference image.
 

Detailed Description

template<class dataType>
class sirf::Transformation< dataType >

Forward declarations.

Base class for transformations.

All transformations need to be able to convert themselves to a deformation field. In this fashion, they can be composed into a single transformation.

Author
Richard Brown
SyneRBI

Member Function Documentation

◆ get_as_deformation_field()

template<class dataType >
virtual NiftiImageData3DDeformation<dataType> sirf::Transformation< dataType >::get_as_deformation_field ( const NiftiImageData< dataType > &  ref,
const bool  use_ref = true 
) const
pure virtual

Get as deformation field.

Reference image must be used when converting a transformation matrix to a deformation. For displacements and deformations, the reference can be used optionally. It should be used when composing transformations to be used for resampling But is probably unnecessary for simply concatenating deformations.

Implemented in sirf::NiftiImageData3DDisplacement< dataType >, sirf::NiftiImageData3DDeformation< dataType >, and sirf::AffineTransformation< dataType >.


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