SIRF
3.5.0
|
Forward declarations. More...
#include "Transformation.h"
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. | |
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.
|
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 >.