Example of 6-18 digital Adjacencies visualization with PolyscopeViewer.
- See also
- Drawmode selection: the example of digital objects in 3D
6-18 digital Adjacencies visualization with PolyscopeViewer.
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/io/Color.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/io/viewers/PolyscopeViewer.h"
int main(
int argc,
char** argv )
{
PolyscopeViewer v;
v << shape_set;
Object6_18 shape1( dt6_18, shape_set );
Object18_6 shape2( dt18_6, shape_set );
v << shape1;
v << shape2;
return 0;
}
void drawAdjacencies(bool toggle=true)
void show() override
Starts the event loop and display of elements.
static void addNorm1Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
static void addNorm2Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
Z3i this namespace gathers the standard of types for 3D imagery.
DGtal is the top-level namespace which contains all DGtal functions and types.
HyperRectDomain< Space > Domain
Z2i::DigitalSet DigitalSet