DGtal
0.9.3
|
#include <DGtal/geometry/volumes/distance/ReverseDistanceTransformation.h>
Public Types | |
typedef TWeightImage | WeightImage |
typedef TPSeparableMetric | PowerSeparableMetric |
typedef TImageContainer | ImageContainer |
typedef PowerSeparableMetric::Value | Value |
typedef TWeightImage::Domain::Space::Point | Point |
typedef TWeightImage::Domain::Space::Vector | Vector |
typedef PowerSeparableMetric::Weight | Weight |
typedef ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer > | Self |
typedef PowerMap< TWeightImage, TPSeparableMetric > | Parent |
typedef DefaultConstImageRange< Self > | ConstRange |
typedef PowerMap< TWeightImage, TPSeparableMetric, TImageContainer >::Domain | Domain |
![]() | |
typedef TWeightImage | WeightImage |
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 |
typedef TPSeparableMetric | PowerSeparableMetric |
typedef TImageContainer | OutputImage |
typedef Vector | Value |
typedef OutputImage::ConstRange | ConstRange |
typedef PowerMap< TWeightImage, TPSeparableMetric, TImageContainer > | Self |
typedef std::array< bool, Space::dimension > | PeriodicitySpec |
Protected Member Functions | |
ReverseDistanceTransformation () | |
Additional Inherited Members | |
![]() | |
const PowerSeparableMetric * | myMetricPtr |
CountedPtr< OutputImage > | myImagePtr |
const WeightImage * | myWeightImagePtr |
PeriodicitySpec | myPeriodicitySpec |
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.
Referenced by DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::selfDisplay().
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, TPSeparableMetric, 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, TPSeparableMetric, TImageContainer >::myImagePtr, DGtal::PowerMap< TWeightImage, TPSeparableMetric, TImageContainer >::myMetricPtr, and DGtal::PowerMap< TWeightImage, TPSeparableMetric, TImageContainer >::myWeightImagePtr.
|
inline |
Self Display method.
out | output stream |
Definition at line 228 of file ReverseDistanceTransformation.h.
References DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::ReverseDistanceTransformation(), and DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::selfDisplay().