13 template <
typename T, std::
size_t D,
typename TStorage,
typename TNewPrecision>
21 template <
typename TAccumulationPo
int,
typename TPo
intCollection >
22 TAccumulationPoint
centroid(
const TPointCollection & c)
29 template <
typename T, std::
size_t D >
32 return dist2(p1.data(), p2.data());
37 template <
typename TPrecision,
typename T, std::
size_t D >
88 template <
typename TPrecision,
typename T, std::
size_t D >
void sqrt(const TImage &in, TImage &out)
Point< T, D, typename change_precision< TStorage, TNewPrecision >::type > type
Belongs to package Box Do not include directly, include til/Box.h instead.
TAccumulationPoint centroid(const TPointCollection &c)
void accumulate(typename boost::call_traits< T >::param_type value)
Accumulate a value.
A class to accumulate values and return their mean.
TPrec dist(const numeric_array< T1, D > &v1, const numeric_array< T2, D > &v2, prec< TPrec >)
Return the Euclidean distance between two arrays.
TAccumulation get()
Get mean of accumulated values.
Changing the numerical precision of an object.
A dummy class used to pass a precision type for computations to some functions.
TPrec dist2(const numeric_array< T1, D > &v1, const numeric_array< T2, D > &v2, prec< TPrec >)
Return the squared Euclidean distance between two vectors, computed with a precision given as the fir...