Functions

mln::io::magick Namespace Reference

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

Functions

bool do_it (const value::rgb8 &in, bool &out, const std::string &filename)
bool do_it (const value::rgb8 &in, value::rgb8 &out, const std::string &filename)
bool do_it (const value::rgb8 &in, value::int_u8 &out, const std::string &filename)
Magick::Color get_color (bool value)
Magick::Color get_color (const value::rgb8 &value)
Magick::Color get_color (const value::int_u8 &value)
template<typename I >
void load (Image< I > &ima, const std::string &filename)
template<typename I >
void save (const Image< I > &ima, const std::string &filename)

Detailed Description

Namespace of magick input/output handling.


Function Documentation

bool mln::io::magick::do_it ( const value::rgb8 &  in,
bool &  out,
const std::string &  filename 
) [inline]
bool mln::io::magick::do_it ( const value::rgb8 &  in,
value::rgb8 &  out,
const std::string &  filename 
) [inline]
bool mln::io::magick::do_it ( const value::rgb8 &  in,
value::int_u8 &  out,
const std::string &  filename 
) [inline]
Magick::Color mln::io::magick::get_color ( bool  value  )  [inline]

Referenced by save().

Magick::Color mln::io::magick::get_color ( const value::rgb8 &  value  )  [inline]
Magick::Color mln::io::magick::get_color ( const value::int_u8 &  value  )  [inline]
template<typename I >
void mln::io::magick::load ( Image< I > &  ima,
const std::string &  filename 
) [inline]

Load a magick image in a Milena image.

Parameters:
[out] ima A reference to the image which will receive data.
[in] filename The source.

References do_it(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::initialize(), and mln::point< G, C >::to_vec().

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

Save a Milena image in a magick image.

Parameters:
[out] ima A reference to the image to save.
[in] filename The output.

References mln::trace::entering(), mln::exact(), mln::trace::exiting(), get_color(), and mln::point< G, C >::to_vec().