46 template <
class FunctionType,
class elemT,
class positionT>
49 const BasicCoordinate<3, positionT>& offset,
50 const BasicCoordinate<3, positionT>& step);
69 template <
typename elemT,
typename FunctionType,
typename Lambda>
74 #include "stir/numerics/sampling_functions.inl" void 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.
Definition: sampling_functions.inl:60
void 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.
Definition: sampling_functions.inl:25