43#include "DGtal/base/Common.h"
45#include "DGtal/base/Common.h"
46#include "DGtal/io/readers/VolReader.h"
47#include "DGtal/io/viewers/PolyscopeViewer.h"
48#include "DGtal/io/Color.h"
50#include "DGtal/images/ImageSelector.h"
51#include "DGtal/helpers/StdDefs.h"
52#include "ConfigExamples.h"
53#include "DGtal/io/Color.h"
54#include "DGtal/io/colormaps/GradientColorMap.h"
55#include "DGtal/topology/KhalimskySpaceND.h"
56#include "DGtal/topology/helpers/Surfaces.h"
67int main(
int argc,
char** argv )
71 Point p2( 20, 20, 20 );
72 Point c( 10, 10, 10 );
78 unsigned int nbSeeds = 35;
79 vector<Point> vCenters;
81 for(
unsigned int i=0;i<nbSeeds; i++){
82 vCenters.push_back(
Point(rand()%p2[0], rand()%p2[1],
84 vRad.push_back(rand()%7);
87 for(
unsigned int i=0;i<nbSeeds; i++){
88 if ( (*it - vCenters.at(i) ).norm1() <= vRad.at(i) &&
domain.isInside(*it) &&
102 vector<vector<SCell> > vectConnectedSCell;
127 for(
unsigned int i=0; i< vectConnectedSCell.size();i++){
130 for(
unsigned int j=0; j< vectConnectedSCell.at(i).size();j++){
131 viewer << vectConnectedSCell.at(i).at(j);
136 viewer <<
Color(250, 200,200, 200);
137 viewer << diamond_set;
67int main(
int argc,
char** argv ) {
…}
Structure representing an RGB triple with alpha component.
static const Color Yellow
static const Color Magenta
void insertNew(const Point &p)
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
void addColor(const Color &color)
void show() override
Starts the event loop and display of elements.
static void extractAllConnectedSCell(std::vector< std::vector< SCell > > &aVectConnectedSCell, const KSpace &aKSpace, const SurfelAdjacency< KSpace::dimension > &aSurfelAdj, const PointPredicate &pp, bool forceOrientCellExterior=false)
Aim: Represent adjacencies between surfel elements, telling if it follows an interior to exterior ord...
Z3i this namespace gathers the standard of types for 3D imagery.
KhalimskySpaceND< 3, Integer > KSpace
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
DGtal is the top-level namespace which contains all DGtal functions and types.