DGtal 2.1.0
Loading...
Searching...
No Matches
3dBorderExtractionImg.cpp
Go to the documentation of this file.
1
44#include <iostream>
45
46#include "DGtal/base/Common.h"
47
48#include "DGtal/base/Common.h"
49#include "DGtal/io/readers/VolReader.h"
50#include "DGtal/images/ImageSelector.h"
51#include "DGtal/images/imagesSetsUtils/SetFromImage.h"
52#include "DGtal/io/viewers/PolyscopeViewer.h"
53
54#include "DGtal/helpers/StdDefs.h"
55#include "ConfigExamples.h"
56
57
59
60using namespace std;
61using namespace DGtal;
62
64
65int main()
66{
67
68 std::string inputFilename = examplesPath + "samples/Al.100.vol";
69 PolyscopeViewer<> viewer;
70
75 Z3i::Object18_6 obj3d (Z3i::dt18_6, set3d);
76 Z3i::Object18_6 border = obj3d.border();
77 viewer << border;
78 viewer << ClippingPlane(0,1,0, -40);
79
80 viewer.show();
81 return 0;
82}
83// //
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Aim: implements association bewteen points lying in a digital domain and values.
Definition Image.h:70
const Domain & domain() const
Definition Image.h:192
Aim: An object (or digital object) represents a set in some digital space associated with a digital t...
Definition Object.h:120
Object border() const
void show() override
Starts the event loop and display of elements.
static const DT18_6 dt18_6
Definition StdDefs.h:195
DGtal is the top-level namespace which contains all DGtal functions and types.
STL namespace.
Clipping plane.
Definition Display3D.h:299
ImageContainerBySTLVector< Domain, Value > Type
Aim: Define utilities to convert a digital set into an image.
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
Image image(domain)