34#include "DGtal/base/Common.h"
35#include "DGtal/helpers/StdDefs.h"
36#include "ConfigExamples.h"
38#include "DGtal/geometry/curves/StabbingLineComputer.h"
48int main(
int argc,
char** argv )
50 trace.beginBlock (
"Example for StabbingLineComputer" );
51 trace.info() <<
"Args:";
52 for (
int i = 0; i < argc; ++i )
53 trace.info() <<
" " << argv[ i ];
56 std::string filename = examplesPath +
"samples/DSS.dat";
58 instream.open (filename.c_str(), ifstream::in);
64 trace.beginBlock(
"Simple example");
73 while ( ( s.
end() != itEnd )
77 trace.info() << s << endl;
48int main(
int argc,
char** argv ) {
…}
ConstIterator begin() const
ConstIterator end() const
bool initFromVectorStream(std::istream &in)
IncidentPointsRange getIncidentPointsRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToIncidentPoints< KSpace >, std::pair< Point, Point > > IncidentPointsRange
Storage::const_iterator ConstIterator
Aim: On-line recognition of a digital straight segment (DSS) defined as a sequence of connected grid ...
ConstIterator end() const
void init(const ConstIterator &anIt)
Z2i this namespace gathers the standard of types for 2D imagery.
DGtal is the top-level namespace which contains all DGtal functions and types.