31 #if defined(GenericWriter_RECURSES)
32 #error Recursive header files inclusion detected in GenericWriter.h
35 #define GenericWriter_RECURSES
37 #if !defined GenericWriter_h
39 #define GenericWriter_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/BasicFunctors.h"
46 #include "DGtal/base/CUnaryFunctor.h"
47 #include "DGtal/images/CConstImage.h"
48 #include "DGtal/images/Image.h"
49 #include "DGtal/images/ImageContainerBySTLVector.h"
50 #include "DGtal/images/ImageContainerBySTLMap.h"
52 #include "DGtal/io/colormaps/GradientColorMap.h"
53 #include "DGtal/io/colormaps/HueShadeColorMap.h"
90 template <
typename TContainer,
91 int Tdim=TContainer::Point::dimension,
93 typename TFunctor = functors::Identity >
105 const TContainer &anImage,
106 const TFunctor & aFunctor = TFunctor() );
113 template <
typename TContainer,
typename TFunctor>
127 static bool exportFile(
const std::string &filename,
const TContainer &anImage,
const std::string &datasetName=
"UInt8Array3D",
128 const TFunctor & aFunctor = TFunctor() );
136 template <
typename TContainer,
typename TFunctor>
151 static bool exportFile(
const std::string &filename,
const TContainer &anImage,
152 const TFunctor & aFunctor = TFunctor() );
161 template <
typename TContainer,
typename TValue,
typename TFunctor>
174 const TContainer &anImage,
175 const std::string &datasetName=
"UInt8Array3D",
176 const TFunctor & aFunctor = TFunctor() );
184 template <
typename TContainer,
typename TValue,
typename TFunctor>
198 const TContainer &anImage,
199 const TFunctor & aFunctor = TFunctor() );
208 template <
typename TContainer,
typename TFunctor>
222 const TContainer &anImage,
223 const TFunctor & aFunctor = TFunctor() );
232 template <
typename TContainer,
typename TFunctor>
243 static bool exportFile(
const std::string &filename,
const TContainer &anImage,
244 const TFunctor & aFunctor = TFunctor() );
257 template <
typename TImageContainer >
267 #include "DGtal/io/writers/GenericWriter.ih"
274 #undef GenericWriter_RECURSES
Structure representing an RGB triple with alpha component.
DGtal is the top-level namespace which contains all DGtal functions and types.
boost::uint64_t uint64_t
unsigned 64-bit integer.
void operator>>(const Display3D< Space, KSpace > &aDisplay3D, DGtal::Mesh< typename Display3D< Space, KSpace >::RealPoint > &aMesh)
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TContainer >))
static bool exportFile(const std::string &filename, const TContainer &anImage, const TFunctor &aFunctor=TFunctor())
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TContainer >))
static bool exportFile(const std::string &filename, const TContainer &anImage, const TFunctor &aFunctor=TFunctor())
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TContainer >))
static bool exportFile(const std::string &filename, const TContainer &anImage, const TFunctor &aFunctor=TFunctor())
static bool exportFile(const std::string &filename, const TContainer &anImage, const TFunctor &aFunctor=TFunctor())
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TContainer >))
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, typename TContainer::Value, DGtal::uint64_t >))
static bool exportFile(const std::string &filename, const TContainer &anImage, const std::string &datasetName="UInt8Array3D", const TFunctor &aFunctor=TFunctor())
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TContainer >))
static bool exportFile(const std::string &filename, const TContainer &anImage, const std::string &datasetName="UInt8Array3D", const TFunctor &aFunctor=TFunctor())
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, typename TContainer::Value, unsigned char >))
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TContainer >))
Aim: Provide a mechanism to save image (2D or 3D) into file with the best saver loader according to a...
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TContainer >))
static bool exportFile(const std::string &filename, const TContainer &anImage, const TFunctor &aFunctor=TFunctor())
Aim: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.
Aim: Defines a unary functor, which associates arguments to results.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer