Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal 2.0.0
digitalSetFromVol.cpp
Go to the documentation of this file.
1
16
29
37
38
39
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( int argc, char** argv )
60{
61 PolyscopeViewer<> viewer;
62 std::string inputFilename = examplesPath + "samples/Al.100.vol";
65
66 Z3i::DigitalSet set3d (image.domain());
68
69 viewer << set3d << image.domain();
70 viewer.show();
71 return 0;
72}
73
Aim: implements association bewteen points lying in a digital domain and values.
Definition Image.h:70
void show() override
Starts the event loop and display of elements.
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
Definition StdDefs.h:173
DGtal is the top-level namespace which contains all DGtal functions and types.
STL namespace.
ImageContainerBySTLVector< Domain, Value > Type
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())
int main()
Definition testBits.cpp:56
Image image(domain)