45#include "DGtal/base/Common.h"
47#include "DGtal/io/readers/VolReader.h"
48#include "DGtal/io/DrawWithDisplay3DModifier.h"
49#include "DGtal/io/viewers/Viewer3D.h"
50#include "DGtal/io/Color.h"
51#include "DGtal/images/ImageSelector.h"
52#include "DGtal/helpers/StdDefs.h"
53#include "ConfigExamples.h"
63int main(
int argc,
char** argv )
74 typedef Z3::Point
Point;
80 Point p1( -50, -50, -50 );
81 Point p2( 50, 50, 50 );
88 if ( (*it - c ).norm1() <= 30 ) diamond_set.
insertNew( *it );
90 ObjectType diamond( dt6_18, diamond_set );
92 ObjectType diamond_clone( diamond );
94 diamond_clone.pointSet().erase( c );
95 ObjectType bdiamond = diamond.border();
96 ObjectType bdiamond_clone = diamond_clone.border();
98 QApplication application(argc,argv);
103 viewer << bdiamond_clone;
106 return application.exec();
Structure representing an RGB triple with alpha component.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
void insertNew(const Point &p)
Aim: Represents a digital topology as a couple of adjacency relations.
Iterator for HyperRectDomain.
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
const ConstIterator & begin() const
const ConstIterator & end() const
Aim: Describes digital adjacencies in digital spaces that are defined with the 1-norm and the infinit...
Aim: An object (or digital object) represents a set in some digital space associated with a digital t...
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
DGtal is the top-level namespace which contains all DGtal functions and types.
Class for adding a Clipping plane through the Viewer3D stream. Realizes the concept CDrawableWithView...
HyperRectDomain< Space > Domain
Z2i::DigitalSet DigitalSet