This example shows the basic usage of a naive 3D DSS recognition.
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/base/BasicTypes.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/curves/Naive3DDSSComputer.h"
using namespace std;
{
using namespace Z3i;
typedef std::vector<Z3::Point> Container;
typedef Naive3DDSSComputer< ConstIterator, int, 8 > DSSComputer;
DSSComputer theDSSComputer;
Container contour;
theDSSComputer.init( contour.begin() );
while ( ( theDSSComputer.end() != contour.end() ) &&
( theDSSComputer.extendFront() ) ) {}
theDSSComputer.selfDisplay( cout );
theDSSComputer.validArithmeticalDSS2d( 0 );
DSSComputer::ArithmeticalDSSComputer2d theDSS = theDSSComputer.arithmeticalDSS2d( 0 );
DSSComputer::Point3d directionZ3;
DSSComputer::PointR3d intercept;
DSSComputer::PointR3d thikness;
theDSSComputer.getParameters ( directionZ3, intercept, thikness );
return 1;
}
MyDigitalSurface::ConstIterator ConstIterator
DGtal is the top-level namespace which contains all DGtal functions and types.
int main(int argc, char **argv)