19#ifndef __stir_modelling_ModelMatrix_H__
20#define __stir_modelling_ModelMatrix_H__
35template <
int num_param>
63 inline void set_is_in_correct_scale(
const bool in_correct_scale);
117 bool _is_uncalibrated;
118 bool _in_correct_scale;
119 bool _is_converted_to_total_counts;
124#include "stir/modelling/ModelMatrix.inl"
defines the stir::Array class for multi-dimensional (numeric) arrays
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...
Declaration of class stir::DynamicDiscretisedDensity.
Declaration of class stir::ParametricDiscretisedDensity.
Declaration of class stir::Succeeded.
defines the stir::VectorWithOffset class
This class defines multi-dimensional (numeric) arrays.
Definition Array.h:78
Class of multiple image frames, one for each time frame Each time frame is a DiscretisedDensity<3,...
Definition DynamicDiscretisedDensity.h:46
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_imag...
Definition ModelMatrix.inl:282
void scale_model_matrix(const float scale_factor)
Definition ModelMatrix.inl:192
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)
Definition ModelMatrix.inl:329
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 th...
Definition ModelMatrix.inl:144
void read_from_file(const std::string input_string)
Implementation to read the model matrix.
Definition ModelMatrix.inl:46
Succeeded write_to_file(const std::string output_string)
Implementation to write the model matrix to a text file.
Definition ModelMatrix.inl:80
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
Definition ModelMatrix.inl:291
void convert_to_total_frame_counts(const TimeFrameDefinitions &time_frame_definitions)
Definition ModelMatrix.inl:211
void set_is_uncalibrated(const bool is_uncalibrated)
Function to set _is_calibrated boolean true or false.
Definition ModelMatrix.inl:158
void uncalibrate(const float cal_factor)
Definition ModelMatrix.inl:172
ModelMatrix()
default constructor
Definition ModelMatrix.inl:27
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
Definition ModelMatrix.inl:244
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44
Class used for storing time frame durations.
Definition TimeFrameDefinitions.h:39
A templated class for vectors, but with indices starting not from 0.
Definition VectorWithOffset.h:65
ParametricDiscretisedDensity< ParametricVoxelsOnCartesianGridBaseType > ParametricVoxelsOnCartesianGrid
Convenience typedef for Cartesian Voxelised Parametric Images with just two parameters.
Definition ParametricDiscretisedDensity.h:172