|
DGtal 2.1.0
|
#include <DGtal/geometry/tools/GenericLatticeConvexHull.h>
Public Types | |
| typedef ConvexHullIntegralKernel< K, TCoordinateInteger, TInternalInteger > | Kernel |
| typedef detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K-1 > | LowerKernels |
| typedef std::size_t | Size |
| typedef Kernel::CoordinatePoint | Point |
| typedef Point::Coordinate | Integer |
| typedef QuickHull< Kernel > | QHull |
| typedef SpaceND< K, Integer > | Space |
| typedef BoundedLatticePolytope< Space > | LatticePolytope |
| typedef GenericLatticeConvexHull< dim, TCoordinateInteger, TInternalInteger > | Computer |
| typedef Computer::OutputPoint | OutputPoint |
Public Member Functions | |
| GenericLatticeConvexHullComputers (Computer *ptrGenQHull) | |
| void | clear () |
| Clears the object as if no computations have been made. | |
| template<typename TInputPoint> | |
| bool | compute (const std::vector< Size > &I, const std::vector< TInputPoint > &X) |
| bool | makePolytope () |
| Integer | count () |
| Integer | countInterior () |
| Integer | countBoundary () |
| Integer | countUpTo (Integer max) |
Data Fields | |
| Computer * | ptr_gen_qhull |
| the pointer on the parent computer | |
| LowerKernels | lower_kernels |
| the computers of lower dimension | |
| QHull | hull |
| the quick hull object that computes the convex hull | |
| std::vector< Point > | proj_points |
| the projected points, as points in lower dimension | |
| LatticePolytope | polytope |
| the polytope corresponding to the convex hull | |
Static Public Attributes | |
| static const Dimension | dimension = K |
Definition at line 69 of file GenericLatticeConvexHull.h.
| typedef GenericLatticeConvexHull< dim, TCoordinateInteger, TInternalInteger > DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::Computer |
Definition at line 83 of file GenericLatticeConvexHull.h.
| typedef Point::Coordinate DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::Integer |
Definition at line 77 of file GenericLatticeConvexHull.h.
| typedef ConvexHullIntegralKernel< K,TCoordinateInteger,TInternalInteger > DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::Kernel |
Definition at line 72 of file GenericLatticeConvexHull.h.
| typedef BoundedLatticePolytope< Space > DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::LatticePolytope |
Definition at line 80 of file GenericLatticeConvexHull.h.
| typedef detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K-1> DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::LowerKernels |
Definition at line 74 of file GenericLatticeConvexHull.h.
| typedef Computer::OutputPoint DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::OutputPoint |
Definition at line 84 of file GenericLatticeConvexHull.h.
| typedef Kernel::CoordinatePoint DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::Point |
Definition at line 76 of file GenericLatticeConvexHull.h.
| typedef QuickHull< Kernel > DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::QHull |
Definition at line 78 of file GenericLatticeConvexHull.h.
| typedef std::size_t DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::Size |
Definition at line 75 of file GenericLatticeConvexHull.h.
| typedef SpaceND< K, Integer > DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::Space |
Definition at line 79 of file GenericLatticeConvexHull.h.
|
inline |
Constructor.
| ptrGenQHull | the pointer on the parent computer. |
Definition at line 89 of file GenericLatticeConvexHull.h.
|
inline |
Clears the object as if no computations have been made.
Definition at line 97 of file GenericLatticeConvexHull.h.
Referenced by DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, 1 >::GenericLatticeConvexHullComputers(), and DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K-1 >::GenericLatticeConvexHullComputers().
|
inline |
| TInputPoint | any type of input points. |
| I | a range of indices specifying an affine subset of X. |
| X | the range of input points. |
Copy back convex hull in initial space.
Definition at line 109 of file GenericLatticeConvexHull.h.
|
inline |
Computes the number of integer points lying within the polytope.
Definition at line 233 of file GenericLatticeConvexHull.h.
|
inline |
Computes the number of integer points lying on the boundary of the polytope.
Definition at line 273 of file GenericLatticeConvexHull.h.
|
inline |
Computes the number of integer points lying within the interior of the polytope.
Definition at line 253 of file GenericLatticeConvexHull.h.
|
inline |
Computes the number of integer points within the polytope up to some maximum number max.
| [in] | max | the maximum number of points that are counted, the method exists when this number of reached. |
Definition at line 299 of file GenericLatticeConvexHull.h.
|
inline |
Constructs the polytope that is the F-representation of the convex hull.
Definition at line 183 of file GenericLatticeConvexHull.h.
|
static |
Definition at line 85 of file GenericLatticeConvexHull.h.
| QHull DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::hull |
the quick hull object that computes the convex hull
Definition at line 313 of file GenericLatticeConvexHull.h.
| LowerKernels DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::lower_kernels |
the computers of lower dimension
Definition at line 312 of file GenericLatticeConvexHull.h.
| LatticePolytope DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::polytope |
the polytope corresponding to the convex hull
Definition at line 315 of file GenericLatticeConvexHull.h.
| std::vector< Point > DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::proj_points |
the projected points, as points in lower dimension
Definition at line 314 of file GenericLatticeConvexHull.h.
| Computer* DGtal::detail::GenericLatticeConvexHullComputers< dim, TCoordinateInteger, TInternalInteger, K >::ptr_gen_qhull |
the pointer on the parent computer
Definition at line 311 of file GenericLatticeConvexHull.h.