DGtal
1.5.beta
|
Functions for testing class StabbingLineComputer. More...
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/PointVector.h"
#include "DGtal/topology/KhalimskySpaceND.h"
#include "DGtal/geometry/curves/GridCurve.h"
#include "DGtal/geometry/curves/CBidirectionalSegmentComputer.h"
#include "DGtal/geometry/curves/StabbingLineComputer.h"
#include "DGtal/geometry/curves/GreedySegmentation.h"
#include "DGtal/geometry/curves/SaturatedSegmentation.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/boards/CDrawableWithBoard2D.h"
#include "ConfigTest.h"
Go to the source code of this file.
Functions | |
template<typename TCurve > | |
bool | testStabbingLineComputer (const TCurve &curve) |
template<typename TCurve > | |
bool | drawingTestStabbingLineComputer (const TCurve &curve) |
void | testStabbingLineComputerConceptChecking () |
template<typename TCurve > | |
bool | testSegmentation (const TCurve &curve) |
int | main (int argc, char **argv) |
Functions for testing class StabbingLineComputer.
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/.
This file is part of the DGtal library.
Definition in file testStabbingLineComputer.cpp.
bool drawingTestStabbingLineComputer | ( | const TCurve & | curve | ) |
Definition at line 159 of file testStabbingLineComputer.cpp.
References LibBoard::Board::saveEPS().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 265 of file testStabbingLineComputer.cpp.
References DGtal::Trace::beginBlock(), drawingTestStabbingLineComputer(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::GridCurve< TKSpace >::initFromVectorStream(), testSegmentation(), testStabbingLineComputer(), testStabbingLineComputerConceptChecking(), and DGtal::trace.
bool testSegmentation | ( | const TCurve & | curve | ) |
Definition at line 191 of file testStabbingLineComputer.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), DGtal::Trace::beginBlock(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveEPS(), and DGtal::trace.
Referenced by main().
bool testStabbingLineComputer | ( | const TCurve & | curve | ) |
Basic methods
Definition at line 61 of file testStabbingLineComputer.cpp.
References DGtal::StabbingLineComputer< TConstIterator >::begin(), DGtal::Trace::beginBlock(), DGtal::StabbingLineComputer< TConstIterator >::end(), DGtal::Trace::endBlock(), DGtal::StabbingLineComputer< TConstIterator >::extendBack(), DGtal::StabbingLineComputer< TConstIterator >::extendFront(), DGtal::StabbingLineComputer< TConstIterator >::getParameters(), DGtal::StabbingLineComputer< TConstIterator >::getReverse(), DGtal::Trace::info(), DGtal::StabbingLineComputer< TConstIterator >::init(), DGtal::StabbingLineComputer< TConstIterator >::isExtendableFront(), DGtal::StabbingLineComputer< TConstIterator >::isValid(), DGtal::StabbingLineComputer< TConstIterator >::Lf(), DGtal::StabbingLineComputer< TConstIterator >::Ll(), DGtal::trace, DGtal::StabbingLineComputer< TConstIterator >::Uf(), and DGtal::StabbingLineComputer< TConstIterator >::Ul().
Referenced by main().
void testStabbingLineComputerConceptChecking | ( | ) |
Definition at line 181 of file testStabbingLineComputer.cpp.
Referenced by main().