|
DGtal 2.0.0
|
The aim of this example is to use the FMM (fast marching method) class in order to incrementally compute a signed distance field from a digital surface. The resulting field is visualized with Polyscope Viewer. More...
#include <iostream>#include "DGtal/io/Color.h"#include "DGtal/base/Common.h"#include "DGtal/helpers/StdDefs.h"#include "DGtal/shapes/Shapes.h"#include "DGtal/io/colormaps/HueShadeColorMap.h"#include "DGtal/io/colormaps/GradientColorMap.h"#include "ConfigExamples.h"#include "DGtal/io/viewers/PolyscopeViewer.h"#include "DGtal/io/readers/VolReader.h"#include "DGtal/images/ImageContainerBySTLVector.h"#include "DGtal/images/ImageContainerBySTLMap.h"#include "DGtal/images/ConstImageAdapter.h"#include "DGtal/base/BasicFunctors.h"#include "DGtal/kernel/BasicPointPredicates.h"#include "DGtal/topology/SurfelAdjacency.h"#include "DGtal/topology/helpers/FrontierPredicate.h"#include "DGtal/topology/LightExplicitDigitalSurface.h"#include "DGtal/geometry/volumes/distance/FMM.h"Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
The aim of this example is to use the FMM (fast marching method) class in order to incrementally compute a signed distance field from a digital surface. The resulting field is visualized with Polyscope Viewer.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
This file is part of the DGtal library.
Definition in file exampleFMM3D.cpp.
| int main | ( | int | argc, |
| char ** | argv ) |
FMM types [FMMSimpleTypeDef3D]
[FMMSimpleTypeDef3D]
FMM init [FMMSimpleInit3D]
[FMMSimpleInit3D]
FMM main [FMMUsage3D]
[FMMUsage3D]
Definition at line 79 of file exampleFMM3D.cpp.
References DGtal::Display3D< Space, KSpace >::allowReuseList, DGtal::FMM< TImage, TSet, TPointPredicate, TPointFunctor >::compute(), DGtal::PointVector< dim, Integer >::diagonal(), domain, DGtal::Surfaces< TKSpace >::findABel(), DGtal::VolReader< TImageContainer, TFunctor >::importVol(), DGtal::KhalimskySpaceND< dim, TInteger >::init(), DGtal::FMM< TImage, TSet, TPointPredicate, TPointFunctor >::initFromBelsRange(), DGtal::PolyscopeViewer< Space, KSpace >::show(), and DGtal::trace.