STIR  6.2.0
Namespaces | Functions

Implementations of centre_of_gravity.h. More...

#include "stir/VoxelsOnCartesianGrid.h"
#include "stir/CartesianCoordinate3D.h"
#include "stir/centre_of_gravity.h"
#include "stir/assign.h"
#include "stir/error.h"
#include <algorithm>

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

template<class T >
stir::find_unweighted_centre_of_gravity_1d (const VectorWithOffset< T > &row)
 Compute centre of gravity of a vector but without dividing by its sum. More...
 
template<class T >
stir::find_unweighted_centre_of_gravity (const Array< 1, T > &)
 Compute centre of gravity of a 1D Array but without dividing by its sum. More...
 
template<int num_dimensions, class T >
BasicCoordinate< num_dimensions, T > stir::find_unweighted_centre_of_gravity (const Array< num_dimensions, T > &)
 Compute centre of gravity of an Array but without dividing by its sum. More...
 
template<int num_dimensions, class T >
BasicCoordinate< num_dimensions, T > stir::find_centre_of_gravity (const Array< num_dimensions, T > &)
 Compute centre of gravity of an Array. More...
 
template<class T >
void stir::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. More...
 
template<class T >
CartesianCoordinate3D< float > stir::find_centre_of_gravity_in_mm (const VoxelsOnCartesianGrid< T > &image)
 Computes centre of gravity of an image. More...
 
template void stir::find_centre_of_gravity_in_mm_per_plane (VectorWithOffset< CartesianCoordinate3D< float >> &allCoG, VectorWithOffset< float > &weights, const VoxelsOnCartesianGrid< float > &image)
 
template CartesianCoordinate3D< float > stir::find_centre_of_gravity_in_mm (const VoxelsOnCartesianGrid< float > &image)
 

Detailed Description

Implementations of centre_of_gravity.h.

Warning
Only 1, 2 and 3 dimensional versions with floats are instantiated.
Author
Kris Thielemans