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/kernel/CanonicCellEmbedder.h"
38 #include "DGtal/kernel/CanonicSCellEmbedder.h"
39 #include "DGtal/kernel/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;
66 unsigned int nbok = 0;
82 <
KSpace, ImplicitShape, MyEmbedder1 > MyCellEmbedder1;
85 < KSpace, ImplicitShape, MyEmbedder2 > MyCellEmbedder2;
98 < MyDigitalSurface, Kernel > MyEstimator;
100 < MyDSEmbedder1, MyEstimator > MyDSEmbedder2;
106 MyCellEmbedder3 cemb3( K );
107 MySCellEmbedder1 scemb1( K );
109 K.init(
Point( 0, 0, 0 ),
Point( 10, 10, 10 ),
true );
112 DigitalSurfaceContainer dsc( K, dset );
113 MyDigitalSurface ds( dsc );
114 MyDSEmbedder1 dsemb1( ds );
115 nbok +=
true ? 1 : 0;
117 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
118 <<
"true == true" << std::endl;
127 int main(
int argc,
char** argv )
131 for (
int i = 0; i < argc; ++i )
135 bool res = testEmbedder();
136 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;