31 #if defined(MagickReader_RECURSES)
32 #error Recursive header files inclusion detected in MagickReader.h
33 #else // defined(MagickReader_RECURSES)
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>
62 #else // defined WITH_MAGICK
63 # error "DGtal has not been built with imagemagick support. Consider adding -DWITH_MAGICK=true when building the project with cmake."
64 #endif // defined WITH_MAGICK
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"
151 #endif // !defined MagickReader_h
153 #undef MagickReader_RECURSES
154 #endif // else defined(MagickReader_RECURSES)
BOOST_STATIC_ASSERT((ImageContainer::Domain::dimension==2))
TValue operator()(const Color &col) const
Structure representing an RGB triple with alpha component.
TImageContainer::Value Value
Color operator()(const Color &col) const
void red(const unsigned char aRedValue)
Aim: implements methods to read a 2D image using the ImageMagick library.
DGtal is the top-level namespace which contains all DGtal functions and types.
TImageContainer ImageContainer
static ImageContainer importImage(const std::string &filename, const Functor &aFunctor=Functor(), bool topbotomOrder=true)
void green(const unsigned char aGreenValue)
void blue(const unsigned char aBlueValue)
TImageContainer::Domain::Vector Vector