Classes | Functions

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] filename The path to the AVS file.

Definition at line 198 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:
ins The file to read.
Returns:
The header.

Definition at line 73 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:
file The file to write.
h The AVS header.

Definition at line 58 of file write_header.hh.