$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::io::pnm Namespace Reference

Namespaces

namespace  impl

Functions

template<typename V >
unsigned int max_component (const 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 V >
unsigned int mln::io::pnm::max_component ( const V &  )

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

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

Save a Milena image as a pnm image.

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