25 template <
int num_dimensions,
class T>
26 class BasicCoordinate;
27 template <
int num_dimensions,
class T>
29 template <
class elemT>
30 class VectorWithOffset;
31 template <
class coordT>
32 class CartesianCoordinate3D;
33 template <
class elemT>
34 class VoxelsOnCartesianGrid;
53 template <
int num_dimensions,
class T>
72 template <
int num_dimensions,
class T>
89 VectorWithOffset<T>& weights,
90 const VoxelsOnCartesianGrid<T>& image);
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
BasicCoordinate< num_dimensions, T > find_centre_of_gravity(const Array< num_dimensions, T > &array)
Compute centre of gravity of an Array.
Definition: centre_of_gravity.cxx:86
T find_unweighted_centre_of_gravity(const Array< 1, T > &row)
Compute centre of gravity of a 1D Array but without dividing by its sum.
Definition: centre_of_gravity.cxx:45
basic configuration include file
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
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