DGtal 1.3.0
|
#include <iostream>
#include <queue>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/volumes/DigitalConvexity.h"
Go to the source code of this file.
Functions | |
template<typename Point > | |
void | makeRandom (Point &p, int width) |
template<typename Point > | |
void | makeRandomRange (std::vector< Point > &X, int nb, int width) |
template<typename ProjectedPoint , typename Point > | |
void | project (ProjectedPoint &pp, const Point &p, Dimension a) |
template<typename ProjectedPoint , typename Point > | |
void | projectRange (std::vector< ProjectedPoint > &pp, const std::vector< Point > &p, Dimension a) |
template<typename Space > | |
bool | checkSkelStarCvxHFullConvexity (int width) |
template<typename Space > | |
bool | checkCvxHPlusHypercubeFullConvexity (int width) |
template<typename Space > | |
bool | checkProjectionFullConvexity (int width) |
template<typename Point > | |
void | displayPointRange2D (const std::vector< Point > &X) |
template<typename Space > | |
bool | checkFullConvexityCharacterization (int width) |
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/.
An example file named checkFullConvexityTheorems
This file is part of the DGtal library.
Definition in file checkFullConvexityTheorems.cpp.
bool checkCvxHPlusHypercubeFullConvexity | ( | int | width | ) |
Definition at line 135 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< dim, TInteger >::dimension, DGtal::DigitalConvexity< TKSpace >::envelope(), DGtal::BoundedLatticePolytope< TSpace >::getPoints(), DGtal::Trace::info(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), DGtal::DigitalConvexity< TKSpace >::makePolytope(), makeRandomRange(), DGtal::trace, DGtal::DigitalConvexity< TKSpace >::U(), and DGtal::Trace::warning().
bool checkFullConvexityCharacterization | ( | int | width | ) |
Definition at line 244 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< dim, TInteger >::dimension, displayPointRange2D(), DGtal::BoundedLatticePolytope< TSpace >::getPoints(), DGtal::DigitalConvexity< TKSpace >::is0Convex(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), DGtal::DigitalConvexity< TKSpace >::makePolytope(), makeRandomRange(), project(), projectRange(), DGtal::trace, and DGtal::Trace::warning().
bool checkProjectionFullConvexity | ( | int | width | ) |
Definition at line 181 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< dim, TInteger >::dimension, DGtal::DigitalConvexity< TKSpace >::envelope(), makeRandomRange(), project(), projectRange(), DGtal::trace, and DGtal::Trace::warning().
bool checkSkelStarCvxHFullConvexity | ( | int | width | ) |
Definition at line 94 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< dim, TInteger >::dimension, DGtal::DigitalConvexity< TKSpace >::envelope(), DGtal::Trace::info(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), makeRandomRange(), DGtal::DigitalConvexity< TKSpace >::StarCvxH(), DGtal::trace, and DGtal::Trace::warning().
Definition at line 223 of file checkFullConvexityTheorems.cpp.
Referenced by checkFullConvexityCharacterization().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 299 of file checkFullConvexityTheorems.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Definition at line 56 of file checkFullConvexityTheorems.cpp.
Referenced by makeRandomRange().
Definition at line 63 of file checkFullConvexityTheorems.cpp.
References makeRandom().
Referenced by checkCvxHPlusHypercubeFullConvexity(), checkFullConvexityCharacterization(), checkProjectionFullConvexity(), and checkSkelStarCvxHFullConvexity().
void project | ( | ProjectedPoint & | pp, |
const Point & | p, | ||
Dimension | a | ||
) |
Definition at line 71 of file checkFullConvexityTheorems.cpp.
Referenced by checkFullConvexityCharacterization(), checkProjectionFullConvexity(), and projectRange().
void projectRange | ( | std::vector< ProjectedPoint > & | pp, |
const std::vector< Point > & | p, | ||
Dimension | a | ||
) |
Definition at line 79 of file checkFullConvexityTheorems.cpp.
References project().
Referenced by checkFullConvexityCharacterization(), and checkProjectionFullConvexity().