33 #if defined(PowerMap_RECURSES)
34 #error Recursive header files inclusion detected in PowerMap.h
37 #define PowerMap_RECURSES
39 #if !defined PowerMap_h
48 #include "DGtal/base/Common.h"
49 #include "DGtal/base/CountedPtr.h"
50 #include "DGtal/base/ConstAlias.h"
51 #include "DGtal/images/ImageContainerBySTLVector.h"
52 #include "DGtal/kernel/domains/HyperRectDomain.h"
53 #include "DGtal/images/CConstImage.h"
54 #include "DGtal/images/CImage.h"
55 #include "DGtal/geometry/volumes/distance/CPowerSeparableMetric.h"
56 #include "DGtal/kernel/domains/HyperRectDomain.h"
105 template <
typename TWeightImage,
106 typename TPowerSeparableMetric,
108 ImageContainerBySTLVector<HyperRectDomain<typename TWeightImage::Domain::Space>,
424 template <
typename W,
435 #include "DGtal/geometry/volumes/distance/PowerMap.ih"
442 #undef PowerMap_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
ConstRange constRange() const
Aim: implements association bewteen points lying in a digital domain and values.
Component Coordinate
Type for Point elements.
Aim: Implementation of the linear in time Power map construction.
PeriodicitySpec const & getPeriodicitySpec() const
Point myUpperBoundCopy
Copy of the image lower bound.
std::vector< Dimension > myPeriodicityIndex
Index of the periodic dimensions.
Point myDomainExtent
Domain extent.
Space::Point::Coordinate Abscissa
BOOST_STATIC_ASSERT((boost::is_same< typename TWeightImage::Domain::Space::Vector, typename TImageContainer::Value >::value))
BOOST_CONCEPT_ASSERT((concepts::CPowerSeparableMetric< TPowerSeparableMetric >))
TWeightImage::Value Weight
void computeOtherStep1D(const Point &row, const Dimension dim) const
PowerMap(ConstAlias< Domain > aDomain, ConstAlias< WeightImage > aWeightImage, ConstAlias< PowerSeparableMetric > aMetric, PeriodicitySpec const &aPeriodicitySpec)
const WeightImage * weightImagePtr() const
ConstRange constRange() const
const WeightImage * myWeightImagePtr
Pointer to the point predicate.
PowerMap(ConstAlias< Domain > aDomain, ConstAlias< WeightImage > aWeightImage, ConstAlias< PowerSeparableMetric > aMetric)
Point projectPoint(Point aPoint) const
std::array< bool, Space::dimension > PeriodicitySpec
Periodicity specification type.
Value operator()(const Point &aPoint) const
const Domain * myDomainPtr
Pointer to the computation domain.
bool isPeriodic(const Dimension n) const
const PowerSeparableMetric * metricPtr() const
TImageContainer OutputImage
Type of resulting image.
TImageContainer::Domain Domain
Definition of the underlying domain type.
const PowerSeparableMetric * myMetricPtr
Pointer to the separable metric instance.
Point::Coordinate projectCoordinate(typename Point::Coordinate aCoordinate, const Dimension aDim) const
WeightImage::Domain::Space Space
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
TWeightImage WeightImage
Copy of the distance image types.
Vector Value
Definition of the image model value type.
PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer > Self
Self type.
const Domain & domain() const
TPowerSeparableMetric PowerSeparableMetric
We construct the type associated to the separable metric.
void computeOtherSteps(const Dimension dim) const
BOOST_STATIC_ASSERT((boost::is_same< HyperRectDomain< typename TWeightImage::Domain::Space >, typename TImageContainer::Domain >::value))
Self & operator=(const Self &aOtherPowerMap)=default
BOOST_STATIC_ASSERT((boost::is_same< typename TWeightImage::Domain::Space, typename TImageContainer::Domain::Space >::value))
PeriodicitySpec myPeriodicitySpec
Periodicity along each dimension.
void selfDisplay(std::ostream &out) const
Point myInfinity
Value to act as a +infinity value.
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TWeightImage >))
OutputImage::ConstRange ConstRange
Definition of the image value type.
Point myLowerBoundCopy
Copy of the image lower bound.
Space::Dimension Dimension
CountedPtr< OutputImage > myImagePtr
Power map image.
Point projectPoint(Point aPoint, const Dimension aMaxDim) const
Aim: model of CConstBidirectionalRangeFromPoint that adapts any range of elements bounded by two iter...
size_t Size
Type used to represent sizes in the digital space.
DGtal::Dimension Dimension
Copy of the type used for the dimension.
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 the concept describing a read-only image, which is a refinement of CPointFunctor.
Aim: Defines the concept describing a read/write image, having an output iterator.
Aim: defines the concept of separable metrics.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer
unsigned int dim(const Vector &z)