31 #if defined(ImageAdapter_RECURSES)
32 #error Recursive header files inclusion detected in ImageAdapter.h
33 #else // defined(ImageAdapter_RECURSES)
35 #define ImageAdapter_RECURSES
37 #if !defined ImageAdapter_h
39 #define 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>
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;
371 template <
typename TImageContainer,
typename TNewDomain,
typename TFunctorD,
typename TNewValue,
typename TFunctorV,
typename TFunctorVm1>
380 #include "DGtal/images/ImageAdapter.ih"
385 #endif // !defined ImageAdapter_h
387 #undef ImageAdapter_RECURSES
388 #endif // else defined(ImageAdapter_RECURSES)
DefaultImageRange< Self > Range
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
ImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV, TFunctorVm1 > Self
Value getDefaultValue() const
const Domain & domain() const
void setValue(const Point &aPoint, const Value &aValue)
Value operator()(const Point &aPoint) const
ConstRange constRange() const
void setDefaultValue(Value aValue)
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: implements an image adapter with a given domain (i.e. a subdomain) and 3 functors : g for domain...
Aim: model of CConstBidirectionalRangeFromPoint that adapts the domain of an image in order to iterat...
ImageContainer * myImagePtr
Alias on the image container.
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint ...
ImageAdapter & operator=(const ImageAdapter &other)
const Domain & domain() const
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
void setValue(const Point &aPoint, const Value &aValue)
DGtal is the top-level namespace which contains all DGtal functions and types.
void selfDisplay(std::ostream &out) const
const Domain * mySubDomainPtr
TImageContainer ImageContainer
Types copied from the container.
const TFunctorVm1 * myFVm1
ImageAdapter(ImageContainer &anImage, ConstAlias< Domain > aDomain, ConstAlias< TFunctorD > aFD, ConstAlias< TFunctorV > aFV, ConstAlias< TFunctorVm1 > aFVm1)
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer
DefaultConstImageRange< Self > ConstRange
Aim: Defines a unary functor, which associates arguments to results.
const ImageContainer * getPointer() const
Aim: Defines the concept describing a read/write image, having an output iterator.