50#include "DGtal/io/viewers/PolyscopeViewer.h"
52#include "DGtal/io/readers/PointListReader.h"
54#include "DGtal/base/Common.h"
55#include "DGtal/helpers/StdDefs.h"
56#include "ConfigExamples.h"
58#include "DGtal/geometry/curves/StandardDSS6Computer.h"
59#include "DGtal/geometry/curves/GreedySegmentation.h"
69int main(
int argc,
char** argv )
73 typedef std::vector<Point>::iterator
Iterator;
77 string inputFilename = examplesPath +
"samples/sinus.dat";
82 Decomposition theDecomposition(sequence.begin(), sequence.end(), algo);
88#ifdef DGTAL_WITH_POLYSCOPE
96 Decomposition::SegmentComputerIterator i = theDecomposition.begin();
97 for ( ; i != theDecomposition.end(); ++i) {
99 #ifdef DGTAL_WITH_POLYSCOPE
101 viewer << currentSegmentComputer;
103 viewer << currentSegmentComputer;
109 #ifdef DGTAL_WITH_POLYSCOPE
69int main(
int argc,
char** argv ) {
…}
void drawAsGrid(bool toggle=true)
Aim: Computes the greedy segmentation of a range given by a pair of ConstIterators....
Aim: Implements basic operations that will be used in Point and Vector classes.
void show() override
Starts the event loop and display of elements.
Aim: Dynamic recognition of a 3d-digital straight segment (DSS)
Z3i this namespace gathers the standard of types for 3D imagery.
DGtal is the top-level namespace which contains all DGtal functions and types.
static std::vector< TPoint > getPointsFromFile(const std::string &filename, std::vector< unsigned int > aVectPosition=std::vector< unsigned int >())
ArithmeticalDSSComputer< std::vector< Z2i::Point >::const_iterator, int, 4 > SegmentComputer