34 #if defined(DistanceTransformation_RECURSES)
35 #error Recursive header files inclusion detected in DistanceTransformation.h
38 #define DistanceTransformation_RECURSES
40 #if !defined DistanceTransformation_h
42 #define DistanceTransformation_h
48 #include "DGtal/kernel/NumberTraits.h"
49 #include "DGtal/kernel/CPointPredicate.h"
50 #include "DGtal/geometry/volumes/distance/CSeparableMetric.h"
51 #include "DGtal/geometry/volumes/distance/VoronoiMap.h"
52 #include "DGtal/images/DefaultConstImageRange.h"
53 #include "DGtal/kernel/domains/HyperRectDomain.h"
54 #include "DGtal/base/ConstAlias.h"
90 template <
typename TSpace,
91 typename TPointPredicate,
92 typename TSeparableMetric,
94 ImageContainerBySTLVector< HyperRectDomain<TSpace>,
98 :
public VoronoiMap<TSpace,TPointPredicate, TSeparableMetric, TImageContainer>
136 typedef typename VoronoiMap<TSpace,TPointPredicate,
231 out <<
"[DistanceTransformation] underlying VoronoiMap={";
255 template <
typename S,
typename P,
typename TSep>
261 object.selfDisplay( out );
274 #undef DistanceTransformation_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: Implementation of the linear in time Voronoi map construction.
std::array< bool, Space::dimension > PeriodicitySpec
Periodicity specification type.
CountedPtr< OutputImage > myImagePtr
Voronoi map image.
void selfDisplay(std::ostream &out) const
const SeparableMetric * myMetricPtr
Pointer to the separable metric instance.
const SeparableMetric * metric() const
const Domain & domain() const
DigitalPlane::Point Vector
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: Defines a predicate on a point.
Aim: defines the concept of separable metrics.
Aim: Defines the concept describing a digital space, ie a cartesian product of integer lines.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer