DGtal 1.4.0
|
#include <iostream>
#include <iterator>
#include <cstdio>
#include <cmath>
#include <fstream>
#include <vector>
#include "DGtal/base/Common.h"
#include "DGtal/base/Exceptions.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/geometry/curves/FrechetShortcut.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/boards/CDrawableWithBoard2D.h"
#include "DGtal/geometry/curves/CForwardSegmentComputer.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/curves/GreedySegmentation.h"
#include "ConfigTest.h"
Go to the source code of this file.
Functions | |
bool | testFrechetShortcut () |
void | testFrechetShortcutConceptChecking () |
bool | testSegmentation () |
bool | testSegmentationLarger (const string &filename, int min, int max, double delta) |
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 FrechetShortcut.
This file is part of the DGtal library.
Definition in file testFrechetShortcut.cpp.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 308 of file testFrechetShortcut.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testFrechetShortcut(), testFrechetShortcutConceptChecking(), testSegmentation(), testSegmentationLarger(), and DGtal::trace.
bool testFrechetShortcut | ( | ) |
Example of a test. To be completed.
Definition at line 68 of file testFrechetShortcut.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
void testFrechetShortcutConceptChecking | ( | ) |
Definition at line 120 of file testFrechetShortcut.cpp.
Referenced by main().
bool testSegmentation | ( | ) |
Definition at line 129 of file testFrechetShortcut.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), DGtal::Trace::beginBlock(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::Trace::endBlock(), DGtal::GridCurve< TKSpace >::getArrowsRange(), DGtal::GridCurve< TKSpace >::getPointsRange(), DGtal::Trace::info(), DGtal::GridCurve< TKSpace >::initFromVector(), LibBoard::Board::saveEPS(), and DGtal::trace.
Referenced by main().
bool testSegmentationLarger | ( | const string & | filename, |
int | min, | ||
int | max, | ||
double | delta ) |
Definition at line 232 of file testFrechetShortcut.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), DGtal::Trace::beginBlock(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::Trace::endBlock(), LibBoard::error, DGtal::GridCurve< TKSpace >::getArrowsRange(), DGtal::GridCurve< TKSpace >::getPointsRange(), DGtal::Trace::info(), init(), DGtal::GridCurve< TKSpace >::initFromVectorStream(), max(), LibBoard::Board::saveEPS(), DGtal::GridCurve< TKSpace >::size(), and DGtal::trace.
Referenced by main().