33 #if defined(PowerMap_RECURSES)
34 #error Recursive header files inclusion detected in PowerMap.h
35 #else // defined(PowerMap_RECURSES)
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>,
420 template <
typename W,
431 #include "DGtal/geometry/volumes/distance/PowerMap.ih"
436 #endif // !defined PowerMap_h
438 #undef PowerMap_RECURSES
439 #endif // else defined(PowerMap_RECURSES)
Point myDomainExtent
Domain extent.
Point myInfinity
Value to act as a +infinity value.
void computeOtherSteps(const Dimension dim) const
DGtal::Dimension Dimension
Copy of the type used for the dimension.
Aim: Implementation of the linear in time Power map construction.
const WeightImage * weightImagePtr() const
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'.
Aim: model of CConstBidirectionalRangeFromPoint that adapts any range of elements bounded by two iter...
PeriodicitySpec myPeriodicitySpec
Periodicity along each dimension.
Component Coordinate
Type for Point elements.
std::vector< Dimension > myPeriodicityIndex
Index of the periodic dimensions.
Self & operator=(const Self &aOtherPowerMap)=default
PointVector< dim, Integer > Point
Points in DGtal::SpaceND.
Point projectPoint(Point aPoint) const
ConstRange constRange() const
OutputImage::ConstRange ConstRange
Definition of the image value type.
DGtal::uint32_t Dimension
size_t Size
Type used to represent sizes in the digital space.
WeightImage::Domain::Space Space
TWeightImage::Value Weight
void computeOtherStep1D(const Point &row, const Dimension dim) const
Value operator()(const Point &aPoint) const
unsigned int dim(const Vector &z)
CountedPtr< OutputImage > myImagePtr
Power map image.
const PowerSeparableMetric * metricPtr() const
const PeriodicitySpec & getPeriodicitySpec() const
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Point myUpperBoundCopy
Copy of the image lower bound.
std::array< bool, Space::dimension > PeriodicitySpec
Periodicity specification type.
const Domain * myDomainPtr
Pointer to the computation domain.
DGtal is the top-level namespace which contains all DGtal functions and types.
Space::Dimension Dimension
Aim: defines the concept of separable metrics.
BOOST_STATIC_ASSERT((boost::is_same< typename TWeightImage::Domain::Space, typename TImageContainer::Domain::Space >::value))
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
ConstRange constRange() const
TImageContainer::Domain Domain
Definition of the underlying domain type.
const PowerSeparableMetric * myMetricPtr
Pointer to the separable metric instance.
FreemanChain< int >::Vector Vector
Aim: implements association bewteen points lying in a digital domain and values.
TImageContainer OutputImage
Type of resulting image.
const WeightImage * myWeightImagePtr
Pointer to the point predicate.
TPowerSeparableMetric PowerSeparableMetric
We construct the type associated to the separable metric.
Point::Coordinate projectCoordinate(typename Point::Coordinate aCoordinate, const Dimension aDim) const
bool isPeriodic(const Dimension n) const
Point myLowerBoundCopy
Copy of the image lower bound.
PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer > Self
Self type.
Space::Point::Coordinate Abscissa
TWeightImage WeightImage
Copy of the distance image types.
Vector Value
Definition of the image model value type.
const Domain & domain() const
Aim: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.
void selfDisplay(std::ostream &out) const
Aim: Defines the concept describing a read/write image, having an output iterator.