21 #ifndef __stir_evaluation_ROIValues__H__ 22 #define __stir_evaluation_ROIValues__H__ 46 ROIValues(
float roi_volume,
float integral,
float integral_of_square,
float min_value,
float max_value)
47 : roi_volume(roi_volume),
49 integral_of_square(integral_of_square),
59 roi_volume += iv.roi_volume;
60 integral += iv.integral;
61 integral_of_square += iv.integral_of_square;
63 min_value = std::min(min_value, iv.min_value);
64 max_value = std::max(max_value, iv.max_value);
71 std::string report()
const;
86 float get_CV()
const {
return std_value / mean_value; }
88 float get_min()
const {
return min_value; }
90 float get_max()
const {
return max_value; }
97 float integral_of_square;
100 float variance_value;
float get_integral_of_square() const
Sum of squares times voxel volume.
Definition: ROIValues.h:78
float get_variance() const
Variance.
Definition: ROIValues.h:82
float get_roi_volume() const
Total valume (in mm^3)
Definition: ROIValues.h:74
ROIValues operator+=(const ROIValues &iv)
Combine the ROI values appropriately.
Definition: ROIValues.h:57
float get_max() const
Maximum value in the ROI.
Definition: ROIValues.h:90
float get_integral() const
Sum of elements times voxel volume.
Definition: ROIValues.h:76
A class to store and get results of an ROI calculation.
Definition: ROIValues.h:40
float get_mean() const
Mean value.
Definition: ROIValues.h:80
basic configuration include file
float get_stddev() const
Standard deviation.
Definition: ROIValues.h:84
float get_CV() const
Coefficient of Variance =stddev/mean)
Definition: ROIValues.h:86
float get_min() const
Minimum value in the ROI.
Definition: ROIValues.h:88