31 #if defined(ImageFromSet_RECURSES)
32 #error Recursive header files inclusion detected in ImageFromSet.h
35 #define ImageFromSet_RECURSES
37 #if !defined ImageFromSet_h
39 #define ImageFromSet_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/images/CImage.h"
46 #include "DGtal/kernel/sets/CDigitalSet.h"
62 template <
typename TImage>
90 template <
typename Set>
96 const bool keepSetDomain=
false);
112 template <
typename Set>
115 const bool keepSetDomain=
false)
117 return create(aSet,defaultValue,addBorder,aSet.begin(), aSet.end(), keepSetDomain);
134 template<
typename Set>
150 template<
typename Set>
154 append<Set>(aImage,defaultValue,aSet.begin(),aSet.end());
165 #include "DGtal/images/imagesSetsUtils/ImageFromSet.ih"
172 #undef ImageFromSet_RECURSES
MyDigitalSurface::ConstIterator ConstIterator
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Define utilities to convert a digital set into an image.
static void append(Image &aImage, const Set &aSet, const Value &defaultValue)
BOOST_CONCEPT_ASSERT((concepts::CImage< Image >))
static Image create(const Set &aSet, const Value &defaultValue, const bool addBorder=false, const bool keepSetDomain=false)
static void append(Image &aImage, const Value &defaultValue, typename Set::ConstIterator itBegin, typename Set::ConstIterator itEnd)
static Image create(const Set &aSet, const Value &defaultValue, const bool addBorder, typename Set::ConstIterator itBegin, typename Set::ConstIterator itEnd, const bool keepSetDomain=false)
Aim: Defines the concept describing a read/write image, having an output iterator.