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"
40 using namespace DGtal;
51 unsigned int nbok = 0;
69 unsigned int nbok = 0;
82 trace.
info() <<
"distance= "<< l2(a,b)<<
" and adapted= "<< d << std::endl;
83 nbok += (d == 6) ? 1 : 0;
85 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
93 int 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.
int main(int argc, char **argv)