STIR 6.4.0

implementation of stir::convert_range More...

#include "stir/NumericInfo.h"
#include "stir/round.h"
#include <algorithm>
#include "boost/iterator/iterator_traits.hpp"
#include "boost/limits.hpp"

Go to the source code of this file.

Namespaces

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

Functions

template<class InputIteratorT, class T2, class scaleT>
void stir::find_scale_factor (scaleT &scale_factor, const InputIteratorT &begin, const InputIteratorT &end, const NumericInfo< T2 > info_for_out_type)
 A function that finds a scale factor to use when converting data to a new type.
 
template<class OutputIteratorT, class InputIteratorT, class scaleT>
void stir::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 data_in == data_out * scale_factor.
 
template<class IteratorT, class scaleT>
void stir::convert_range (const IteratorT &out_begin, scaleT &scale_factor, const IteratorT &in_begin, const IteratorT &in_end)
 

Detailed Description

implementation of stir::convert_range

Author
Kris Thielemans
PARAPET project