32 #include "DGtal/base/Common.h" 33 #include "DGtal/helpers/StdDefs.h" 34 #include "DGtal/kernel/CPointEmbedder.h" 35 #include "DGtal/kernel/CWithGradientMap.h" 36 #include "DGtal/kernel/CanonicEmbedder.h" 37 #include "DGtal/topology/CanonicCellEmbedder.h" 38 #include "DGtal/topology/CanonicSCellEmbedder.h" 39 #include "DGtal/topology/CanonicDigitalSurfaceEmbedder.h" 40 #include "DGtal/kernel/RegularPointEmbedder.h" 41 #include "DGtal/topology/CCellEmbedder.h" 42 #include "DGtal/topology/CSCellEmbedder.h" 43 #include "DGtal/topology/CDigitalSurfaceEmbedder.h" 44 #include "DGtal/topology/DigitalSetBoundary.h" 45 #include "DGtal/topology/DigitalSurface.h" 46 #include "DGtal/shapes/implicit/ImplicitPolynomial3Shape.h" 47 #include "DGtal/shapes/implicit/ImplicitFunctionLinearCellEmbedder.h" 48 #include "DGtal/shapes/implicit/ImplicitFunctionDiff1LinearCellEmbedder.h" 49 #include "DGtal/geometry/surfaces/estimation/BasicConvolutionWeights.h" 50 #include "DGtal/geometry/surfaces/estimation/LocalConvolutionNormalVectorEstimator.h" 51 #include "DGtal/geometry/surfaces/estimation/DigitalSurfaceEmbedderWithNormalVectorEstimator.h" 55 using namespace DGtal;
67 unsigned int nbok = 0;
83 < KSpace, ImplicitShape, MyEmbedder1 > MyCellEmbedder1;
86 < KSpace, ImplicitShape, MyEmbedder2 > MyCellEmbedder2;
101 < MyDSEmbedder1, MyEstimator > MyDSEmbedder2;
107 MyCellEmbedder3 cemb3( K );
108 MySCellEmbedder1 scemb1( K );
110 K.init(
Point( 0, 0, 0 ),
Point( 10, 10, 10 ),
true );
111 DigitalSet dset( domain );
113 DigitalSurfaceContainer dsc( K, dset );
114 MyDigitalSurface ds( dsc );
115 MyDSEmbedder1 dsemb1( ds );
116 nbok +=
true ? 1 : 0;
118 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") " 119 <<
"true == true" << std::endl;
128 int main(
int argc,
char** argv )
132 for (
int i = 0; i < argc; ++i )
137 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
void beginBlock(const std::string &keyword="")
Aim: Such object provides a gradient map that associates to each argument some real vector...
HyperRectDomain< Space > Domain
Aim: a cellular embedder for implicit functions, (default constructible, copy constructible, assignable). Model of CCellEmbedder and CWithGradientMap.
const Domain domain(Point(1, 2), Point(6, 5))
Aim: Computes the normal vector at a surface element by convolution of elementary normal vector to ad...
int main(int argc, char **argv)
Aim: A cell embedder is a mapping from unsigned cells to Euclidean points. It adds inner types to fun...
Aim: Represents a set of n-1-cells in a nD space, together with adjacency relation between these cell...
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as the boundary of a given...
Aim: Gathers several functions useful for concept checks.
Aim: A trivial embedder for digital surfaces, which corresponds to the canonic injection of cell cent...
Aim: A trivial embedder for signed and unsigned cell, which corresponds to the canonic injection of c...
Aim: A cell embedder is a mapping from signed cells to Euclidean points. It adds inner types to funct...
Aim: model of CEuclideanOrientedShape concepts to create a shape from a polynomial.
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Aim: A trivial embedder for digital points, which corresponds to the canonic injection of Zn into Rn...
Aim: a cellular embedder for implicit functions, (default constructible, copy constructible, assignable). Model of CCellEmbedder.
FreemanChain< int >::Vector Vector
Aim: implement a trivial constant convolution kernel which returns 1 to each distance.
Aim: A point embedder is a mapping from digital points to Euclidean points. It adds inner types to fu...
Aim: Combines a digital surface embedder with a normal vector estimator to get a model of CDigitalSur...
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex...
DigitalSurface< MyDigitalSurfaceContainer > MyDigitalSurface
Aim: A digital surface embedder is a specialized mapping from signed cells to Euclidean points...