STIR  6.2.0
sampling_functions.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2005- 2009, Hammersmith Imanet Ltd
5  Copyright 2023, Positrigo AG, Zurich
6  This file is part of STIR.
7 
8  SPDX-License-Identifier: Apache-2.0
9 
10  See STIR/LICENSE.txt for details
11 */
22 START_NAMESPACE_STIR
23 
46 template <class FunctionType, class elemT, class positionT>
47 inline void sample_function_on_regular_grid(Array<3, elemT>& out,
48  FunctionType func,
49  const BasicCoordinate<3, positionT>& offset,
50  const BasicCoordinate<3, positionT>& step);
51 
69 template <typename elemT, typename FunctionType, typename Lambda>
70 inline void sample_function_using_index_converter(Array<3, elemT>& out, FunctionType func, Lambda&& index_converter);
71 
72 END_NAMESPACE_STIR
73 
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