DGtal 1.4.0
|
Functions for testing class StabbingCircleComputer. More...
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/topology/KhalimskySpaceND.h"
#include "DGtal/shapes/ShapeFactory.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/topology/helpers/Surfaces.h"
#include "DGtal/shapes/GaussDigitizer.h"
#include "DGtal/geometry/curves/GridCurve.h"
#include "DGtal/geometry/curves/CBidirectionalSegmentComputer.h"
#include "DGtal/geometry/curves/StabbingCircleComputer.h"
#include "DGtal/geometry/curves/SegmentComputerUtils.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 TKSpace , typename Integer > | |
void | ballGenerator (const TKSpace &aKSpace, GridCurve< TKSpace > &aGC, const Integer &aR, const bool &aFlagIsCW) |
void | testStabbingCircleComputerConceptChecking () |
template<typename TCurve > | |
bool | drawingTestStabbingCircleComputer (const TCurve &curve, const string &suffix) |
template<typename TCurve > | |
bool | testStabbingCircleComputer (const TCurve &curve) |
bool | testRecognition () |
template<typename TCurve > | |
bool | testSegmentation (const TCurve &curve) |
int | main (int argc, char **argv) |
Functions for testing class StabbingCircleComputer.
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 testStabbingCircleComputer.cpp.
void ballGenerator | ( | const TKSpace & | aKSpace, |
GridCurve< TKSpace > & | aGC, | ||
const Integer & | aR, | ||
const bool & | aFlagIsCW ) |
Definition at line 80 of file testStabbingCircleComputer.cpp.
References DGtal::Surfaces< TKSpace >::findABel(), DGtal::GridCurve< TKSpace >::initFromVector(), and DGtal::Surfaces< TKSpace >::track2DBoundaryPoints().
Referenced by main(), and testRecognition().
bool drawingTestStabbingCircleComputer | ( | const TCurve & | curve, |
const string & | suffix ) |
Definition at line 133 of file testStabbingCircleComputer.cpp.
References DGtal::longestSegment(), and LibBoard::Board::saveEPS().
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 407 of file testStabbingCircleComputer.cpp.
References ballGenerator(), DGtal::Trace::beginBlock(), drawingTestStabbingCircleComputer(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::GridCurve< TKSpace >::initFromVectorStream(), testRecognition(), testSegmentation(), testStabbingCircleComputer(), testStabbingCircleComputerConceptChecking(), and DGtal::trace.
bool testRecognition | ( | ) |
Recogition of randomly generated digital circles
Definition at line 262 of file testStabbingCircleComputer.cpp.
References ballGenerator(), DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::longestSegment(), and DGtal::trace.
Referenced by main().
bool testSegmentation | ( | const TCurve & | curve | ) |
Segmentations
Definition at line 331 of file testStabbingCircleComputer.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), DGtal::Trace::beginBlock(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveSVG(), DGtal::SaturatedSegmentation< TSegmentComputer >::setMode(), and DGtal::trace.
bool testStabbingCircleComputer | ( | const TCurve & | curve | ) |
Basic methods
Definition at line 170 of file testStabbingCircleComputer.cpp.
References DGtal::StabbingCircleComputer< TConstIterator >::begin(), DGtal::Trace::beginBlock(), DGtal::StabbingCircleComputer< TConstIterator >::end(), DGtal::Trace::endBlock(), DGtal::StabbingCircleComputer< TConstIterator >::extendBack(), DGtal::StabbingCircleComputer< TConstIterator >::extendFront(), DGtal::StabbingCircleComputer< TConstIterator >::getReverse(), DGtal::Trace::info(), DGtal::StabbingCircleComputer< TConstIterator >::init(), DGtal::StabbingCircleComputer< TConstIterator >::isExtendableFront(), DGtal::StabbingCircleComputer< TConstIterator >::isValid(), DGtal::longestSegment(), and DGtal::trace.
Referenced by main().
void testStabbingCircleComputerConceptChecking | ( | ) |
Definition at line 120 of file testStabbingCircleComputer.cpp.
Referenced by main().