DGtal 1.3.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 > | |
GridCurve< TKSpace > | ballGenerator (double aCx, double aCy, double aR, 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.
GridCurve< TKSpace > ballGenerator | ( | double | aCx, |
double | aCy, | ||
double | aR, | ||
bool | aFlagIsCW | ||
) |
Definition at line 70 of file testStabbingCircleComputer.cpp.
References DGtal::GaussDigitizer< TSpace, TEuclideanShape >::attach(), domain, DGtal::Surfaces< TKSpace >::findABel(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::getDomain(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::getLowerBound(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::getUpperBound(), DGtal::KhalimskySpaceND< dim, TInteger >::init(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::init(), DGtal::GridCurve< TKSpace >::initFromVector(), K, and DGtal::Surfaces< TKSpace >::track2DBoundaryPoints().
bool drawingTestStabbingCircleComputer | ( | const TCurve & | curve, |
const string & | suffix | ||
) |
Definition at line 149 of file testStabbingCircleComputer.cpp.
References DGtal::longestSegment(), and LibBoard::Board::saveEPS().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 412 of file testStabbingCircleComputer.cpp.
References 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 278 of file testStabbingCircleComputer.cpp.
References 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 336 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 186 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 136 of file testStabbingCircleComputer.cpp.
Referenced by main().