MCPcopy Create free account
hub / github.com/LimHyungTae/patchwork / pc2regionwise_patches

Method pc2regionwise_patches

include/patchwork/patchwork.hpp:796–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794
795template <typename PointT>
796inline void PatchWork<PointT>::pc2regionwise_patches(const pcl::PointCloud<PointT> &src,
797 RegionwisePatches &patches) {
798 std::for_each(src.points.begin(), src.points.end(), [&](const auto &pt) {
799 const auto &[ring_idx, sector_idx] = zone_model_.get_ring_sector_idx(pt.x, pt.y);
800 if (ring_idx != INVALID_RING_IDX && ring_idx != OVERFLOWED_IDX) {
801 patches[ring_idx][sector_idx].cloud_.points.emplace_back(pt);
802 }
803 });
804}
805
806// For adaptive
807template <typename PointT>

Callers

nothing calls this directly

Calls 1

get_ring_sector_idxMethod · 0.80

Tested by

no test coverage detected