31#if defined(ImageAdapter_RECURSES)
32#error Recursive header files inclusion detected in ImageAdapter.h
35#define ImageAdapter_RECURSES
37#if !defined ImageAdapter_h
44#include "DGtal/base/Common.h"
45#include "DGtal/base/ConstAlias.h"
46#include "DGtal/base/ConceptUtils.h"
47#include "DGtal/images/CImage.h"
48#include "DGtal/kernel/domains/CDomain.h"
50#include "DGtal/images/DefaultConstImageRange.h"
51#include "DGtal/images/DefaultImageRange.h"
108 typename TFunctorVm1>
122 typedef typename TNewDomain::Point
Point;
150 trace.
warning() <<
"ImageAdapter Ctor fromRef " << std::endl;
168 trace.
warning() <<
"ImageAdapter assignment " << std::endl;
223 return Range( *
this );
319 trace.
warning() <<
"ImageAdapter Ctor default " << std::endl;
371template <
typename TImageContainer,
typename TNewDomain,
typename TFunctorD,
typename TNewValue,
typename TFunctorV,
typename TFunctorVm1>
380#include "DGtal/images/ImageAdapter.ih"
387#undef ImageAdapter_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: model of CConstBidirectionalRangeFromPoint that adapts the domain of an image in order to iterat...
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint ...
Aim: implements an image adapter with a given domain (i.e. a subdomain) and 3 functors : g for domain...
void setDefaultValue(Value aValue)
ConstRange constRange() const
ImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV, TFunctorVm1 > Self
DefaultImageRange< Self > Range
DefaultConstImageRange< Self > ConstRange
BOOST_CONCEPT_ASSERT((concepts::CDomain< TNewDomain >))
TImageContainer ImageContainer
Types copied from the container.
const TFunctorVm1 * myFVm1
void selfDisplay(std::ostream &out) const
ImageAdapter & operator=(const ImageAdapter &other)
ImageContainer * myImagePtr
Alias on the image container.
const ImageContainer * getPointer() const
void setValue(const Point &aPoint, const Value &aValue)
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctorD, Point, typename TImageContainer::Point >))
Value operator()(const Point &aPoint) const
ImageAdapter(ImageContainer &anImage, ConstAlias< Domain > aDomain, ConstAlias< TFunctorD > aFD, ConstAlias< TFunctorV > aFV, ConstAlias< TFunctorVm1 > aFVm1)
Value getDefaultValue() const
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctorVm1, Value, typename TImageContainer::Value >))
const Domain * mySubDomainPtr
ImageAdapter(const ImageAdapter &other)=default
const Domain & domain() const
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctorV, typename TImageContainer::Value, Value >))
void setValue(const Point &aPoint, const Value &aValue)
const Domain & domain() const
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
Aim: Defines the concept describing a read/write image, having an output iterator.
Aim: Defines a unary functor, which associates arguments to results.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer