STIR 6.4.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*/
22
23#ifndef __stir_numerics_overlap_interpolate__H__
24#define __stir_numerics_overlap_interpolate__H__
25
26#include "stir/common.h"
27
28START_NAMESPACE_STIR
29
30template <class T>
31class VectorWithOffset;
32
43template <typename T>
44void 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
122template <typename out_iter_t, typename out_coord_iter_t, typename in_iter_t, typename in_coord_iter_t>
123inline 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
134END_NAMESPACE_STIR
135
137
138#endif
basic configuration include file
void overlap_interpolate(VectorWithOffset< T > &out_data, const VectorWithOffset< T > &in_data, const float zoom, const float offset, const bool assign_rest_with_zeroes)
'overlap' interpolation (i.e. count preserving) for vectors.
Definition overlap_interpolate.cxx:102
Implementation of inline versions of stir::overlap_interpolate.