Namespace of dump input/output handling. More...
Namespaces | |
namespace | internal |
Classes | |
struct | dump_header |
Store dump file header. More... | |
Functions | |
dump_header | get_header (const std::string &filename) |
Retrieve header in a dump file. | |
template<typename I > | |
void | load (Image< I > &ima_, const std::string &filename) |
Load a Milena image by dumped into a file. | |
template<typename I > | |
void | save (const Image< I > &ima_, const std::string &filename) |
Save a Milena image by dumping its data to a file. |
Namespace of dump input/output handling.
dump_header mln::io::dump::get_header | ( | const std::string & | filename | ) |
Retrieve header in a dump file.
Definition at line 68 of file dump/get_header.hh.
References mln::io::dump::dump_header::dim, mln::trace::entering(), mln::trace::exiting(), mln::util::array< T >::resize(), mln::io::dump::dump_header::size, and mln::io::dump::dump_header::value_type.
void mln::io::dump::load | ( | Image< I > & | ima_, | |
const std::string & | filename | |||
) |
Load a Milena image by dumped into a file.
[in,out] | ima_ | The image to load. |
[in] | filename | the destination. |
Definition at line 171 of file dump/load.hh.
References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::io::dump::internal::load_data(), and mln::io::dump::internal::load_header().
void mln::io::dump::save | ( | const Image< I > & | ima_, | |
const std::string & | filename | |||
) |
Save a Milena image by dumping its data to a file.
[in] | ima_ | The image to save. |
[in] | filename | the destination. |
Definition at line 131 of file dump/save.hh.
References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::io::dump::internal::save_data(), and mln::io::dump::internal::save_header().