STIR
6.2.0
|
Dynamic projection data. More...
#include "stir/DynamicProjData.h"
Inherits stir::MultipleProjData.
Public Member Functions | |
DynamicProjData (const MultipleProjData &m) | |
DynamicProjData (const shared_ptr< const ExamInfo > &exam_info_sptr) | |
DynamicProjData (const shared_ptr< const ExamInfo > &exam_info_sptr, const int num_gates) | |
const double | get_start_time_in_secs_since_1970 () const |
Return time of start of scan. More... | |
void | set_start_time_in_secs_since_1970 (const double start_time) |
set start of scan More... | |
unsigned int | get_num_frames () const |
Succeeded | write_to_ecat7 (const std::string &filename) const |
void | set_time_frame_definitions (const TimeFrameDefinitions &time_frame_definitions) |
const TimeFrameDefinitions & | get_time_frame_definitions () const |
void | calibrate_frames (const float cal_factor) |
multiply data with a constant factor More... | |
void | divide_with_duration () |
divide data with the corresponding frame duration More... | |
Static Public Member Functions | |
static unique_ptr< DynamicProjData > | read_from_file (const std::string &filename) |
Dynamic projection data.
Somewhat preliminary
Move read_from_file, write_to_ecat7 to usual registry methods
Interfile support currently doesn't set start_time_in_secs_since_1970
const double stir::DynamicProjData::get_start_time_in_secs_since_1970 | ( | ) | const |
Return time of start of scan.
Note that the return type is a double
. This allows for enough accuracy for a long time to come. It also means that the start time can have fractional seconds.
The time frame definitions should be relative to this time.
void stir::DynamicProjData::set_start_time_in_secs_since_1970 | ( | const double | start_time | ) |
set start of scan
References stir::FileSignature::get_signature(), stir::info(), stir::is_interfile_signature(), and stir::read_from_file().
|
inline |
multiply data with a constant factor
References stir::error(), and stir::TimeFrameDefinitions::get_num_frames().
|
inline |
divide data with the corresponding frame duration
References stir::error(), and stir::TimeFrameDefinitions::get_num_frames().