STIR  6.2.0
Classes | Namespaces | Functions

This file contains functions to compute the centre of gravity of arrays and images. More...

#include "stir/common.h"

Go to the source code of this file.

Classes

class  stir::BasicCoordinate< num_dimensions, coordT >
 class BasicCoordinate<int num_dimensions, typename coordT> defines num_dimensions -dimensional coordinates. More...
 
class  stir::Array< num_dimensions, elemT >
 This class defines multi-dimensional (numeric) arrays. More...
 
class  stir::VectorWithOffset< T >
 A templated class for vectors, but with indices starting not from 0. More...
 
class  stir::CartesianCoordinate3D< coordT >
 a templated class for 3-dimensional coordinates. More...
 
class  stir::VoxelsOnCartesianGrid< elemT >
 This class is used to represent voxelised densities on a cuboid grid (3D). More...
 

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<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<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_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...
 

Detailed Description

This file contains functions to compute the centre of gravity of arrays and images.

Author
Kris Thielemans