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 from imported volume
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/base/Common.h"
#include "DGtal/io/readers/VolReader.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/images/imagesSetsUtils/SetFromImage.h"
#include "DGtal/io/viewers/PolyscopeViewer.h"
#include "DGtal/helpers/StdDefs.h"
#include "ConfigExamples.h"
int main(
int argc,
char** argv )
{
std::string inputFilename = examplesPath + "samples/Al.100.vol";
PolyscopeViewer<> viewer;
typedef ImageSelector < Z3i::Domain, int>::Type
Image;
viewer << border;
return 0;
}
void show() override
Starts the event loop and display of elements.
static const DT18_6 dt18_6
Object< DT18_6, DigitalSet > Object18_6
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
DGtal is the top-level namespace which contains all DGtal functions and types.
static void append(Set &aSet, const ForegroundPredicate &isForeground, typename Image::Domain::ConstIterator itBegin, typename Image::Domain::ConstIterator itEnd)
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
ImageContainerBySTLVector< Domain, Value > Image