ed
include
ed
convex_hull_2d.h
Go to the documentation of this file.
1
#ifndef ED_CONVEX_HULL_2D_H_
2
#define ED_CONVEX_HULL_2D_H_
3
4
#include <pcl/point_types.h>
5
#include <pcl/point_cloud.h>
6
7
#include <opencv2/core/core.hpp>
8
9
#include <
geolib/datatypes.h
>
10
11
#include <
vector
>
12
13
namespace
ed
14
{
15
16
typedef
std::vector< std::vector<cv::Point2i>
>
IndexMap
;
17
18
struct
ConvexHull2D
{
19
ConvexHull2D
() :
center_point
(
geo
::
Vector3
(0, 0, 0)) {}
20
pcl::PointCloud<pcl::PointXYZ>
chull
;
// Convex hull point w.r.t. center
21
double
min_z
,
max_z
;
// min and max z of convex hull
22
geo::Vector3
center_point
;
// Center of the convex hull
23
24
double
area
()
const
;
25
double
height
()
const
;
26
double
volume
()
const
;
27
};
28
29
struct
ConvexHull2DWithIndices
{
30
std::vector<cv::Point2i>
indices
;
31
ConvexHull2D
convex_hull_2d
;
32
};
33
34
}
// end namespace ed
35
36
#endif
Vector3
Vec3 Vector3
ed::ConvexHull2D::center_point
geo::Vector3 center_point
Definition:
convex_hull_2d.h:22
datatypes.h
geo
vector
ed::ConvexHull2D::ConvexHull2D
ConvexHull2D()
Definition:
convex_hull_2d.h:19
ed::ConvexHull2D::chull
pcl::PointCloud< pcl::PointXYZ > chull
Definition:
convex_hull_2d.h:20
ed::ConvexHull2D
Definition:
convex_hull_2d.h:18
ed::ConvexHull2DWithIndices::indices
std::vector< cv::Point2i > indices
Definition:
convex_hull_2d.h:30
ed::ConvexHull2D::max_z
double max_z
Definition:
convex_hull_2d.h:21
geo::Vector3
ed::ConvexHull2DWithIndices
Definition:
convex_hull_2d.h:29
ed::ConvexHull2D::min_z
double min_z
Definition:
convex_hull_2d.h:21
ed
Definition:
convex_hull.h:8
ed::ConvexHull2D::height
double height() const
Definition:
convex_hull_2d.cpp:29
ed::ConvexHull2D::volume
double volume() const
Definition:
convex_hull_2d.cpp:34
ed::IndexMap
std::vector< std::vector< cv::Point2i > > IndexMap
Definition:
convex_hull_2d.h:16
ed::ConvexHull2D::area
double area() const
Definition:
convex_hull_2d.cpp:6
ed::ConvexHull2DWithIndices::convex_hull_2d
ConvexHull2D convex_hull_2d
Definition:
convex_hull_2d.h:31
Generated on Sun Feb 23 2025 04:34:40 for ed by
1.8.17