23namespace PCLSupportTools {
68template <
typename POINT_CLOUD_TYPE>
74 const size_t numPoints =
pointCloud.points.size();
80 std::vector<float>
vals;
83 for (
size_t c=0; c < numPoints; ++c){
84 const unsigned char *
pointBase =
reinterpret_cast<const unsigned char*
>(&(
pointCloud.points[c].x));
94 stats.average =
stats.sum /
static_cast<double>(numPoints);
109template <
typename POINT_CLOUD_TYPE>
114 const size_t numPoints =
pointCloud.points.size();
118 std::vector<float>
vals;
119 vals.resize(numPoints);
120 for (
size_t c=0; c < numPoints; ++c){
121 const unsigned char *
pointBase =
reinterpret_cast<const unsigned char*
>(&(
pointCloud.points[c].x));
124 std::sort(
vals.begin(),
vals.end());
125 median =
vals[numPoints/2];
Project global and OS specific declarations.
Basic types used in the MeVislab binding of the Point Cloud Library(PCL).
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_SIZE_T_MAX
For convenience the maximum value of size_t without "U" which is probably more the expected naming.