DGtal 1.4.0
|
#include <iostream>
#include <vector>
#include <algorithm>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/kernel/sets/DigitalSetBySTLSet.h"
#include "DGtal/topology/KhalimskySpaceND.h"
#include "DGtal/geometry/volumes/CellGeometry.h"
#include "DGtal/geometry/volumes/DigitalConvexity.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtalCatch.h"
Go to the source code of this file.
Functions | |
SCENARIO ("DigitalConvexity< Z2 > full convexity tests", "[digital_convexity][2d][full_convexity]") | |
SCENARIO ("FullConvexity< Z3 > full convexity tests", "[full_convexity][3d]") | |
SCENARIO ("DigitalConvexity< Z2 > ball tests", "[digital_convexity][2d]") | |
SCENARIO ("DigitalConvexity< Z3 > ball tests", "[digital_convexity][3d]") | |
SCENARIO ("DigitalConvexity< Z4 > ball tests", "[digital_convexity][4d]") | |
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 full convexity.
This file is part of the DGtal library.
Definition in file testFullConvexity.cpp.
SCENARIO | ( | "DigitalConvexity< Z2 > ball tests" | , |
"" | [digital_convexity][2d] ) |
Definition at line 99 of file testFullConvexity.cpp.
References DGtal::Shapes< TDomain >::addNorm2Ball(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::begin(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), GIVEN(), DGtal::DigitalConvexity< TKSpace >::is0Convex(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), and REQUIRE().
SCENARIO | ( | "DigitalConvexity< Z2 > full convexity tests" | , |
"" | [digital_convexity][2d][full_convexity] ) |
Definition at line 53 of file testFullConvexity.cpp.
References DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), and REQUIRE().
SCENARIO | ( | "DigitalConvexity< Z3 > ball tests" | , |
"" | [digital_convexity][3d] ) |
Definition at line 126 of file testFullConvexity.cpp.
References DGtal::Shapes< TDomain >::addNorm2Ball(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::begin(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), GIVEN(), DGtal::DigitalConvexity< TKSpace >::is0Convex(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), and REQUIRE().
SCENARIO | ( | "DigitalConvexity< Z4 > ball tests" | , |
"" | [digital_convexity][4d] ) |
[nD-full-convexity]
[nD-full-convexity]
Definition at line 153 of file testFullConvexity.cpp.
References DGtal::Shapes< TDomain >::addNorm2Ball(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::begin(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), GIVEN(), DGtal::DigitalConvexity< TKSpace >::is0Convex(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), and REQUIRE().
SCENARIO | ( | "FullConvexity< Z3 > full convexity tests" | , |
"" | [full_convexity][3d] ) |
Definition at line 74 of file testFullConvexity.cpp.
References DGtal::BoundedLatticePolytope< TSpace >::getPoints(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), DGtal::DigitalConvexity< TKSpace >::isKConvex(), DGtal::DigitalConvexity< TKSpace >::isSimplexFullDimensional(), DGtal::DigitalConvexity< TKSpace >::makeSimplex(), and REQUIRE().