32 #include "DGtal/base/Common.h"
33 #include "DGtal/geometry/curves/ArithDSSIterator.h"
34 #include "DGtal/geometry/curves/ArithmeticalDSSComputer.h"
38 using namespace DGtal;
53 MyIterator it(2,5,-4,p);
61 while ( (*it)[0] <=absMax && myDSS.extendFront(*++it))
64 std::cout << myDSS.a() <<
" " << myDSS.b() <<
" " << myDSS.mu() <<
" " << std::endl;
66 return ( (myDSS.a() == 2) &&
74 int main(
int argc,
char** argv )
78 for (
int i = 0; i < argc; ++i )
83 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: An iterator on the points of a Digital Straight Segment. Template parameters are the integer typ...
Aim: This class represents a standard digital straight segment (DSS), ie. the sequence of simply 8-co...
Aim: Implements basic operations that will be used in Point and Vector classes.
void beginBlock(const std::string &keyword="")
DGtal is the top-level namespace which contains all DGtal functions and types.
int main(int argc, char **argv)
bool testArithDSSIterator()