Milena (Olena)  User documentation 2.0a Id
mln::io::fld Namespace Reference

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

Classes

struct  fld_header
 Define the header structure of an AVS field data file. More...

Functions

template<typename I >
void load (Image< I > &ima_, const char *filename)
 Load an image from an AVS field file.
fld_header read_header (std::istream &ins)
 Read the header form an AVS field file.
void write_header (std::ostream &file, const fld_header &h)
 Write the AVS header in a file.

Detailed Description

Namespace of pgm input/output handling.


Function Documentation

template<typename I >
void mln::io::fld::load ( Image< I > &  ima_,
const char *  filename 
) [inline]

Load an image from an AVS field file.

Parameters:
[in,out]ima_The image to load.
[in]filenameThe path to the AVS file.

Definition at line 199 of file fld/load.hh.

References mln::box< P >::pmax(), mln::box< P >::pmin(), and read_header().

fld_header mln::io::fld::read_header ( std::istream &  ins) [inline]

Read the header form an AVS field file.

Parameters:
insThe file to read.
Returns:
The header.

Definition at line 76 of file fld/load_header.hh.

Referenced by load().

void mln::io::fld::write_header ( std::ostream &  file,
const fld_header &  h 
) [inline]

Write the AVS header in a file.

Parameters:
fileThe file to write.
hThe AVS header.

Definition at line 58 of file write_header.hh.

 All Classes Namespaces Functions Variables Typedefs Enumerator