|
DGtal
0.6.devel
|
#include <SeparableMetricHelper.h>

Public Types | |
| enum | Closest { FIRST = 0, SECOND = 1, BOTH = 2 } |
| typedef TInternalValue | InternalValue |
| typedef TPoint::Coordinate | Abscissa |
| typedef TPoint | Point |
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((CBoundedInteger< Abscissa >)) | |
| BOOST_CONCEPT_ASSERT ((CBoundedInteger< TInternalValue >)) | |
| double | getApproxValue (const InternalValue &aInternalValue) const |
| InternalValue | F (const Abscissa pos, const Abscissa ci, const InternalValue hi) const |
| InternalValue | reversedF (const Abscissa pos, const Abscissa ci, const InternalValue hi) const |
| InternalValue | power (const Abscissa pos) const |
| Abscissa | reversedSep (const Abscissa i, const InternalValue hi, const Abscissa j, const InternalValue hj) const |
| Abscissa | Sep (const Abscissa i, const InternalValue hi, const Abscissa j, const InternalValue hj) const |
| Closest | closest (const Point &origin, const Point &first, const Point &second) const |
| Abscissa | binarySearchHidden (const Abscissa &udim, const Abscissa &vdim, const InternalValue &nu, const InternalValue &nv, const Abscissa &lower, const Abscissa &upper) const |
| bool | hiddenBy (const Point &u, const Point &v, const Point &w, const Point &startingPoint, const Point &endPoint, const typename Point::UnsignedComponent dim) const |
Static Public Attributes | |
| static const DGtal::uint32_t | p = tp |
Aim: Implements basic functions associated to metrics used by separable volumetric algorithms.
Description of template class 'SeparableMetricHelper'
| TAbscissa | Type used to store the coordinaites of the Domain (model of CBoundedInteger). |
| TInternalValue | the type used to store the internal numbers for exact computations. More precisely, TInternalValueType must be able to represent numbers of type TAbscissa to the power tp (model of CBoundedInteger). |
| tp | the order p of the L_p metric. |
Definition at line 75 of file SeparableMetricHelper.h.
| typedef TPoint::Coordinate DGtal::SeparableMetricHelper< TPoint, TInternalValue, tp >::Abscissa |
Definition at line 80 of file SeparableMetricHelper.h.
| typedef TInternalValue DGtal::SeparableMetricHelper< TPoint, TInternalValue, tp >::InternalValue |
Definition at line 79 of file SeparableMetricHelper.h.
| typedef TPoint DGtal::SeparableMetricHelper< TPoint, TInternalValue, tp >::Point |
Definition at line 81 of file SeparableMetricHelper.h.
| enum DGtal::SeparableMetricHelper::Closest |
Definition at line 189 of file SeparableMetricHelper.h.
|
inline |
Perform a binary search on the interval [lower,upper] to detect the mid-point between u and v according to the l_p distance.
| udim | coordinate of u along dimension dim |
| vdim | coordinate of v along dimension dim |
| nu | partial distance of u (sum of |xj-x_i|^p) discarding the term along the dimension dim |
| nv | partial distance of v (sum of |xj-x_i|^p) discarding the term along the dimension dim |
| lower | interval lower bound |
| upper | interval upper bound |
Definition at line 241 of file SeparableMetricHelper.h.
Referenced by DGtal::SeparableMetricHelper< Point, IntegerLong, p >::binarySearchHidden(), and DGtal::SeparableMetricHelper< Point, IntegerLong, p >::hiddenBy().
| DGtal::SeparableMetricHelper< TPoint, TInternalValue, tp >::BOOST_CONCEPT_ASSERT | ( | (CBoundedInteger< Abscissa >) | ) |
| DGtal::SeparableMetricHelper< TPoint, TInternalValue, tp >::BOOST_CONCEPT_ASSERT | ( | (CBoundedInteger< TInternalValue >) | ) |
|
inline |
Given an origin and two points, this method decides which one is closest to the origin. This method should be faster than comparing distance values.
| origin | the origin |
| first | the first point |
| second | the second point |
Definition at line 203 of file SeparableMetricHelper.h.
|
inline |
Returns the height at a point pos of a Lp-parabola with center ci and height hi.
| pos | an abscissa. |
| ci | center of the Lp-parabola. |
| hi | height of the Lp-parabola. |
Definition at line 118 of file SeparableMetricHelper.h.
|
inline |
Returns an approximation (double) of the InternalValues associated to the metric.
| aInternalValue | the internal value to convert |
Definition at line 102 of file SeparableMetricHelper.h.
|
inline |
Given three sites (a,b,c) and a straight segment [startingPoint,endPoint] along dimension dim, we detect if the voronoi cells of a and c hide the voronoi cell of c on the straight line.
| u | a site |
| v | a site |
| w | a site |
| startingPoint | starting point of the segment |
| endPoint | end point of the segment |
| dim | direction of the straight line |
Definition at line 285 of file SeparableMetricHelper.h.
|
inline |
Returns the InternalValue value of order p for a given position. Basically, its computes pos^p.
| pos | the value of type Abscissa |
Definition at line 148 of file SeparableMetricHelper.h.
Referenced by DGtal::SeparableMetricHelper< Point, IntegerLong, p >::closest().
|
inline |
Returns the height at a point pos of a reversed Lp-parabola with center ci and height hi.
| pos | an abscissa. |
| ci | center of the Lp-parabola. |
| hi | height of the Lp-parabola. |
Definition at line 134 of file SeparableMetricHelper.h.
|
inline |
Returns the abscissa of the intersection point between two reversed Lp-parabolas (ci,hi) and (cj,hj).
| ci | center of the first Lp-parabola. |
| hi | height of the first Lp-parabola power p (hi = real height^p) |
| cj | center of the first Lp-parabola. |
| hj | height of the first Lp-parabola power p (hj = real height^p). |
Definition at line 165 of file SeparableMetricHelper.h.
|
inline |
Returns the abscissa of the intersection point between two Lp-parabolas (ci,hi) and (cj,hj).
| ci | center of the first Lp-parabola. |
| hi | height of the first Lp-parabola power p (hi = real height^p) |
| cj | center of the first Lp-parabola. |
| hj | height of the first Lp-parabola power p (hj = real height^p). |
Definition at line 182 of file SeparableMetricHelper.h.
|
static |
Static constants containing the power p of the Lp-metric.
Definition at line 91 of file SeparableMetricHelper.h.
1.8.1.1