STIR  6.2.0
overlap_interpolate.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2000 PARAPET partners
5  Copyright (C) 2000- 2007, Hammersmith Imanet Ltd
6  This file is part of STIR.
7 
8  SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
9 
10  See STIR/LICENSE.txt for details
11 */
23 #ifndef __stir_numerics_overlap_interpolate__H__
24 #define __stir_numerics_overlap_interpolate__H__
25 
26 #include "stir/common.h"
27 
28 START_NAMESPACE_STIR
29 
30 template <class T>
31 class VectorWithOffset;
32 
43 template <typename T>
44 void overlap_interpolate(VectorWithOffset<T>& out_data,
45  const VectorWithOffset<T>& in_data,
46  const float zoom,
47  const float offset,
48  const bool assign_rest_with_zeroes = true);
49 
122 template <typename out_iter_t, typename out_coord_iter_t, typename in_iter_t, typename in_coord_iter_t>
123 inline void overlap_interpolate(const out_iter_t out_begin,
124  const out_iter_t out_end,
125  const out_coord_iter_t out_coord_begin,
126  const out_coord_iter_t out_coord_end,
127  const in_iter_t in_begin,
128  in_iter_t in_end,
129  const in_coord_iter_t in_coord_begin,
130  const in_coord_iter_t in_coord_end,
131  const bool only_add_to_output = false,
132  const bool assign_rest_with_zeroes = true);
133 
134 END_NAMESPACE_STIR
135 
137 
138 #endif
Implementation of inline versions of stir::overlap_interpolate.
void overlap_interpolate(const out_iter_t out_begin, const out_iter_t out_end, const out_coord_iter_t out_coord_begin, const out_coord_iter_t out_coord_end, const in_iter_t in_begin, in_iter_t in_end, const in_coord_iter_t in_coord_begin, const in_coord_iter_t in_coord_end, const bool only_add_to_output=false, const bool assign_rest_with_zeroes=true)
&#39;overlap&#39; interpolation for iterators, with arbitrary &#39;bin&#39; sizes.
Definition: overlap_interpolate.inl:24
basic configuration include file