37#include "DGtal/base/Common.h"
38#include "DGtal/math/MeasureOfStraightLines.h"
68 trace.info() <<
"Measure of the Straight of Lines of the unit square = " << measure.
computeMeasure(a,b)<< std::endl;
69 trace.emphase() <<
"Expected value = 0.707107 (sqrt(2)/2)"<<endl;
96 trace.emphase() <<
"Expected value = (0.4142,0.5)"<<endl;
102 trace.beginBlock (
"Testing class MeasureOfStraightLines" );
103 trace.info() <<
"Args:";
104 for (
int i = 0; i < argc; ++i )
105 trace.info() <<
" " << argv[ i ];
106 trace.info() << endl;
The aim of this class is to compute the measure in the Lebesgues sense of the set of straight lines a...
double computeMeasure(const std::vector< double > &a, const std::vector< double > &b)
double computeCentroidA(const std::vector< double > &a, const std::vector< double > &b)
double computeCentroidB(const std::vector< double > &a, const std::vector< double > &b)
DGtal is the top-level namespace which contains all DGtal functions and types.
void testUnitSquareCentroid()