Functions | |
template<typename V> | |
image2d< V > | load (const std::string &filename) |
Load a ppm image in a Milena image. | |
template<typename I> | |
void | load (Image< I > &ima, const std::string &filename) |
Load a ppm image in a Milena image. | |
template<typename I> | |
void | save (const Image< I > &ima, const std::string &filename) |
image2d< V > mln::io::ppm::load | ( | const std::string & | filename | ) | [inline] |
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>("..."))
[in] | filename | The image source. |
Load a pgm image in a Milena image.
Load a pfm image in a image2d<float>.
Load a pbm image in a image2d<float>.
[in] | filename | The image source. |
Definition at line 79 of file ppm/load.hh.
References mln::trace::entering(), and mln::trace::exiting().
void mln::io::ppm::load | ( | Image< I > & | ima, | |
const std::string & | filename | |||
) | [inline] |
Load a ppm image in a Milena image.
[out] | ima | A reference to the image which will receive data. |
[in] | filename | The source. |
Definition at line 89 of file ppm/load.hh.
References mln::trace::entering(), and mln::trace::exiting().
void mln::io::ppm::save | ( | const Image< I > & | ima, | |
const std::string & | filename | |||
) | [inline] |
Save a Milena image as a ppm image.
[in] | ima | The image to save. |
[in,out] | filename | the destination. |
Definition at line 65 of file ppm/save.hh.
References mln::exact(), and mln::io::pnm::save().
Referenced by mln::registration::display_sites_used_in_icp(), mln::registration::draw_last_run(), mln::registration::icp(), mln::registration::closest_point_with_map< P >::init(), doc::ppmsave(), mln::registration::remove_too_far_sites(), and mln::registration::remove_too_far_sites_debug().