DGtal 1.3.0
|
#include <iostream>
#include <fstream>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/curves/FreemanChain.h"
#include "DGtal/topology/KhalimskySpaceND.h"
#include "DGtal/topology/helpers/Surfaces.h"
#include "DGtal/topology/SurfelSetPredicate.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/readers/VolReader.h"
#include "DGtal/base/ConstAlias.h"
Go to the source code of this file.
Functions | |
bool | testComputeInterior () |
bool | test3dSurfaceHelper () |
template<typename KSpace3D > | |
bool | testFindABel () |
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/.
Functions for testing class SurfaceHelper.
This file is part of the DGtal library.
Definition in file testSurfaceHelper.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 321 of file testSurfaceHelper.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), test3dSurfaceHelper(), testComputeInterior(), and DGtal::trace.
bool test3dSurfaceHelper | ( | ) |
Definition at line 190 of file testSurfaceHelper.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Surfaces< TKSpace >::extractAllConnectedSCell(), DGtal::VolReader< TImageContainer, TFunctor >::importVol(), DGtal::Trace::info(), DGtal::KhalimskySpaceND< dim, TInteger >::init(), DGtal::trace, DGtal::Surfaces< TKSpace >::uFillExterior(), and DGtal::Surfaces< TKSpace >::uFillInterior().
Referenced by main().
bool testComputeInterior | ( | ) |
Example of a test. To be completed.
Definition at line 60 of file testSurfaceHelper.cpp.
References DGtal::Trace::beginBlock(), DGtal::FreemanChain< TInteger >::className(), DGtal::FreemanChain< TInteger >::computeBoundingBox(), DGtal::Trace::endBlock(), DGtal::FreemanChain< TInteger >::getInterPixelLinels(), DGtal::Trace::info(), DGtal::KhalimskySpaceND< dim, TInteger >::init(), K, DGtal::Color::None, DGtal::Color::Red, LibBoard::Board::saveEPS(), DGtal::trace, DGtal::Surfaces< TKSpace >::uFillExterior(), and DGtal::Surfaces< TKSpace >::uFillInterior().
Referenced by main().
bool testFindABel | ( | ) |
Checks that method Surfaces::findABel can take in argument any pair of points (one inside, one outside) to determine a boundary surfel by dichotomy.
Definition at line 271 of file testSurfaceHelper.cpp.
References DGtal::Shapes< TDomain >::addNorm2Ball(), DGtal::Trace::beginBlock(), domain, DGtal::Surfaces< TKSpace >::findABel(), DGtal::Trace::info(), DGtal::KhalimskySpaceND< dim, TInteger >::init(), K, DGtal::KhalimskySpaceND< dim, TInteger >::sCoords(), DGtal::KhalimskySpaceND< dim, TInteger >::sDim(), DGtal::KhalimskySpaceND< dim, TInteger >::sDirectIncident(), DGtal::KhalimskySpaceND< dim, TInteger >::sIndirectIncident(), DGtal::KhalimskySpaceND< dim, TInteger >::sOrthDir(), and DGtal::trace.
Referenced by TEST_CASE().