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) |
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().
image2d<V> mln::io::pnm::load | ( | char | type_, | |
const std::string & | filename | |||
) | [inline] |
void mln::io::pnm::load_ascii_builtin | ( | std::ifstream & | file, | |
I & | ima | |||
) | [inline] |
load_ascii for builtin value types.
void mln::io::pnm::load_ascii_value | ( | std::ifstream & | file, | |
I & | ima | |||
) | [inline] |
load_ascii for Milena value types.
void mln::io::pnm::load_raw_2d | ( | std::ifstream & | file, | |
I & | ima | |||
) | [inline] |
unsigned int mln::io::pnm::max_component | ( | const V & | ) | [inline] |
void mln::io::pnm::save | ( | char | type, | |
const Image< I > & | ima_, | |||
const std::string & | filename | |||
) | [inline] |
Save a Milena image as a pnm image.
[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. |
Referenced by mln::io::ppm::save(), and mln::io::pgm::save().