$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PPM

Functions

template<typename V >
void mln::io::ppms::load (image3d< V > &ima, const util::array< std::string > &filenames)
template<typename I >
void mln::io::ppm::load (Image< I > &ima, const std::string &filename)
template<typename V >
image2d< V > mln::io::ppm::load (const std::string &filename)
template<typename I >
void mln::io::ppm::save (const Image< I > &ima, const std::string &filename)

Detailed Description

PPM I/O routines.

Function Documentation

template<typename V >
void mln::io::ppms::load ( image3d< V > &  ima,
const util::array< std::string > &  filenames 
)

Load ppm images as slices of a 3D Milena image.

Parameters
[out]imaA reference to the 3D image which will receive data.
[in]filenamesThe list of 2D images to load..
template<typename I >
void mln::io::ppm::load ( Image< I > &  ima,
const std::string &  filename 
)

Load a ppm image in a Milena image.

Parameters
[out]imaA reference to the image which will receive data.
[in]filenameThe source.
template<typename V >
image2d<V> mln::io::ppm::load ( const std::string &  filename)

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]filenameThe image source.
Returns
An image2d which contains loaded data.
template<typename I >
void mln::io::ppm::save ( const Image< I > &  ima,
const std::string &  filename 
)

Save a Milena image as a ppm image.

Parameters
[in]imaThe image to save.
[in,out]filenamethe destination.