STIR
6.2.0
|
Class to perform non-rigid object transformations in arbitrary dimensions. More...
#include "stir_experimental/motion/NonRigidObjectTransformationUsingBSplines.h"
Public Member Functions | |
NonRigidObjectTransformationUsingBSplines (const std::string &filename_x, const std::string &filename_y, const std::string &filename_z, const int bspline_order) | |
Give x, y and z components of the deformation field images separately. N.B., this will only work if the three components are in STIR orientation. | |
NonRigidObjectTransformationUsingBSplines (const std::string &filename, const int bspline_order) | |
Give x, y and z components of the deformation field images together (e.g., multicomponent nifti) | |
virtual BasicCoordinate< num_dimensions, elemT > | transform_point (const BasicCoordinate< num_dimensions, elemT > &point) const |
Transform point. | |
float | jacobian (const BasicCoordinate< num_dimensions, elemT > &point) const |
Returns the determinant of the Jacobian matrix. More... | |
virtual void | set_defaults () |
Set defaults before parsing. | |
virtual void | initialise_keymap () |
Initialise all keywords. | |
virtual bool | post_processing () |
This will be called at the end of the parsing. More... | |
virtual void | set_key_values () |
This will be called before parsing or parameter_info is called. More... | |
template<> | |
const char *const | registered_name |
Public Member Functions inherited from stir::RegisteredParsingObject< NonRigidObjectTransformationUsingBSplines< num_dimensions, elemT >, ObjectTransformation< num_dimensions, elemT >, ObjectTransformation< num_dimensions, elemT > > | |
std::string | get_registered_name () const override |
Returns Derived::registered_name. | |
std::string | parameter_info () override |
Returns a string with all parameters and their values, in a form suitable for parsing again. | |
Public Member Functions inherited from stir::ParsingObject | |
ParsingObject (const ParsingObject &) | |
ParsingObject & | operator= (const ParsingObject &) |
void | ask_parameters () |
bool | parse (std::istream &f) |
bool | parse (const char *const filename) |
Static Public Attributes | |
static const char *const | registered_name |
Additional Inherited Members | |
Public Types inherited from stir::ObjectTransformation< num_dimensions, elemT > | |
typedef ObjectTransformation | hierarchy_base_type |
typedef used by read_from_file | |
Static Public Member Functions inherited from stir::RegisteredParsingObject< NonRigidObjectTransformationUsingBSplines< num_dimensions, elemT >, ObjectTransformation< num_dimensions, elemT >, ObjectTransformation< num_dimensions, elemT > > | |
static ObjectTransformation< num_dimensions, elemT > * | read_from_stream (std::istream *) |
Construct a new object (of type Derived) by parsing the istream. More... | |
Static Public Member Functions inherited from stir::RegisteredObject< ObjectTransformation< num_dimensions, elemT > > | |
static ObjectTransformation< num_dimensions, elemT > * | read_registered_object (std::istream *in, const std::string ®istered_name) |
Construct a new object (of a type derived from Root, its actual type determined by the registered_name parameter) by parsing the istream. More... | |
static ObjectTransformation< num_dimensions, elemT > * | ask_type_and_parameters () |
ask the user for the type, and then calls read_registered_object(0, type) More... | |
static void | list_registered_names (std::ostream &stream) |
List all possible registered names to the stream. More... | |
Protected Types inherited from stir::RegisteredObject< ObjectTransformation< num_dimensions, elemT > > | |
typedef ObjectTransformation< num_dimensions, elemT > *(* | RootFactory) (std::istream *) |
The type of a root factory is a function, taking an istream* as argument, and returning a Root*. | |
typedef FactoryRegistry< std::string, RootFactory, interfile_less > | RegistryType |
The type of the registry. | |
Static Protected Member Functions inherited from stir::RegisteredObject< ObjectTransformation< num_dimensions, elemT > > | |
static RegistryType & | registry () |
Static function returning the registry. More... | |
Protected Attributes inherited from stir::ParsingObject | |
KeyParser | parser |
Class to perform non-rigid object transformations in arbitrary dimensions.
|
virtual |
Returns the determinant of the Jacobian matrix.
This is related to the volume-element change due to the transformation.
Implements stir::ObjectTransformation< num_dimensions, elemT >.
|
virtual |
This will be called at the end of the parsing.
Reimplemented from stir::ParsingObject.
References stir::warning().
|
virtual |
This will be called before parsing or parameter_info is called.
This virtual function should be overloaded when the values for the keywords depend on other variables in the derived class that can be set independently of the parsing.
A derived class has a public member angle_in_radians, while a keyword sets a private member angle_in_degrees.
Reimplemented from stir::ParsingObject.