DGtal 1.3.0
|
Aim: Implementation of the linear in time reverse distance transformation for separable metrics. More...
#include <DGtal/geometry/volumes/distance/ReverseDistanceTransformation.h>
Public Types | |
typedef TWeightImage | WeightImage |
Separable Metric type. More... | |
typedef TPSeparableMetric | PowerSeparableMetric |
Separable Metric type. More... | |
typedef TImageContainer | ImageContainer |
Image Container type. More... | |
typedef PowerSeparableMetric::Value | Value |
Separable Metric type value type. More... | |
typedef TWeightImage::Domain::Space::Point | Point |
Point type. More... | |
typedef TWeightImage::Domain::Space::Vector | Vector |
Vector type. More... | |
typedef PowerSeparableMetric::Weight | Weight |
Separable Metric type weight type. More... | |
typedef ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer > | Self |
Definition of the image. More... | |
typedef PowerMap< TWeightImage, TPSeparableMetric > | Parent |
typedef DefaultConstImageRange< Self > | ConstRange |
Definition of the image constRange. More... | |
typedef PowerMap< TWeightImage, TPSeparableMetric, TImageContainer >::Domain | Domain |
Definition of the image value type. More... | |
Public Types inherited from DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer > | |
typedef TWeightImage | WeightImage |
Copy of the distance image types. More... | |
typedef TWeightImage::Value | Weight |
typedef WeightImage::Domain::Space | Space |
typedef Space::Vector | Vector |
typedef Space::Point | Point |
typedef Space::Dimension | Dimension |
typedef Space::Size | Size |
typedef Space::Point::Coordinate | Abscissa |
typedef TImageContainer::Domain | Domain |
Definition of the underlying domain type. More... | |
typedef TPowerSeparableMetric | PowerSeparableMetric |
We construct the type associated to the separable metric. More... | |
typedef TImageContainer | OutputImage |
Type of resulting image. More... | |
typedef Vector | Value |
Definition of the image model value type. More... | |
typedef OutputImage::ConstRange | ConstRange |
Definition of the image value type. More... | |
typedef PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer > | Self |
Self type. More... | |
typedef std::array< bool, Space::dimension > | PeriodicitySpec |
Periodicity specification type. More... | |
Protected Member Functions | |
ReverseDistanceTransformation () | |
Additional Inherited Members | |
Protected Attributes inherited from DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer > | |
const PowerSeparableMetric * | myMetricPtr |
Pointer to the separable metric instance. More... | |
CountedPtr< OutputImage > | myImagePtr |
Power map image. More... | |
const WeightImage * | myWeightImagePtr |
Pointer to the point predicate. More... | |
PeriodicitySpec | myPeriodicitySpec |
Periodicity along each dimension. More... | |
Aim: Implementation of the linear in time reverse distance transformation for separable metrics.
Description of template class 'ReverseDistanceTransformation'
This class is a wrapper around a power map construction (see PowerMap). More precisely, at a point p, since the PowerMap at p returns a vector to the closest power site, this class adapts the operator() in order to returns the power distance to the closest weighted site for the considered metric.
Please refer to PowerMap documentation for details on the computational cost and parameter description.
This class is a model of CConstImage.
TWeightImage | model of CConstImage |
TPSeparableMetric | model of CPowerSeparableMetric |
TImageContainer | any model of CImage to store the PowerMap (default: ImageContainerBySTLVector). The space of the image container and the TSpace should match. Furthermore the container value type must be TSpace::Vector. |
Definition at line 93 of file ReverseDistanceTransformation.h.
typedef DefaultConstImageRange<Self> DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::ConstRange |
Definition of the image constRange.
Definition at line 129 of file ReverseDistanceTransformation.h.
typedef PowerMap<TWeightImage,TPSeparableMetric,TImageContainer>::Domain DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::Domain |
Definition of the image value type.
Definition at line 134 of file ReverseDistanceTransformation.h.
typedef TImageContainer DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::ImageContainer |
Image Container type.
Definition at line 106 of file ReverseDistanceTransformation.h.
typedef PowerMap<TWeightImage,TPSeparableMetric> DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::Parent |
Definition at line 126 of file ReverseDistanceTransformation.h.
typedef TWeightImage::Domain::Space::Point DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::Point |
Point type.
Definition at line 113 of file ReverseDistanceTransformation.h.
typedef TPSeparableMetric DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::PowerSeparableMetric |
Separable Metric type.
Definition at line 103 of file ReverseDistanceTransformation.h.
typedef ReverseDistanceTransformation<TWeightImage, TPSeparableMetric, TImageContainer> DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::Self |
Definition of the image.
Definition at line 124 of file ReverseDistanceTransformation.h.
typedef PowerSeparableMetric::Value DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::Value |
Separable Metric type value type.
Definition at line 110 of file ReverseDistanceTransformation.h.
typedef TWeightImage::Domain::Space::Vector DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::Vector |
Vector type.
Definition at line 116 of file ReverseDistanceTransformation.h.
typedef PowerSeparableMetric::Weight DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::Weight |
Separable Metric type weight type.
Definition at line 119 of file ReverseDistanceTransformation.h.
typedef TWeightImage DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::WeightImage |
Separable Metric type.
Definition at line 100 of file ReverseDistanceTransformation.h.
|
inline |
Constructor in the non-periodic case.
See documentation of PowerMap constructor.
Definition at line 142 of file ReverseDistanceTransformation.h.
|
inline |
Constructor with periodicity specification.
See documentation of PowerMap constructor.
Definition at line 155 of file ReverseDistanceTransformation.h.
|
inline |
|
protected |
Default Constructor.
DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::BOOST_CONCEPT_ASSERT | ( | (concepts::CImage< ImageContainer >) | ) |
|
inline |
Returns a const range on the ReverseDistanceMap values.
Definition at line 186 of file ReverseDistanceTransformation.h.
|
inline |
Returns a const range on the ReverseDistanceMap values.
Definition at line 177 of file ReverseDistanceTransformation.h.
References DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::domain().
|
inline |
Access to a ReverseDistanceMap value (a.k.a. the norm of the associated Voronoi vector) at a point.
aPoint | the point to probe. |
Definition at line 210 of file ReverseDistanceTransformation.h.
References aPoint(), and DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::myImagePtr.
|
inline |
Definition at line 218 of file ReverseDistanceTransformation.h.
References DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::metricPtr().
|
inline |
Access to a ReverseDistanceMap value (a.k.a. the norm of the associated Power vector) at a point.
aPoint | the point to probe. |
Definition at line 197 of file ReverseDistanceTransformation.h.
References aPoint(), DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::myImagePtr, and DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::myMetricPtr.
|
inline |
Self Display method.
out | output stream |
Definition at line 228 of file ReverseDistanceTransformation.h.
References DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::selfDisplay().