struct mp2p_icp_filters::PointCloudToVoxelGridAverage::voxel_t

Overview

The summary of one voxel.

#include <PointCloudToVoxelGridAverage.h>

struct voxel_t
{
    // fields

    mrpt::math::TPoint3Df average = {0, 0, 0};
    uint32_t closestToAverageIdx = 0;
    uint32_t pointCount = 0;
};

Fields

mrpt::math::TPoint3Df average = {0, 0, 0}

Average of all the points that fell into this voxel.

uint32_t closestToAverageIdx = 0

Index, within the processed cloud, of the point closest to average. Only valid if processPointCloud() was asked for it.

uint32_t pointCount = 0

How many points fell into this voxel.