mln::io::ppm Namespace Reference

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


Functions

template<typename V >
image2d< V > load (const std::string &filename)
 Load a ppm image in a Milena image.
template<typename I >
void load (Image< I > &ima, const std::string &filename)
 Load a ppm image in a Milena image.
template<typename I >
void save (const Image< I > &ima, const std::string &filename)


Detailed Description

Namespace of ppm input/output handling.


Function Documentation

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

Load a ppm image in a Milena image.

To use this routine, you should specialize the template whith the value type of the image loaded. (ex : load<value::int_u8>("..."))

Parameters:
[in] filename The image source.
Returns:
An image2d which contains loaded data.
Load a ppm image in a Milena image.

Load a pgm image in a Milena image.

Load a pfm image in a image2d<float>.

Load a pbm image in a image2d<float>.

Parameters:
[in] filename The image source.
Returns:
An image2d<float> which contains loaded data.

template<typename I >
void mln::io::ppm::load ( Image< I > &  ima,
const std::string &  filename 
) [inline]

Load a ppm image in a Milena image.

Parameters:
[out] ima A reference to the image which will receive data.
[in] filename The source.

template<typename I >
void mln::io::ppm::save ( const Image< I > &  ima,
const std::string &  filename 
) [inline]

Save a Milena image as a ppm image.

Parameters:
[in] ima The image to save.
[in,out] filename the destination.

Referenced by mln::registration::icp().


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