11#ifndef __stir_convert_range_H__
12#define __stir_convert_range_H__
39template <
class InputIteratorT,
class T2,
class scaleT>
41 const InputIteratorT& begin,
42 const InputIteratorT& end,
43 const NumericInfo<T2> info_for_out_type);
60template <
class OutputIteratorT,
class InputIteratorT,
class scaleT>
63 const InputIteratorT& in_begin,
64 const InputIteratorT& in_end);
basic configuration include file
implementation of stir::convert_range
void convert_range(const OutputIteratorT &out_begin, scaleT &scale_factor, const InputIteratorT &in_begin, const InputIteratorT &in_end)
Converts the data in the input range to the output range (with elements of different types) such that...
Definition convert_range.inl:129
void find_scale_factor(scaleT &scale_factor, const Array< num_dimensions, T1 > &data_in, const NumericInfo< T2 > info_for_out_type)
A function that finds a scale factor to use when converting data to a new type.
Definition convert_array.inl:28