|
STIR 6.4.0
|
Dynamic projection data. More...
#include "stir/DynamicProjData.h"
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. | |
| void | set_start_time_in_secs_since_1970 (const double start_time) |
| set start of scan | |
| 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 | |
| void | divide_with_duration () |
| divide data with the corresponding frame duration | |
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.
References get_start_time_in_secs_since_1970().
Referenced by get_start_time_in_secs_since_1970().
| void stir::DynamicProjData::set_start_time_in_secs_since_1970 | ( | const double | start_time | ) |
set start of scan
References set_start_time_in_secs_since_1970().
Referenced by set_start_time_in_secs_since_1970().
|
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().