STIR
6.2.0
|
This file declares the stir::convert_array functions. This is a function to convert stir::Array objects to a different numeric type. More...
Go to the source code of this file.
Classes | |
class | stir::NumericInfo< NUMBER > |
class NumericInfo<NUMBER> defines properties for the type NUMBER. More... | |
class | stir::Array< num_dimensions, elemT > |
This class defines multi-dimensional (numeric) arrays. More... | |
Namespaces | |
stir | |
Namespace for the STIR library (and some/most of its applications) | |
Functions | |
template<int num_dimensions, class T1 , class T2 , class scaleT > | |
void | stir::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. More... | |
template<int num_dimensions, class T1 , class T2 , class scaleT > | |
Array< num_dimensions, T2 > | stir::convert_array (scaleT &scale_factor, const Array< num_dimensions, T1 > &data_in, const NumericInfo< T2 > info2) |
A function that returns a new Array (of the same dimension) with elements of type T2 . More... | |
template<int num_dimensions, class T1 , class T2 , class scaleT > | |
void | stir::convert_array (Array< num_dimensions, T2 > &data_out, scaleT &scale_factor, const Array< num_dimensions, T1 > &data_in) |
Converts the data_in Array to data_out (with elements of different types) such that data_in == data_out * scale_factor . More... | |
This file declares the stir::convert_array functions. This is a function to convert stir::Array objects to a different numeric type.