STIR 6.4.0
sampling_functions.h File Reference

Sampling functions (currently only stir::sample_function_on_regular_grid) More...

#include "stir/numerics/sampling_functions.inl"

Go to the source code of this file.

Namespaces

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

Functions

template<class FunctionType, class elemT, class positionT>
void stir::sample_function_on_regular_grid (Array< 3, elemT > &out, FunctionType func, const BasicCoordinate< 3, positionT > &offset, const BasicCoordinate< 3, positionT > &step)
 Generic function to get the values of a 3D function on a regular grid.
 
template<typename elemT, typename FunctionType, typename Lambda>
void stir::sample_function_using_index_converter (Array< 3, elemT > &out, FunctionType func, Lambda &&index_converter)
 Generic function to get the values of a 3D function on a grid.
 

Detailed Description

Sampling functions (currently only stir::sample_function_on_regular_grid)

Author
Charalampos Tsoumpas
Kris Thielemans
Markus Jehl