41 #include <pcl/pcl_base.h> 61 getAngle3D (
const Eigen::Vector4f &v1,
const Eigen::Vector4f &v2,
const bool in_degree =
false);
71 getAngle3D (
const Eigen::Vector3f &v1,
const Eigen::Vector3f &v2,
const bool in_degree =
false);
81 getMeanStd (
const std::vector<float> &values,
double &mean,
double &stddev);
90 template <
typename Po
intT>
inline void 92 Eigen::Vector4f &max_pt, std::vector<int> &indices);
100 template<
typename Po
intT>
inline void 110 template<
typename Po
intT>
inline void 112 const Eigen::Vector4f &pivot_pt, Eigen::Vector4f &max_pt);
120 template <
typename Po
intT>
inline void 129 template <
typename Po
intT>
inline void 131 Eigen::Vector4f &min_pt, Eigen::Vector4f &max_pt);
140 template <
typename Po
intT>
inline void 142 Eigen::Vector4f &min_pt, Eigen::Vector4f &max_pt);
151 template <
typename Po
intT>
inline void 153 Eigen::Vector4f &min_pt, Eigen::Vector4f &max_pt);
162 template <
typename Po
intT>
inline double 172 template <
typename Po
intT>
inline void 173 getMinMax (
const PointT &histogram,
int len,
float &min_p,
float &max_p);
180 template<
typename Po
intT>
inline float 193 float &min_p,
float &max_p);
202 getMeanStdDev (
const std::vector<float> &values,
double &mean,
double &stddev);
206 #include <pcl/common/impl/common.hpp> 208 #endif //#ifndef PCL_COMMON_H_ void getPointsInBox(const pcl::PointCloud< PointT > &cloud, Eigen::Vector4f &min_pt, Eigen::Vector4f &max_pt, std::vector< int > &indices)
Get a set of points residing in a box given its bounds.
double getAngle3D(const Eigen::Vector4f &v1, const Eigen::Vector4f &v2, const bool in_degree=false)
Compute the smallest angle between two 3D vectors in radians (default) or degree.
void getMinMax(const PointT &histogram, int len, float &min_p, float &max_p)
Get the minimum and maximum values on a point histogram.
void getMaxDistance(const pcl::PointCloud< PointT > &cloud, const Eigen::Vector4f &pivot_pt, Eigen::Vector4f &max_pt)
Get the point at maximum distance from a given point and a given pointcloud.
float calculatePolygonArea(const pcl::PointCloud< PointT > &polygon)
Calculate the area of a polygon given a point cloud that defines the polygon.
void getMeanStd(const std::vector< float > &values, double &mean, double &stddev)
Compute both the mean and the standard deviation of an array of values.
void getMinMax3D(const pcl::PointCloud< PointT > &cloud, PointT &min_pt, PointT &max_pt)
Get the minimum and maximum values on each of the 3 (x-y-z) dimensions in a given pointcloud.
PointCloud represents the base class in PCL for storing collections of 3D points.
double getCircumcircleRadius(const PointT &pa, const PointT &pb, const PointT &pc)
Compute the radius of a circumscribed circle for a triangle formed of three points pa,...
A point structure representing Euclidean xyz coordinates, and the RGB color.
PCL_EXPORTS void getMeanStdDev(const std::vector< float > &values, double &mean, double &stddev)
Compute both the mean and the standard deviation of an array of values.