32 #include "DGtal/base/Common.h"
33 #include "ConfigTest.h"
34 #include "DGtalCatch.h"
35 #include "DGtal/helpers/StdDefs.h"
36 #include "DGtal/math/Profile.h"
37 #include "DGtal/math/MeaningfulScaleAnalysis.h"
42 using namespace DGtal;
52 double operator()(
const double &a)
const {
64 SECTION(
"Testing noise level detect of Profile")
74 std::vector< std::pair<unsigned int, unsigned int> > interval;
79 REQUIRE( interval[0].first == 1 );
80 REQUIRE( interval[0].second == 3 );
81 REQUIRE( interval[1].first == 4 );
Aim: This class implements different methods used to define the meaningful scale analysis as proposed...
std::pair< bool, double > getSlopeFromMeaningfulScales(const double maxSlope=-0.2, const double minSlope=-1e10, const unsigned int minSize=2) const
void computeMeaningfulScales(std::vector< std::pair< unsigned int, unsigned int > > &intervals, const unsigned int minSize=1, const double maxSlope=-0.2, const double minSlope=-1e10) const
unsigned int noiseLevel(const unsigned int minSize=1, const double maxSlope=-0.2, const double minSlope=-1e10) const
unsigned int lowerBoundedNoiseLevel(const unsigned int minSize=1, const double maxSlope=-0.2, const double minSlope=-1e10, const double lowerBoundAtScale1=1.0, const double lowerBoundSlope=-2.0) const
Aim: This class can be used to represent a profile (PX, PY) defined from an input set of samples (Xi,...
void addValue(const unsigned int indexX, const TValue value)
void init(Iterator beginXvalues, Iterator endXvalues, const bool storeValsInStats=false)
DGtal is the top-level namespace which contains all DGtal functions and types.
TEST_CASE("Testing MeaningfulScaleAnalysis")
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))