$search
class for saving and loading matrices and fields More...
#include <diskio_bones.hpp>
Public Member Functions | |
template<typename eT > | |
bool | load_ppm_binary (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
bool | load_ppm_binary (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
bool | save_ppm_binary (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
bool | save_ppm_binary (const Cube< eT > &x, const std::string &final_name) |
Static Public Member Functions | |
static void | conv_to_hex (char *out, const u8 x) |
static char | conv_to_hex_char (const u8 x) |
template<typename eT > | |
static std::string | gen_bin_header (const Cube< eT > &x) |
template<typename eT > | |
static std::string | gen_bin_header (const Mat< eT > &x) |
static std::string | gen_tmp_name (const std::string &x) |
template<typename eT > | |
static std::string | gen_txt_header (const Cube< eT > &x) |
template<typename eT > | |
static std::string | gen_txt_header (const Mat< eT > &x) |
static file_type | guess_file_type (std::istream &f) |
template<typename eT > | |
static bool | load_arma_ascii (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_arma_ascii (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | load_arma_ascii (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_arma_ascii (Mat< eT > &x, const std::string &name, std::string &err_msg) |
template<typename T1 > | |
static bool | load_arma_binary (field< T1 > &x, std::istream &f, std::string &err_msg) |
template<typename T1 > | |
static bool | load_arma_binary (field< T1 > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | load_arma_binary (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_arma_binary (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | load_arma_binary (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_arma_binary (Mat< eT > &x, const std::string &name, std::string &err_msg) |
template<typename T1 > | |
static bool | load_auto_detect (field< T1 > &x, std::istream &f, std::string &err_msg) |
Try to load a field by automatically determining its type. | |
template<typename T1 > | |
static bool | load_auto_detect (field< T1 > &x, const std::string &name, std::string &err_msg) |
Try to load a field by automatically determining its type. | |
template<typename eT > | |
static bool | load_auto_detect (Cube< eT > &x, std::istream &f, std::string &err_msg) |
Try to load a cube by automatically determining its type. | |
template<typename eT > | |
static bool | load_auto_detect (Cube< eT > &x, const std::string &name, std::string &err_msg) |
Try to load a cube by automatically determining its type. | |
template<typename eT > | |
static bool | load_auto_detect (Mat< eT > &x, std::istream &f, std::string &err_msg) |
Try to load a matrix by automatically determining its type. | |
template<typename eT > | |
static bool | load_auto_detect (Mat< eT > &x, const std::string &name, std::string &err_msg) |
Try to load a matrix by automatically determining its type. | |
template<typename eT > | |
static bool | load_csv_ascii (Mat< eT > &x, std::istream &f, std::string &err_msg) |
Load a matrix in CSV text format (human readable). | |
template<typename eT > | |
static bool | load_csv_ascii (Mat< eT > &x, const std::string &name, std::string &err_msg) |
Load a matrix in CSV text format (human readable). | |
template<typename T > | |
static bool | load_pgm_binary (Mat< std::complex< T > > &x, std::istream &is, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename eT > | |
static bool | load_pgm_binary (Mat< eT > &x, std::istream &is, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename T > | |
static bool | load_pgm_binary (Mat< std::complex< T > > &x, const std::string &name, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename eT > | |
static bool | load_pgm_binary (Mat< eT > &x, const std::string &name, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename T1 > | |
static bool | load_ppm_binary (field< T1 > &x, std::istream &f, std::string &err_msg) |
template<typename T1 > | |
static bool | load_ppm_binary (field< T1 > &x, const std::string &final_name, std::string &err_msg) |
template<typename T1 > | |
static bool | load_ppm_binary (Cube< T1 > &x, std::istream &f, std::string &err_msg) |
template<typename T1 > | |
static bool | load_ppm_binary (Cube< T1 > &x, const std::string &final_name, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_ascii (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_ascii (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_ascii (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_ascii (Mat< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_binary (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_binary (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_binary (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | load_raw_binary (Mat< eT > &x, const std::string &name, std::string &err_msg) |
static bool | load_std_string (field< std::string > &x, std::istream &f, std::string &err_msg) |
static bool | load_std_string (field< std::string > &x, const std::string &name, std::string &err_msg) |
static void | pnm_skip_comments (std::istream &f) |
static bool | safe_rename (const std::string &old_name, const std::string &new_name) |
template<typename eT > | |
static bool | save_arma_ascii (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | save_arma_ascii (const Cube< eT > &x, const std::string &name) |
template<typename eT > | |
static bool | save_arma_ascii (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | save_arma_ascii (const Mat< eT > &x, const std::string &final_name) |
template<typename T1 > | |
static bool | save_arma_binary (const field< T1 > &x, std::ostream &f) |
template<typename T1 > | |
static bool | save_arma_binary (const field< T1 > &x, const std::string &name) |
template<typename eT > | |
static bool | save_arma_binary (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | save_arma_binary (const Cube< eT > &x, const std::string &name) |
template<typename eT > | |
static bool | save_arma_binary (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | save_arma_binary (const Mat< eT > &x, const std::string &final_name) |
template<typename eT > | |
static bool | save_csv_ascii (const Mat< eT > &x, std::ostream &f) |
Save a matrix in CSV text format (human readable). | |
template<typename eT > | |
static bool | save_csv_ascii (const Mat< eT > &x, const std::string &final_name) |
Save a matrix in CSV text format (human readable). | |
template<typename T > | |
static bool | save_pgm_binary (const Mat< std::complex< T > > &x, std::ostream &f) |
Save a matrix as a PGM greyscale image. | |
template<typename eT > | |
static bool | save_pgm_binary (const Mat< eT > &x, std::ostream &f) |
Save a matrix as a PGM greyscale image. | |
template<typename T > | |
static bool | save_pgm_binary (const Mat< std::complex< T > > &x, const std::string &final_name) |
Save a matrix as a PGM greyscale image. | |
template<typename eT > | |
static bool | save_pgm_binary (const Mat< eT > &x, const std::string &final_name) |
Save a matrix as a PGM greyscale image. | |
template<typename T1 > | |
static bool | save_ppm_binary (const field< T1 > &x, std::ostream &f) |
template<typename T1 > | |
static bool | save_ppm_binary (const field< T1 > &x, const std::string &final_name) |
template<typename T1 > | |
static bool | save_ppm_binary (const Cube< T1 > &x, std::ostream &f) |
template<typename T1 > | |
static bool | save_ppm_binary (const Cube< T1 > &x, const std::string &final_name) |
template<typename eT > | |
static bool | save_raw_ascii (const Cube< eT > &x, std::ostream &f) |
Save a cube as raw text (no header, human readable). | |
template<typename eT > | |
static bool | save_raw_ascii (const Cube< eT > &x, const std::string &name) |
Save a cube as raw text (no header, human readable). | |
template<typename eT > | |
static bool | save_raw_ascii (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | save_raw_ascii (const Mat< eT > &x, const std::string &final_name) |
template<typename eT > | |
static bool | save_raw_binary (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | save_raw_binary (const Cube< eT > &x, const std::string &name) |
Save a cube as raw binary (no header). | |
template<typename eT > | |
static bool | save_raw_binary (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | save_raw_binary (const Mat< eT > &x, const std::string &final_name) |
Save a matrix as raw binary (no header). | |
static bool | save_std_string (const field< std::string > &x, std::ostream &f) |
static bool | save_std_string (const field< std::string > &x, const std::string &name) |
class for saving and loading matrices and fields
Definition at line 20 of file diskio_bones.hpp.
static bool diskio::load_ppm_binary | ( | Cube< T1 > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static] |
static bool diskio::load_ppm_binary | ( | Cube< T1 > & | x, | |
const std::string & | final_name, | |||
std::string & | err_msg | |||
) | [inline, static] |
static bool diskio::save_ppm_binary | ( | const Cube< T1 > & | x, | |
std::ostream & | f | |||
) | [inline, static] |
static bool diskio::save_ppm_binary | ( | const Cube< T1 > & | x, | |
const std::string & | final_name | |||
) | [inline, static] |