Objects have a border, which are the points which touch the complement in the sense of background adjacency. A border of an object is itself an object, with the same topology as the object.
- See also
- Border of a digital object
Border extraction visualisation
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/io/readers/VolReader.h"
#include "DGtal/io/DrawWithDisplay3DModifier.h"
#include "DGtal/io/viewers/Viewer3D.h"
#include "DGtal/io/Color.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/helpers/StdDefs.h"
#include "ConfigExamples.h"
using namespace std;
int main(
int argc,
char** argv )
{
Point p1( -50, -50, -50 );
{
if ( (*it - c ).norm1() <= 30 ) diamond_set.
insertNew( *it );
}
ObjectType diamond( dt6_18, diamond_set );
ObjectType diamond_clone( diamond );
diamond_clone.pointSet().erase( c );
ObjectType bdiamond = diamond.border();
ObjectType bdiamond_clone = diamond_clone.border();
QApplication application(argc,argv);
viewer << bdiamond_clone;
viewer << bdiamond ;
return application.exec();
}
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
const ConstIterator & end() const
Iterator for HyperRectDomain.
const ConstIterator & begin() const