Namespace of pnm input/output handling. More...
Namespaces | |
namespace | impl |
Namespace of pnm's implementation details. | |
Functions | |
template<typename V > | |
image2d< V > | load (char type_, const std::string &filename) |
main function : load pnm format | |
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 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) |
Namespace of pnm input/output handling.
image2d<V> mln::io::pnm::load | ( | char | type_, | |
const std::string & | filename | |||
) | [inline] |
main function : load pnm format
Definition at line 210 of file pnm/load.hh.
References load_raw_2d(), and max_component().
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.
Definition at line 257 of file pnm/load.hh.
References mln::make::box2d(), load_raw_2d(), and max_component().
void mln::io::pnm::load_ascii_builtin | ( | std::ifstream & | file, | |
I & | ima | |||
) | [inline] |
load_ascii for builtin value types.
Definition at line 178 of file pnm/load.hh.
void mln::io::pnm::load_ascii_value | ( | std::ifstream & | file, | |
I & | ima | |||
) | [inline] |
load_ascii for Milena value types.
Definition at line 164 of file pnm/load.hh.
void mln::io::pnm::load_raw_2d | ( | std::ifstream & | file, | |
I & | ima | |||
) | [inline] |
load_raw_2d.
for all pnm 8/16 bits formats
Definition at line 198 of file pnm/load.hh.
Referenced by load().
unsigned int mln::io::pnm::max_component | ( | const V & | ) | [inline] |
Give the maximum value which can be stored as a component value type V.
Definition at line 56 of file max_component.hh.
Referenced by load().
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. |
Definition at line 185 of file pnm/save.hh.