Functions

mln::io::magick Namespace Reference

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

Functions

template<typename I >
void load (Image< I > &ima, const std::string &filename)
 Load data from a file into a Milena image using Magick++.
template<typename I , typename J >
void save (const Image< I > &ima, const Image< J > &opacity_mask, const std::string &filename)
 Save a Milena image into a file using Magick++.
template<typename I >
void save (const Image< I > &ima, const std::string &filename)
 Save a Milena image into a file using Magick++.

Detailed Description

Namespace of magick input/output handling.


Function Documentation

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

Load data from a file into a Milena image using Magick++.

Parameters:
[out] ima The image data are loaded into.
[in] filename The name of the input file.

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

References mln::initialize(), mln::geom::max_col(), mln::geom::max_row(), mln::geom::min_col(), and mln::geom::min_row().

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

Save a Milena image into a file using Magick++.

Parameters:
[in] ima The image to save.
[in] opacity_mask Mask used to set pixel opacity_mask in output image. Output format must support this feature to be taken into account.
[in] filename The name of the output file.

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

References mln::geom::ncols(), and mln::geom::nrows().

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

Save a Milena image into a file using Magick++.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
[in] ima The image to save.
[in] filename The name of the output file.

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