STIR 6.4.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*/
21
22START_NAMESPACE_STIR
23
46template <class FunctionType, class elemT, class positionT>
47inline 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
69template <typename elemT, typename FunctionType, typename Lambda>
70inline void sample_function_using_index_converter(Array<3, elemT>& out, FunctionType func, Lambda&& index_converter);
71
72END_NAMESPACE_STIR
73
74#include "stir/numerics/sampling_functions.inl"
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
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