32#include "DGtal/base/Common.h"
33#include "ConfigTest.h"
34#include "DGtal/helpers/StdDefs.h"
35#include "DGtal/geometry/volumes/distance/CDigitalMetricSpace.h"
36#include "DGtal/geometry/volumes/distance/DigitalMetricAdapter.h"
51 unsigned int nbok = 0;
69 unsigned int nbok = 0;
79 L2::Point a(0,0), b(5,2);
81 Adapted::Value d = adapted(a,b);
82 trace.
info() <<
"distance= "<< l2(a,b)<<
" and adapted= "<< d << std::endl;
83 nbok += (d == 6) ? 1 : 0;
85 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
93int main(
int argc,
char** argv )
97 for (
int i = 0; i < argc; ++i )
102 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: simple adapter class which adapts any models of concepts::CMetricSpace to a model of concepts::C...
Aim: implements separable l_p metrics with exact predicates.
void beginBlock(const std::string &keyword="")
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: defines the concept of digital metric spaces.