$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ImageMagick

Functions

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

Detailed Description

ImageMagick I/O routines.

Function Documentation

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

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

Parameters
[out]imaThe image data are loaded into.
[in]filenameThe name of the input file.
template<typename I >
void mln::io::magick::save ( const Image< I > &  ima,
const std::string &  filename 
)

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]imaThe image to save.
[in]filenameThe name of the output file.
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]imaThe image to save.
[in]opacity_maskMask used to set pixel opacity_mask in output image. Output format must support this feature to be taken into account.
[in]filenameThe name of the output file.