DGtal 1.4.0
|
#include <iostream>
#include <vector>
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/topology/VoxelComplexFunctions.h"
#include "DGtal/topology/tables/NeighborhoodTablesGenerators.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
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/.
Creates precomputed tables for all possible configurations of the neighborhood of a voxel in 3D with a topology of 26 neighbors. The table is a map between all this configurations and the result of applying an input selected predicate function to a center voxel. The options for the functions are the Skel function from
The options are: skelFunction = functions::oneIsthmus<VoxelComplex>; skelFunction = functions::twoIsthmus<VoxelComplex>; skelFunction = functions::skelIsthmus<VoxelComplex>;
where the latest is equivalent to (oneIsthmus OR twoIsthmus)
Isthmuses are implemented to work with 3D cubical(voxel) complexes. Right now the tables are only generated with 26_6 topology, but other 3D topologies can be added.
This file is part of the DGtal library.
Definition in file generateVoxelComplexTables.cpp.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 61 of file generateVoxelComplexTables.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::functions::generateVoxelComplexTable(), DGtal::Trace::info(), DGtal::functions::oneIsthmus(), DGtal::functions::skelIsthmus(), DGtal::trace, and DGtal::functions::twoIsthmus().