DGtal 2.0.0
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/base/CConstSinglePassRange.h"
#include "DGtal/topology/DigitalSurface.h"
#include "DGtal/topology/DigitalSetBoundary.h"
#include "DGtal/topology/ImplicitDigitalSurface.h"
#include "DGtal/topology/LightImplicitDigitalSurface.h"
#include "DGtal/topology/ExplicitDigitalSurface.h"
#include "DGtal/topology/LightExplicitDigitalSurface.h"
#include "DGtal/graph/BreadthFirstVisitor.h"
#include "DGtal/topology/helpers/FrontierPredicate.h"
#include "DGtal/topology/helpers/BoundaryPredicate.h"
#include "DGtal/graph/CUndirectedSimpleLocalGraph.h"
#include "DGtal/graph/CUndirectedSimpleGraph.h"
#include "DGtal/images/ImageContainerBySTLVector.h"
#include "DGtal/shapes/Shapes.h"
Go to the source code of this file.
Data Structures | |
struct | ImplicitDigitalEllipse3< TPoint3 > |
Functions | |
bool | testDigitalSetBoundary () |
bool | testImplicitDigitalSurface () |
bool | testLightImplicitDigitalSurface () |
template<typename Image3D> | |
void | fillImage3D (Image3D &img, typename Image3D::Point low, typename Image3D::Point up, typename Image3D::Value value) |
bool | testExplicitDigitalSurface () |
bool | testLightExplicitDigitalSurface () |
template<typename KSpace> | |
bool | testDigitalSurface () |
bool | testOrderingDigitalSurfaceFacesAroundVertex () |
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 DigitalSurface.
This file is part of the DGtal library.
Definition in file testDigitalSurface.cpp.
void fillImage3D | ( | Image3D & | img, |
typename Image3D::Point | low, | ||
typename Image3D::Point | up, | ||
typename Image3D::Value | value ) |
Definition at line 257 of file testDigitalSurface.cpp.
Referenced by testExplicitDigitalSurface(), and testLightExplicitDigitalSurface().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 665 of file testDigitalSurface.cpp.
References testDigitalSetBoundary(), testDigitalSurface(), testExplicitDigitalSurface(), testImplicitDigitalSurface(), testLightExplicitDigitalSurface(), testLightImplicitDigitalSurface(), testOrderingDigitalSurfaceFacesAroundVertex(), and DGtal::trace.
bool testDigitalSetBoundary | ( | ) |
Example of a test. To be completed.
Definition at line 61 of file testDigitalSurface.cpp.
References DGtal::Shapes< TDomain >::addNorm2Ball(), domain, K, DGtal::Shapes< TDomain >::removeNorm2Ball(), and DGtal::trace.
Referenced by main().
bool testDigitalSurface | ( | ) |
Definition at line 489 of file testDigitalSurface.cpp.
References DGtal::Shapes< TDomain >::addNorm2Ball(), DGtal::BreadthFirstVisitor< TGraph, TMarkSet >::current(), DGtal::KhalimskySpaceND< 3, Integer >::dimension, domain, DGtal::BreadthFirstVisitor< TGraph, TMarkSet >::expand(), DGtal::BreadthFirstVisitor< TGraph, TMarkSet >::finished(), K, DGtal::BreadthFirstVisitor< TGraph, TMarkSet >::markedVertices(), DGtal::Shapes< TDomain >::removeNorm2Ball(), and DGtal::trace.
Referenced by main().
bool testExplicitDigitalSurface | ( | ) |
Definition at line 273 of file testDigitalSurface.cpp.
References fillImage3D(), image(), K, and DGtal::trace.
Referenced by main().
bool testImplicitDigitalSurface | ( | ) |
Definition at line 136 of file testDigitalSurface.cpp.
References DGtal::Surfaces< TKSpace >::findABel(), K, and DGtal::trace.
Referenced by main().
bool testLightExplicitDigitalSurface | ( | ) |
Definition at line 381 of file testDigitalSurface.cpp.
References fillImage3D(), image(), K, and DGtal::trace.
Referenced by main().
bool testLightImplicitDigitalSurface | ( | ) |
Definition at line 196 of file testDigitalSurface.cpp.
References DGtal::Surfaces< TKSpace >::findABel(), K, and DGtal::trace.
Referenced by main().
bool testOrderingDigitalSurfaceFacesAroundVertex | ( | ) |
Definition at line 586 of file testDigitalSurface.cpp.
References domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::insert(), K, and DGtal::trace.
Referenced by main().