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" 103 template <
typename TImageContainer,
108 typename TFunctorVm1>
150 trace.
warning() <<
"ImageAdapter Ctor fromRef " << std::endl;
162 trace.
warning() <<
"ImageAdapter assignment " << std::endl;
217 return Range( *
this );
313 trace.
warning() <<
"ImageAdapter Ctor default " << std::endl;
365 template <
typename TImageContainer,
typename TNewDomain,
typename TFunctorD,
typename TNewValue,
typename TFunctorV,
typename TFunctorVm1>
367 operator<< ( std::ostream & out, const ImageAdapter<TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV, TFunctorVm1> & object );
374 #include "DGtal/images/ImageAdapter.ih" 379 #endif // !defined ImageAdapter_h 381 #undef ImageAdapter_RECURSES 382 #endif // else defined(ImageAdapter_RECURSES)
ConstRange constRange() const
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
Aim: model of CConstBidirectionalRangeFromPoint that adapts the domain of an image in order to iterat...
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint ...
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
ImageAdapter(ImageContainer &anImage, ConstAlias< Domain > aDomain, ConstAlias< TFunctorD > aFD, ConstAlias< TFunctorV > aFV, ConstAlias< TFunctorVm1 > aFVm1)
void selfDisplay(std::ostream &out) const
const Domain * mySubDomainPtr
Aim: Defines a unary functor, which associates arguments to results.
Value operator()(const Point &aPoint) const
const Domain & domain() const
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
ImageContainer * myImagePtr
Alias on the image container.
ImageAdapter & operator=(const ImageAdapter &other)
Aim: implements an image adapter with a given domain (i.e. a subdomain) and 3 functors : g for domain...
Value getDefaultValue() const
DefaultConstImageRange< Self > ConstRange
const TFunctorVm1 * myFVm1
DGtal is the top-level namespace which contains all DGtal functions and types.
void setDefaultValue(Value aValue)
Aim: Defines the concept describing a read/write image, having an output iterator.
TImageContainer ImageContainer
Types copied from the container.
const ImageContainer * getPointer() const
void setValue(const Point &aPoint, const Value &aValue)
DefaultImageRange< Self > Range