31 #if defined(STBWriter_RECURSES)
32 #error Recursive header files inclusion detected in STBWriter.h
35 #define STBWriter_RECURSES
37 #if !defined STBWriter_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/io/colormaps/BasicColorToScalarFunctors.h"
63 template <
typename TImageContainer,
typename TFunctor=functors::Identity>
138 #include "DGtal/io/writers/STBWriter.ih"
143 #undef STBWriter_RECURSES
Aim: Image Writer using the stb_image.h header only code.
static bool exportTGA(const std::string &filename, const ImageContainer &anImage, const Functor &aFunctor=Functor())
TImageContainer::Value Value
static bool exportPNG(const std::string &filename, const ImageContainer &anImage, const Functor &aFunctor=Functor())
static bool exportBMP(const std::string &filename, const ImageContainer &anImage, const Functor &aFunctor=Functor())
TImageContainer::Domain::Vector Vector
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, Value, DGtal::Color >))
TImageContainer ImageContainer
BOOST_STATIC_ASSERT((ImageContainer::Domain::dimension==2))
static bool exportJPG(const std::string &filename, const ImageContainer &anImage, const Functor &aFunctor=Functor(), int quality=70)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Defines a unary functor, which associates arguments to results.