|
STIR 6.4.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.
Namespaces | |
| namespace | 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. | |
| 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. | |
| 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. | |
This file declares the stir::convert_array functions. This is a function to convert stir::Array objects to a different numeric type.