DGtal  1.4.beta
testMeaningfulScaleAnalysis.cpp File Reference
#include <iostream>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtalCatch.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/math/Profile.h"
#include "DGtal/math/MeaningfulScaleAnalysis.h"
Include dependency graph for testMeaningfulScaleAnalysis.cpp:

Go to the source code of this file.

Functions

TEST_CASE ("Testing MeaningfulScaleAnalysis")

Detailed Description

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Date
2015/12/28

Functions for testing class MeaningfulScaleAnalysis.

This file is part of the DGtal library.

Definition in file testMeaningfulScaleAnalysis.cpp.

◆ TEST_CASE()

 TEST_CASE ( "Testing MeaningfulScaleAnalysis" )

Definition at line 58 of file testMeaningfulScaleAnalysis.cpp.

59 {
60
62  sp.init(6);
63
64  SECTION("Testing noise level detect of Profile")
65  {
72
74  std::vector< std::pair<unsigned int, unsigned int> > interval;
75  msa.computeMeaningfulScales(interval, 1);
76  msa.getSlopeFromMeaningfulScales(0,0,2);
77  msa.lowerBoundedNoiseLevel(0,10,2,2,2);
78  unsigned int n = msa.noiseLevel();
79  REQUIRE( interval[0].first == 1 );
80  REQUIRE( interval[0].second == 3 );
81  REQUIRE( interval[1].first == 4 );
82  REQUIRE( n == 1 );
83  }
84
85
86
87 }
Aim: This class implements different methods used to define the meaningful scale analysis as proposed...
Aim: This class can be used to represent a profile (PX, PY) defined from an input set of samples (Xi,...
Definition: Profile.h:137
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))