32 #include <Qt/qapplication.h>
33 #include <Inventor/nodes/SoCube.h>
34 #include "DGtal/io/viewers/DGtalInventor.h"
35 #include "DGtal/io/viewers/IVViewer.h"
36 #include "DGtal/base/Common.h"
37 #include "DGtal/kernel/domains/HyperRectDomain.h"
38 #include "DGtal/images/ImageSelector.h"
39 #include "DGtal/io/readers/VolReader.h"
40 #include "DGtal/io/Color.h"
41 #include "DGtal/io/colormaps/GradientColorMap.h"
42 #include "DGtal/topology/SurfelAdjacency.h"
43 #include "DGtal/topology/SurfelNeighborhood.h"
44 #include "DGtal/topology/KhalimskySpaceND.h"
45 #include "DGtal/helpers/StdDefs.h"
46 #include "DGtal/shapes/Shapes.h"
47 #include "DGtal/topology/helpers/Surfaces.h"
48 #include "ConfigTest.h"
53 using namespace DGtal;
71 cmap_grad.clearColors();
72 cmap_grad.addColor( c1 );
73 cmap_grad.addColor( c2 );
94 p[ j ] = ( i & ( 1 << j ) ) ? up[ j ] : low[ j ];
95 c[ j ] = ( i & ( 1 << j ) ) ? 1.0 : 0.1 ;
108 int main(
int argc,
char** argv )
110 QApplication app( argc, argv );
116 std::string filename = testPath +
"samples/cat10.vol";
128 if ( image( *it ) != 0 )
129 shape_set.insert( *it );
138 if ( image( *it ) != 0 )
153 SCell intvoxel = K3.
sSpel( first );
154 SCell surfel = K3.
sIncident( intvoxel, 0,
false );
155 std::set<SCell> bdry;
157 K3, SAdj, shape_set_predicate, surfel );
159 trace.
info() <<
"tracking finished, size=" << bdry.size() << endl;
164 addBounds( inventor, image.
domain().lowerBound(), image.
domain().upperBound() );
165 for ( std::set<SCell>::const_iterator it = bdry.begin(), itend = bdry.end();
182 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;