37 #include "DGtal/base/Common.h"
38 #include "DGtal/math/MeasureOfStraightLines.h"
41 using namespace DGtal;
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;
100 int main(
int argc,
char **argv)
104 for (
int i = 0; i < argc; ++i )
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)
void beginBlock(const std::string &keyword="")
DGtal is the top-level namespace which contains all DGtal functions and types.
void testUnitSquareCentroid()
int main(int argc, char **argv)