7 #ifndef __stir_numerics_more_interpolators_H__ 8 #define __stir_numerics_more_interpolators_H__ 29 template <
class elemT,
class positionT>
37 template <
int num_dimensions,
class elemT,
class positionT,
class valueT>
39 const BasicCoordinate<num_dimensions, positionT>& point_in_output_coords,
45 template <
class elemT,
class positionT>
46 elemT
pull_linear_interpolate(
const Array<3, elemT>& in,
const BasicCoordinate<3, positionT>& point_in_input_coords);
51 template <
class elemT,
class positionT,
class valueT>
53 const BasicCoordinate<3, positionT>& point_in_output_coords,
61 template <
class elemT>
69 void set_input(
const Array<3, elemT>& input)
const { this->_input_ptr = &input; }
71 template <
class positionT>
90 template <
class elemT>
98 void set_output(
Array<3, elemT>& output)
const { this->_output_ptr = &output; }
100 template <
class positionT,
class valueT>
119 template <
class elemT>
127 void set_input(
const Array<3, elemT>& input)
const { this->_input_ptr = &input; }
129 template <
class positionT>
148 template <
class elemT>
156 void set_output(
Array<3, elemT>& output)
const { this->_output_ptr = &output; }
158 template <
class positionT,
class valueT>
A function object to pull interpolated values from the input array into the grid points of the output...
Definition: more_interpolators.h:120
A function object to pull interpolated values from the input array into the grid points of the output...
Definition: more_interpolators.h:62
elemT pull_linear_interpolate(const Array< 3, elemT > &in, const BasicCoordinate< 3, positionT > &point_in_input_coords)
Returns an interpolated value according to point_in_input_coords.
Definition: more_interpolators.inl:61
defines the Array class for multi-dimensional (numeric) arrays
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...
A function object to push values at the grid of the input array into the output array.
Definition: more_interpolators.h:91
A function object to push values at the grid of the input array into the output array.
Definition: more_interpolators.h:149
elemT pull_nearest_neighbour_interpolate(const Array< 3, elemT > &in, const BasicCoordinate< 3, positionT > &point_in_input_coords)
Pull value from the input array using nearest neigbour interpolation.
Definition: more_interpolators.inl:24
void push_nearest_neighbour_interpolate(Array< num_dimensions, elemT > &out, const BasicCoordinate< num_dimensions, positionT > &point_in_output_coords, valueT value)
Push value into the output array using nearest neigbour interpolation.
Definition: more_interpolators.inl:43
class BasicCoordinate<int num_dimensions, typename coordT> defines num_dimensions -dimensional coordi...
Definition: BasicCoordinate.h:53
Functions to interpolate data.
void push_transpose_linear_interpolate(Array< 3, elemT > &out, const BasicCoordinate< 3, positionT > &point_in_output_coords, valueT value)
Push value into the output array using the transpose of linear interpolation.
Definition: more_interpolators.inl:96