DGtal 2.0.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 () |
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 134 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< 3, Integer >::dimension, makeRandomRange(), and DGtal::trace.
Referenced by main().
bool checkFullConvexityCharacterization | ( | int | width | ) |
Definition at line 243 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< 3, Integer >::dimension, displayPointRange2D(), makeRandomRange(), phi(), project(), projectRange(), and DGtal::trace.
Referenced by main().
bool checkProjectionFullConvexity | ( | int | width | ) |
Definition at line 180 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< 3, Integer >::dimension, makeRandomRange(), phi(), project(), projectRange(), and DGtal::trace.
Referenced by main().
bool checkSkelStarCvxHFullConvexity | ( | int | width | ) |
Definition at line 94 of file checkFullConvexityTheorems.cpp.
References DGtal::SpaceND< 3, Integer >::dimension, makeRandomRange(), and DGtal::trace.
Referenced by main().
Definition at line 222 of file checkFullConvexityTheorems.cpp.
Referenced by checkFullConvexityCharacterization().
int main | ( | void | ) |
Definition at line 298 of file checkFullConvexityTheorems.cpp.
References checkCvxHPlusHypercubeFullConvexity(), checkFullConvexityCharacterization(), checkProjectionFullConvexity(), checkSkelStarCvxHFullConvexity(), 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().