31#if defined(DigitalSetFromMap_RECURSES)
32#error Recursive header files inclusion detected in DigitalSetFromMap.h
35#define DigitalSetFromMap_RECURSES
37#if !defined DigitalSetFromMap_h
39#define DigitalSetFromMap_h
46#include "DGtal/base/Common.h"
47#include "DGtal/base/CowPtr.h"
49#include "DGtal/base/BasicFunctors.h"
50#include "DGtal/base/IteratorAdapter.h"
51#include "DGtal/base/ConstIteratorAdapter.h"
73 template <
typename TMapImage>
183 template <
typename Po
intInputIterator>
184 void insert( PointInputIterator first, PointInputIterator last );
207 template <
typename Po
intInputIterator>
208 void insertNew( PointInputIterator first, PointInputIterator last );
289 template<
typename TDigitalSet >
291 (
const TDigitalSet & aSet );
311 template<
typename TOutputIterator >
321 template<
typename TDigitalSet >
389 template <
typename TMapImage>
398#include "DGtal/kernel/sets/DigitalSetFromMap.ih"
405#undef DigitalSetFromMap_RECURSES
This class adapts any iterator so that operator* returns another element than the one pointed to by t...
Aim: Copy on write shared pointer.
Aim: An adapter for viewing an associative image container like ImageContainerBySTLMap as a simple di...
ConstIterator end() const
std::pair< const typename Image::Point, typename Image::Value > Pair
void insertNew(const Point &p)
const Domain & domain() const
const Container & container() const
DigitalSetFromMap & operator=(const DigitalSetFromMap &other)
DigitalSetFromMap(const DigitalSetFromMap &other)
void insert(PointInputIterator first, PointInputIterator last)
void computeComplement(TOutputIterator &ito) const
Size erase(const Point &p)
functors::Pair1st< Point > Functor
std::string className() const
ConstIterator find(const Point &p) const
CowPtr< Domain > domainPointer() const
DigitalSetFromMap< Image > Self
void selfDisplay(std::ostream &out) const
ConstIterator begin() const
void assignFromComplement(const TDigitalSet &otherSet)
Iterator find(const Point &p)
void erase(Iterator first, Iterator last)
void computeBoundingBox(Point &lower, Point &upper) const
ConstIteratorAdapter< typename Image::ConstIterator, Functor, Point > ConstIterator
ConstIteratorAdapter< typename Image::ConstIterator, Functor, Point > Iterator
void insertNew(PointInputIterator first, PointInputIterator last)
void insert(const Point &p)
bool operator()(const Point &p) const
DigitalSetFromMap(Image &aImage, const typename Image::Value &aDefaultValue=0)
Aim: Define a simple functor that returns the first member of a pair.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Vector lower(const Vector &z, unsigned int k)
Vector upper(const Vector &z, unsigned int k)