Namespace of raw input/output handling. More...
Namespaces | |
namespace | internal |
Classes | |
struct | raw_header |
Store raw file header. More... | |
Functions | |
raw_header | get_header (const std::string &filename) |
Retrieve header in a raw file. | |
template<typename I > | |
void | load (Image< I > &ima_, const std::string &filename) |
Load an image saved as a raw data file. | |
template<typename I > | |
void | save (const Image< I > &ima_, const std::string &filename) |
Save a Milena image as a raw data file. |
Namespace of raw input/output handling.
raw_header mln::io::raw::get_header | ( | const std::string & | filename | ) |
Retrieve header in a raw file.
Definition at line 68 of file raw/get_header.hh.
References mln::io::raw::raw_header::dim, mln::trace::entering(), mln::trace::exiting(), mln::util::array< T >::resize(), mln::io::raw::raw_header::size, and mln::io::raw::raw_header::value_type.
void mln::io::raw::load | ( | Image< I > & | ima_, | |
const std::string & | filename | |||
) |
Load an image saved as a raw data file.
[in,out] | ima_ | The image to load. |
[in] | filename | the destination. |
This routine try to read two input files: 'filename' and 'filename.info'. 'filename' is the raw data. 'filename.info' store various information about the image.
Definition at line 184 of file raw/load.hh.
References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::io::raw::internal::load_data(), and mln::io::raw::internal::load_header().
void mln::io::raw::save | ( | const Image< I > & | ima_, | |
const std::string & | filename | |||
) |
Save a Milena image as a raw data file.
[in] | ima_ | The image to save. |
[in] | filename | the destination. |
This routine produce two output files: 'filename' and 'filename.info'. 'filename' is the raw data. 'filename.info' store various information about the image.
Definition at line 135 of file raw/save.hh.
References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::io::raw::internal::save_data(), and mln::io::raw::internal::save_header().