31#include "ConfigExamples.h"
34#include "DGtal/base/Common.h"
35#include "DGtal/helpers/StdDefs.h"
37#include "DGtal/kernel/domains/DomainSplitter.h"
38#include "DGtal/helpers/Shortcuts.h"
39#include "DGtal/helpers/ShortcutsGeometry.h"
42#include "DGtal/io/viewers/PolyscopeViewer.h"
43#include "DGtal/io/colormaps/GradientColorMap.h"
59 std::string filename = examplesPath + std::string(
"/samples/bunny-128.vol");
68 const auto nbThreads = 4;
69 trace.
beginBlock(std::to_string(nbThreads) +
"threads on axis "+std::to_string(axis));
71 params(
"ii-thread-number", nbThreads )
72 (
"ii-split-axis", axis )
77 std::string objectName =
"Surfels";
78 viewer.
draw(surfels, objectName);
79 viewer.
addQuantity(objectName,
"Mean curvature", curv);
84 for(
auto i=0; i< splits.size(); ++i)
87 viewer << splits[i].domain;
std::string draw(const Point &p, const std::string &uname="Point_{i}")
void addQuantity(const std::string &oName, const std::string &qName, const Type &value, QuantityScale scale=QuantityScale::UNKNOWN)
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
void show() override
Starts the event loop and display of elements.
Aim: This class is used to simplify shape and surface creation. With it, you can create new shapes an...
static Scalars getIIMeanCurvatures(CountedPtr< BinaryImage > bimage, const SurfelRange &surfels, const Parameters ¶ms=parametersGeometryEstimation()|parametersKSpace())
static Parameters defaultParameters()
Aim: This class is used to simplify shape and surface creation. With it, you can create new shapes an...
static KSpace getKSpace(const Point &low, const Point &up, Parameters params=parametersKSpace())
static SurfelRange getSurfelRange(CountedPtr< ::DGtal::DigitalSurface< TDigitalSurfaceContainer > > surface, const Parameters ¶ms=parametersDigitalSurface())
static CountedPtr< DigitalSurface > makeDigitalSurface(CountedPtr< TPointPredicate > bimage, const KSpace &K, const Parameters ¶ms=parametersDigitalSurface())
static Parameters defaultParameters()
static CountedPtr< BinaryImage > makeBinaryImage(Domain shapeDomain)
void beginBlock(const std::string &keyword="")
CountedPtr< SH3::DigitalSurface > surface
CountedPtr< SH3::BinaryImage > binary_image
DGtal is the top-level namespace which contains all DGtal functions and types.
Shortcuts< Z3i::KSpace > SH3
ShortcutsGeometry< Z3i::KSpace > SHG3
Splits a domain along one of the domain grid axis.
std::vector< SplitInfo< Domain > > SplitDomainsInfo
AxisDomainSplitter< Domain > splitter