mln::io::off Namespace Reference

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


Functions

void load (bin_2complex_image3df &ima, const std::string &filename)
 Load a (binary) OFF image into a complex image.
void save (const bin_2complex_image3df &ima, const std::string &filename)
 Save a (binary) OFF image into a complex image.
template<typename I >
void save_bin_alt (const I &ima, const std::string &filename)
 FIXME: Similar to mln::io::off::save(const bin_2complex_image3df&, const std::string&), but does not save faces whose value is `false'.


Detailed Description

Namespace of off input/output handling.


Function Documentation

void mln::io::off::load ( bin_2complex_image3df &  ima,
const std::string &  filename 
)

Load a (binary) OFF image into a complex image.

Load a 3x8-bit RGB (color) OFF image into a complex image.

Load a floating-point OFF image into a complex image.

Parameters:
[out] ima A reference to the image to construct.
[in] filename The name of the file to load.
The image is said binary since data only represent the existence of faces.

Parameters:
[out] ima A reference to the image to construct.
[in] filename The name of the file to load.
Read floating-point data is attached to 2-faces only; 1-faces and 0-faces are set to 0.0f.

void mln::io::off::save ( const bin_2complex_image3df &  ima,
const std::string &  filename 
)

Save a (binary) OFF image into a complex image.

Save a 3x8-bit RGB (color) OFF image into a complex image.

Save a floating-point value grey-level OFF image into a complex image.

Save an 8-bit grey-level OFF image into a complex image.

Parameters:
[in] ima The image to save.
[in] filename The name of the file where to save the image.
The image is said binary since data represent only the existence of faces.

Parameters:
[in] ima The image to save.
[in] filename The name of the file where to save the image.
Only data is attached to 2-faces is saved; the OFF file cannot store data attached to faces of other dimensions.

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

FIXME: Similar to mln::io::off::save(const bin_2complex_image3df&, const std::string&), but does not save faces whose value is `false'.


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