DGtal 1.3.0
|
#include <iostream>
#include <fstream>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/geometry/curves/FreemanChain.h"
#include "DGtal/geometry/curves/FP.h"
#include "DGtal/io/boards/Board2D.h"
#include "ConfigTest.h"
Go to the source code of this file.
Functions | |
bool | testFP (string filename) |
template<typename Range1 , typename Range2 > | |
bool | compare (const Range1 &pts, const Range2 &groundTruth) |
bool | stoppingCriterionTest () |
int | main (int argc, char **argv) |
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/.
Functions for testing class FP.
This file is part of the DGtal library.
Definition in file testFP.cpp.
bool compare | ( | const Range1 & | pts, |
const Range2 & | groundTruth | ||
) |
Definition at line 98 of file testFP.cpp.
References DGtal::ConstRangeAdapter< TIterator, TFunctor, TReturnType >::c(), DGtal::GridCurve< TKSpace >::getPointsRange(), and DGtal::GridCurve< TKSpace >::initFromPointsRange().
Referenced by stoppingCriterionTest().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 256 of file testFP.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), stoppingCriterionTest(), and testFP().
bool stoppingCriterionTest | ( | ) |
Definition at line 112 of file testFP.cpp.
References DGtal::Trace::beginBlock(), compare(), DGtal::Trace::endBlock(), and DGtal::Trace::info().
Referenced by main().
bool testFP | ( | string | filename | ) |
Test
Definition at line 56 of file testFP.cpp.
References DGtal::Trace::info(), DGtal::GridCurve< TKSpace >::initFromVectorStream(), and DGtal::FP< TIterator, TInteger, connectivity >::isValid().
Referenced by main().