DGtal 2.1.0
Loading...
Searching...
No Matches
digitalSetFromVol.cpp
Go to the documentation of this file.
1
41#include <iostream>
42
43#include "DGtal/base/Common.h"
44#include "DGtal/io/readers/VolReader.h"
45#include "DGtal/io/viewers/PolyscopeViewer.h"
46
47#include "DGtal/images/ImageSelector.h"
48#include "DGtal/images/imagesSetsUtils/SetFromImage.h"
49#include "DGtal/helpers/StdDefs.h"
50#include "ConfigExamples.h"
51
53
54using namespace std;
55using namespace DGtal;
56
58
59int main()
60{
61 PolyscopeViewer<> viewer;
62 std::string inputFilename = examplesPath + "samples/Al.100.vol";
65
68
69 viewer << set3d << image.domain();
70 viewer.show();
71 return 0;
72}
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
void show() override
Starts the event loop and display of elements.
int main()
DGtal is the top-level namespace which contains all DGtal functions and types.
STL namespace.
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)