45#include "DGtal/base/Common.h"
46#include "DGtal/base/Exceptions.h"
47#include "DGtal/kernel/SpaceND.h"
48#include "DGtal/kernel/domains/DomainPredicate.h"
49#include "DGtal/kernel/domains/HyperRectDomain.h"
50#include "DGtal/topology/KhalimskySpaceND.h"
51#include "DGtal/geometry/curves/GridCurve.h"
52#include "DGtal/io/boards/Board2D.h"
54#include "DGtal/shapes/fromPoints/StraightLineFrom2Points.h"
55#include "DGtal/geometry/tools/Preimage2D.h"
58#include "ConfigTest.h"
67 std::string filename = testPath +
"samples/DSS.dat";
68 std::ifstream instream;
69 instream.open (filename.c_str(), std::ifstream::in);
79 StraightLine aStraightLine;
87 Preimage2D thePreimage(it->first, it->second, aStraightLine);
89 while ( (it != itEnd) &&
90 (thePreimage.
addBack(it->first, it->second)) )
92 trace.
info() << (it - r.rbegin()) << std::endl << thePreimage << std::endl;
Aim: model of CConstBidirectionalRange that adapts any range of elements bounded by two iterators [it...
Aim: describes, in a cellular space of dimension n, a closed or open sequence of signed d-cells (or d...
bool initFromVectorStream(std::istream &in)
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
Aim: Computes the preimage of the 2D Euclidean shapes crossing a sequence of n straigth segments in O...
bool addBack(const Point &aP, const Point &aQ)
This class adapts any bidirectional iterator so that operator++ calls operator-- and vice versa.
Aim: Represents a straight line uniquely defined by two 2D points and that is able to return for any ...
void beginBlock(const std::string &keyword="")
DGtal is the top-level namespace which contains all DGtal functions and types.