31 #if defined(MagickReader_RECURSES)
32 #error Recursive header files inclusion detected in MagickReader.h
35 #define MagickReader_RECURSES
37 #if !defined MagickReader_h
39 #define MagickReader_h
47 #if defined(WITH_MAGICK)
51 # if !defined(MagickLibAddendum) && defined(__clang__)
52 # pragma clang diagnostic push
53 # pragma clang diagnostic push
54 # include <Magick++.h>
55 # if MagickLibVersion != 0x221900
56 # pragma clang diagnostic pop
57 # pragma clang diagnostic pop
60 # include <Magick++.h>
63 # error "DGtal has not been built with imagemagick support. Consider adding -DWITH_MAGICK=true when building the project with cmake."
67 #include "DGtal/base/CUnaryFunctor.h"
68 #include "DGtal/base/Common.h"
75 template<
typename TValue>
110 template <
typename TImageContainer,
typename TFunctor= functors::MagickCast<
typename TImageContainer::Value > >
136 bool topbotomOrder =
true);
146 #include "DGtal/io/readers/MagickReader.ih"
153 #undef MagickReader_RECURSES
Structure representing an RGB triple with alpha component.
void green(const unsigned char aGreenValue)
void red(const unsigned char aRedValue)
void blue(const unsigned char aBlueValue)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: implements methods to read a 2D image using the ImageMagick library.
BOOST_STATIC_ASSERT((ImageContainer::Domain::dimension==2))
TImageContainer::Domain::Vector Vector
static ImageContainer importImage(const std::string &filename, const Functor &aFunctor=Functor(), bool topbotomOrder=true)
TImageContainer ImageContainer
TImageContainer::Value Value
Color operator()(const Color &col) const
TValue operator()(const Color &col) const
FreemanChain< int >::Vector Vector