mln::io::magick Namespace Reference

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


Functions

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)
bool do_it (const value::rgb8 &in, bool &out, const std::string &filename)
Magick::Color get_color (const value::rgb8 &value)
Magick::Color get_color (const value::int_u8 &value)
Magick::Color get_color (bool 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,
value::rgb8 &  out,
const std::string &  filename 
) [inline]

Definition at line 103 of file magick/load.hh.

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

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

Load a magick image in a tiled image.

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

Definition at line 71 of file magick/load.hh.

References mln::value::rgb< n >::blue(), mln::value::rgb< n >::green(), and mln::value::rgb< n >::red().

Referenced by load().

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]

Definition at line 80 of file magick/save.hh.

Magick::Color mln::io::magick::get_color ( bool  value  )  [inline]

Save a Milena tiled image in a magick image.

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

Definition at line 74 of file magick/save.hh.

Referenced by save().

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.

Definition at line 113 of file magick/load.hh.

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.

Definition at line 95 of file magick/save.hh.

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


Generated on Sun Apr 25 02:03:03 2010 for Milena (Olena) by  doxygen 1.5.6