1#ifndef __stir_IO_write_data_H__
2#define __stir_IO_write_data_H__
51template <
int num_dimensions,
class OStreamT,
class elemT>
53 const ArrayType<num_dimensions, elemT>& data,
54 const ByteOrder byte_order = ByteOrder::native,
55 const bool can_corrupt_data =
false);
72template <
int num_dimensions,
class OStreamT,
class elemT,
class OutputType,
class ScaleT>
74 const ArrayType<num_dimensions, elemT>& data,
75 NumericInfo<OutputType> output_type,
77 const ByteOrder byte_order = ByteOrder::native,
78 const bool can_corrupt_data =
false);
97template <
int num_dimensions,
class OStreamT,
class elemT,
class OutputType,
class ScaleT>
99 const ArrayType<num_dimensions, elemT>& data,
100 NumericInfo<OutputType> output_type,
101 const ScaleT scale_factor,
102 const ByteOrder byte_order = ByteOrder::native,
103 const bool can_corrupt_data =
false);
121template <
int num_dimensions,
class OStreamT,
class elemT,
class ScaleT>
123 const ArrayType<num_dimensions, elemT>& data,
126 const ByteOrder byte_order = ByteOrder::native,
127 const bool can_corrupt_data =
false);
forward declaration of stir::Array class for multi-dimensional (numeric) arrays
This file declares the stir::ByteOrder class.
Succeeded write_data_with_fixed_scale_factor(OStreamT &s, const ArrayType< num_dimensions, elemT > &data, NumericInfo< OutputType > output_type, const ScaleT scale_factor, const ByteOrder byte_order=ByteOrder::native, const bool can_corrupt_data=false)
Write the data of an Array to file as a different type but using a given scale factor.
Definition write_data.inl:82
Succeeded write_data(OStreamT &s, const ArrayType< num_dimensions, elemT > &data, const ByteOrder byte_order=ByteOrder::native, const bool can_corrupt_data=false)
Write the data of an Array to file.
Definition write_data.inl:108
Implementation of stir::write_data() functions for writing stir::Array's to file.