STIR 6.4.0
compute_ROI_values.h
Go to the documentation of this file.
1//
2//
11/*
12 Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
13 This file is part of STIR.
14
15 SPDX-License-Identifier: Apache-2.0
16
17 See STIR/LICENSE.txt for details
18*/
19#ifndef __stir_evaluation_compute_ROI_values__H__
20#define __stir_evaluation_compute_ROI_values__H__
21
24
25START_NAMESPACE_STIR
26
27template <typename coordT>
28class CartesianCoordinate2D;
29template <typename coordT>
30class CartesianCoordinate3D;
31template <typename elemT>
32class VectorWithOffset;
33template <int num_dimensions, typename elemT>
34class DiscretisedDensity;
35class Shape3D;
36
46
47// TODO doc
48
49void compute_ROI_values_per_plane(VectorWithOffset<ROIValues>& values,
50 const DiscretisedDensity<3, float>& image,
51 const Shape3D& shape,
52 const CartesianCoordinate3D<int>& num_samples);
53
54void compute_ROI_values_per_plane(VectorWithOffset<ROIValues>& values,
55 const DiscretisedDensity<3, float>& image,
56 const DiscretisedDensity<3, float>& discretised_shape);
57
58ROIValues compute_total_ROI_values(const VectorWithOffset<ROIValues>& values);
59
60ROIValues compute_total_ROI_values(const DiscretisedDensity<3, float>& image,
61 const Shape3D& shape,
62 const CartesianCoordinate3D<int>& num_samples);
63
64ROIValues compute_total_ROI_values(const DiscretisedDensity<3, float>& image,
65 const DiscretisedDensity<3, float>& discretised_shape);
66
67// function that calculate the
68void compute_plane_range_ROI_values_per_plane(VectorWithOffset<ROIValues>& values,
69 const DiscretisedDensity<3, float>& image,
70 const CartesianCoordinate2D<int>& plane_range,
71 const Shape3D& shape,
72 const CartesianCoordinate3D<int>& num_samples);
73
74float compute_CR_hot(ROIValues& val1, ROIValues& val2);
75float compute_CR_cold(ROIValues& val1, ROIValues& val2);
76float compute_uniformity(ROIValues& val);
77
78VectorWithOffset<float> compute_CR_hot_per_plane(VectorWithOffset<ROIValues>& val1, VectorWithOffset<ROIValues>& val2);
79
80VectorWithOffset<float> compute_CR_cold_per_plane(VectorWithOffset<ROIValues>& val1, VectorWithOffset<ROIValues>& val2);
81
82VectorWithOffset<float> compute_uniformity_per_plane(VectorWithOffset<ROIValues>& val);
83
84// end of doxygen group
86
87END_NAMESPACE_STIR
88
89#endif
Definition of class stir::ROIValues.
defines the stir::VoxelsOnCartesianGrid class