STIR  6.2.0
Public Member Functions | Protected Member Functions | List of all members
stir::TimeFrameMotion Class Referenceabstract

A class for encoding average motion in the frames. More...

#include "stir_experimental/motion/TimeFrameMotion.h"

Inheritance diagram for stir::TimeFrameMotion:
Inheritance graph
[legend]

Public Member Functions

virtual Succeeded process_data ()=0
 
void move_to_reference (const bool)
 
void set_frame_num_to_process (const int)
 
int get_frame_num_to_process () const
 
const RigidObject3DTransformationget_current_rigid_object_transformation () const
 get transformation from (or to) reference for current frame More...
 
const RigidObject3DTransformationget_rigid_object_transformation_to_reference () const
 Get the transformation to the reference as returned by the RigidObject3DMotion object.
 
const TimeFrameDefinitionsget_time_frame_defs () const
 
double get_frame_start_time (unsigned frame_num) const
 
double get_frame_end_time (unsigned frame_num) const
 
const RigidObject3DMotionget_motion () const
 
- Public Member Functions inherited from stir::ParsingObject
 ParsingObject (const ParsingObject &)
 
ParsingObjectoperator= (const ParsingObject &)
 
void ask_parameters ()
 
virtual std::string parameter_info ()
 
bool parse (std::istream &f)
 
bool parse (const char *const filename)
 

Protected Member Functions

void set_defaults () override
 parsing functions
 
void initialise_keymap () override
 Initialise all keywords.
 
bool post_processing () override
 This will be called at the end of the parsing. More...
 
- Protected Member Functions inherited from stir::ParsingObject
virtual void set_key_values ()
 This will be called before parsing or parameter_info is called. More...
 

Additional Inherited Members

- Protected Attributes inherited from stir::ParsingObject
KeyParser parser
 

Detailed Description

A class for encoding average motion in the frames.

Example par file
These are the parameters set by this class. The derived classes will add more.
  ; see stir::TimeFrameDefinitions
  time frame_definition filename := frame_definition_filename

  ; next parameter is optional (and not normally necessary)
  ; it can be used if the frame definitions are relative to another scan as what
  ; is used to for the rigid object motion (i.e. currently the list mode data used
  ;  for the Polaris synchronisation)
  ; scan_start_time_secs_since_1970_UTC

  ; next parameter defines transformation 'direction', defaults to 1
  ;move_to_reference := 1

  ; next can be set to do only 1 frame, defaults means all frames
  ;frame_num_to_process := -1

  ; specify motion, see stir::RigidObject3DMotion
  Rigid Object 3D Motion Type := type

  ; specify reference position, see stir::AbsTimeInterval
  time interval for reference position type:= type

  END :=

Member Function Documentation

◆ get_current_rigid_object_transformation()

const RigidObject3DTransformation & stir::TimeFrameMotion::get_current_rigid_object_transformation ( ) const

get transformation from (or to) reference for current frame

This is computed using RigidObject3DTransformation::compute_average_motion_in_scanner_coords for the current frame.

◆ post_processing()

bool stir::TimeFrameMotion::post_processing ( )
overrideprotectedvirtual

This will be called at the end of the parsing.

Returns
false if everything OK, true if not

Reimplemented from stir::ParsingObject.

References stir::warning().


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