mln::io::pnm Namespace Reference

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


Namespaces

namespace  impl
 Namespace of pnm's implementation details.

Functions

template<typename I >
void load (char type_, Image< I > &ima_, const std::string &filename)
 An other way to load pnm files : the destination is an argument to check if the type match the file to load.
template<typename V >
image2d< V > load (char type_, const std::string &filename)
 main function : load pnm format
template<typename I >
void load_ascii_builtin (std::ifstream &file, I &ima)
 load_ascii for builtin value types.
template<typename I >
void load_ascii_value (std::ifstream &file, I &ima)
 load_ascii for Milena value types.
template<typename I >
void load_raw_2d (std::ifstream &file, I &ima)
 load_raw_2d.
template<typename V >
unsigned int max_component (const V &)
 Give the maximum value which can be stored as a component value type V.
template<typename I >
void save (char type, const Image< I > &ima_, const std::string &filename)


Detailed Description

Namespace of pnm input/output handling.


Function Documentation

template<typename I >
void mln::io::pnm::load ( char  type_,
Image< I > &  ima_,
const std::string &  filename 
) [inline]

An other way to load pnm files : the destination is an argument to check if the type match the file to load.

References mln::make::box2d(), load_raw_2d(), and max_component().

template<typename V >
image2d<V> mln::io::pnm::load ( char  type_,
const std::string &  filename 
) [inline]

main function : load pnm format

References load_raw_2d(), and max_component().

template<typename I >
void mln::io::pnm::load_ascii_builtin ( std::ifstream &  file,
I &  ima 
) [inline]

load_ascii for builtin value types.

template<typename I >
void mln::io::pnm::load_ascii_value ( std::ifstream &  file,
I &  ima 
) [inline]

load_ascii for Milena value types.

template<typename I >
void mln::io::pnm::load_raw_2d ( std::ifstream &  file,
I &  ima 
) [inline]

load_raw_2d.

for all pnm 8/16 bits formats

Referenced by load().

template<typename V >
unsigned int mln::io::pnm::max_component ( const V &   )  [inline]

Give the maximum value which can be stored as a component value type V.

Referenced by load().

template<typename I >
void mln::io::pnm::save ( char  type,
const Image< I > &  ima_,
const std::string &  filename 
) [inline]

Save a Milena image as a pnm image.

Parameters:
[in] type The type of the image to save (can be PPM, PGM, PBM).
[in] ima_ The image to save.
[in,out] filename the destination.


Generated on Tue Jul 14 16:33:06 2009 for Milena (Olena) by  doxygen 1.5.9