DGtal
1.3.beta
|
Aim: Export image using Imagemagick backend. More...
#include <DGtal/io/writers/MagickWriter.h>
Public Types | |
typedef TImage | Image |
typedef TImage::Value | Value |
typedef TFunctor | Functor |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, Value, Color >)) | |
BOOST_STATIC_ASSERT ((TImage::Domain::dimension==2)) | |
Static Public Member Functions | |
static bool | exportMagick (const std::string &filename, const Image &anImage, const Functor &aFunctor=Functor()) |
Aim: Export image using Imagemagick backend.
Description of template struct 'MagickWriter'
If imagemagick is enabled (with WITH_MAGICK set to true), this writer export any image to a generic color Magick++ image (png, jpg, gif, bmp...) using a given colormap functor.
The file format is given by the filename extension during the export.
TImage | the Image type. |
TFunctor | the type of functor used in the export. The return type of the functor must be a DGtal::Color (e.g. any colormap) |
Definition at line 93 of file MagickWriter.h.
typedef TFunctor DGtal::MagickWriter< TImage, TFunctor >::Functor |
Definition at line 98 of file MagickWriter.h.
typedef TImage DGtal::MagickWriter< TImage, TFunctor >::Image |
Definition at line 96 of file MagickWriter.h.
typedef TImage::Value DGtal::MagickWriter< TImage, TFunctor >::Value |
Definition at line 97 of file MagickWriter.h.
DGtal::MagickWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< TFunctor, Value, Color >) | ) |
DGtal::MagickWriter< TImage, TFunctor >::BOOST_STATIC_ASSERT | ( | (TImage::Domain::dimension==2) | ) |
|
inlinestatic |
Export an Image with ImageMagick.
filename | name of the output file the suffix is used to select the file format (png, bmp, jpg,...). |
anImage | the image to export |
aFunctor | functor used to cast image values to DGtal::Color |
Definition at line 113 of file MagickWriter.h.
References image().