|
STIR 6.4.0
|
A helper class to store the model matrix for a linear kinetic model. More...
#include "stir/modelling/ModelMatrix.h"

Public Member Functions | |
| ModelMatrix () | |
| default constructor | |
| ~ModelMatrix () | |
| default destructor | |
| void | read_from_file (const std::string input_string) |
| Implementation to read the model matrix. | |
| Succeeded | write_to_file (const std::string output_string) |
| Implementation to write the model matrix to a text file. | |
| void | threshold_model_array (const float threshold_value) |
| Function to give the threshold_value to the all elements of the model_array which lower value than the threshold_value. | |
| void | uncalibrate (const float cal_factor) |
| void | scale_model_matrix (const float scale_factor) |
| void | convert_to_total_frame_counts (const TimeFrameDefinitions &time_frame_definitions) |
Functions to get parameters | |
| Array< 2, float > | get_model_array () const |
| const VectorWithOffset< float > | get_model_array_sum () const |
| VectorWithOffset< float > | get_time_vector () const |
Functions to set parameters | |
| void | set_model_array (const Array< 2, float > &model_array) |
| void | set_time_vector (const VectorWithOffset< float > &time_vector) |
| void | set_is_uncalibrated (const bool is_uncalibrated) |
| Function to set _is_calibrated boolean true or false. | |
| void | set_is_in_correct_scale (const bool in_correct_scale) |
| void | multiply_dynamic_image_with_model_and_add_to_input (ParametricVoxelsOnCartesianGrid ¶metric_image, const DynamicDiscretisedDensity &dynamic_image) const |
multiply (transpose) model-matrix with dynamic image and add result to original parametric_image | |
| void | multiply_dynamic_image_with_model (ParametricVoxelsOnCartesianGrid ¶metric_image, const DynamicDiscretisedDensity &dynamic_image) const |
multiply (transpose) model-matrix with dynamic image (overwriting original content of parametric_image) | |
| void | multiply_parametric_image_with_model_and_add_to_input (DynamicDiscretisedDensity &dynamic_image, const ParametricVoxelsOnCartesianGrid ¶metric_image) const |
multiply model-matrix with parametric image and add result to original dynamic_image | |
| void | multiply_parametric_image_with_model (DynamicDiscretisedDensity &dynamic_image, const ParametricVoxelsOnCartesianGrid ¶metric_image) const |
multiply model-matrix with parametric image (overwriting original content of dynamic_image) | |
| void | normalise_parametric_image_with_model_sum (ParametricVoxelsOnCartesianGrid ¶metric_image_out, const ParametricVoxelsOnCartesianGrid ¶metric_image) const |
A helper class to store the model matrix for a linear kinetic model.
|
inline |
Implementation to read the model matrix.
Implementation to read the model matrix from a text file
References read_from_file().
Referenced by read_from_file(), and stir::modellingTests::run_tests().
|
inline |
Implementation to write the model matrix to a text file.
Implementation to write the model matrix.
References write_to_file().
Referenced by stir::modellingTests::run_tests(), and write_to_file().
|
inline |
Function to divide with the calibration factor the model array. Calibrated ModelMatrix means that the counts are in kBq/ml, while uncalibrated means that it will be to the same units as the reconstructed images.
References stir::error(), set_is_uncalibrated(), uncalibrate(), and stir::warning().
Referenced by uncalibrate().
|
inline |
Function to multiply with the scale factor the model array. Scaled ModelMatrix means that the counts are already scaled to the correct, while not scaled means that it needs to be scaled.
References stir::error(), scale_model_matrix(), and stir::warning().
Referenced by scale_model_matrix().
|
inline |
Multiply with the duration to convert the count rate to total counts in the time frame. Converted ModelMatrix means that it is in total counts in respect to the time_frame_duration, while not converted sets the _is_converted to false and means that it will be in "mean count rate".
References convert_to_total_frame_counts(), stir::error(), and stir::warning().
Referenced by convert_to_total_frame_counts().
|
inline |
multiply (transpose) model-matrix with dynamic image and add result to original parametric_image
Multiplications of the model with the dynamic or the parametric images. /todo Maybe it will be better to lie in a linear models class.
References stir::error(), stir::TimeFrameDefinitions::get_num_frames(), multiply_dynamic_image_with_model_and_add_to_input(), and stir::Array< num_dimensions, elemT >::size_all().
Referenced by multiply_dynamic_image_with_model(), and multiply_dynamic_image_with_model_and_add_to_input().
|
inline |
multiply (transpose) model-matrix with dynamic image (overwriting original content of parametric_image)
References multiply_dynamic_image_with_model(), and multiply_dynamic_image_with_model_and_add_to_input().
Referenced by multiply_dynamic_image_with_model().
|
inline |
multiply model-matrix with parametric image (overwriting original content of dynamic_image)
References multiply_parametric_image_with_model(), and multiply_parametric_image_with_model_and_add_to_input().
Referenced by multiply_parametric_image_with_model().