Classes | Functions

mln::io::raw Namespace Reference

Namespace of raw input/output handling. More...

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.

Detailed Description

Namespace of raw input/output handling.


Function Documentation

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::util::array< T >::resize().

template<typename I >
void mln::io::raw::load ( Image< I > &  ima_,
const std::string &  filename 
)

Load an image saved as a raw data file.

Parameters:
[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.

template<typename I >
void mln::io::raw::save ( const Image< I > &  ima_,
const std::string &  filename 
)

Save a Milena image as a raw data file.

Parameters:
[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.