STIR 6.4.0

This file declares the stir::convert_range and stir::find_scale_factor functions. More...

#include "stir/common.h"
#include "stir/convert_range.inl"

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.
 

Detailed Description

This file declares the stir::convert_range and stir::find_scale_factor functions.

Author
Kris Thielemans