36#if defined(ConstImageAdapter_RECURSES)
37#error Recursive header files inclusion detected in ConstImageAdapter.h
40#define ConstImageAdapter_RECURSES
42#if !defined ConstImageAdapter_h
44#define ConstImageAdapter_h
49#include "DGtal/base/Common.h"
50#include "DGtal/base/ConstAlias.h"
51#include "DGtal/base/ConceptUtils.h"
52#include "DGtal/images/CImage.h"
53#include "DGtal/kernel/domains/CDomain.h"
55#include "DGtal/images/DefaultConstImageRange.h"
104 typename TNewValue,
typename TFunctorV>
118 typedef typename TNewDomain::Point
Point;
144 trace.
warning() <<
"ConstImageAdapter Ctor fromRef " << std::endl;
162 trace.
warning() <<
"ConstImageAdapter assignment " << std::endl;
287 trace.
warning() <<
"ConstImageAdapter Ctor default " << std::endl;
333template <
typename TImageContainer,
typename TNewDomain,
typename TFunctorD,
typename TNewValue,
typename TFunctorV>
342#include "DGtal/images/ConstImageAdapter.ih"
349#undef ConstImageAdapter_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
const ImageContainer * myImagePtr
Alias on the image container.
void setDefaultValue(Value aValue)
std::string className() const
const Domain * mySubDomainPtr
Value getDefaultValue() const
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctorV, typename TImageContainer::Value, Value >))
ConstImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV > Self
DefaultConstImageRange< Self > ConstRange
ConstImageAdapter(const ConstImageAdapter &other)=default
void selfDisplay(std::ostream &out) const
ConstRange constRange() const
BOOST_CONCEPT_ASSERT((concepts::CDomain< TNewDomain >))
Value operator()(const Point &aPoint) const
ConstImageAdapter(ConstAlias< ImageContainer > anImage, ConstAlias< Domain > aDomain, ConstAlias< TFunctorD > aFD, ConstAlias< TFunctorV > aFV)
const ImageContainer * getPointer() const
ConstImageAdapter & operator=(const ConstImageAdapter &other)
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctorD, Point, typename TImageContainer::Point >))
TImageContainer ImageContainer
Types copied from the container.
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TImageContainer >))
Checking concepts.
const Domain & domain() const
Aim: model of CConstBidirectionalRangeFromPoint that adapts the domain of an image in order to iterat...
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: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
Aim: Defines a unary functor, which associates arguments to results.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer