STIR  6.2.0
Namespaces | Functions
more_interpolators.inl File Reference

Functions to interpolate data. More...

#include "stir/Coordinate3D.h"
#include "stir/Array.h"
#include "stir/round.h"
#include <cmath>

Namespaces

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

Functions

template<class elemT , class positionT >
elemT stir::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. More...
 
template<int num_dimensions, class elemT , class positionT , class valueT >
void stir::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. More...
 
template<class elemT , class positionT >
elemT stir::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.
 
template<class elemT , class positionT , class valueT >
void stir::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.
 

Detailed Description

Functions to interpolate data.

Author
Kris Thielemans