25template <
int num_dimensions,
class T>
27template <
typename elemT>
28class VectorWithOffset;
29template <
class coordT>
30class CartesianCoordinate3D;
32class VoxelsOnCartesianGrid;
51template <
int num_dimensions,
class T>
70template <
int num_dimensions,
class T>
87 VectorWithOffset<T>& weights,
88 const VoxelsOnCartesianGrid<T>& image);
forward declaration of stir::Array class for multi-dimensional (numeric) arrays
CartesianCoordinate3D< float > find_centre_of_gravity_in_mm(const VoxelsOnCartesianGrid< T > &image)
Computes centre of gravity of an image.
Definition centre_of_gravity.cxx:123
void find_centre_of_gravity_in_mm_per_plane(VectorWithOffset< CartesianCoordinate3D< float > > &allCoG, VectorWithOffset< T > &weights, const VoxelsOnCartesianGrid< T > &image)
Computes centre of gravity for each plane.
Definition centre_of_gravity.cxx:97
BasicCoordinate< num_dimensions, T > find_centre_of_gravity(const ArrayType< num_dimensions, T > &array)
Compute centre of gravity of an Array.
Definition centre_of_gravity.cxx:86
T find_unweighted_centre_of_gravity(const ArrayType< 1, T > &row)
Compute centre of gravity of a 1D Array but without dividing by its sum.
Definition centre_of_gravity.cxx:45
T find_unweighted_centre_of_gravity_1d(const VectorWithOffset< T > &row)
Compute centre of gravity of a vector but without dividing by its sum.
Definition centre_of_gravity.cxx:34