pcl_wrapper_test/Program.cs

18 lines
405 B
C#
Raw Normal View History

2025-04-12 00:43:02 +08:00
using System;
using System.Runtime.InteropServices;
class Program
{
static void Main()
{
using var cloud = new PclPointCloud();
2025-04-12 11:37:29 +08:00
cloud.Load("./dataset/0.pcd");
2025-04-12 00:43:02 +08:00
using var voxel = new PclVoxelGrid();
2025-04-12 11:37:29 +08:00
voxel.SetLeafSize(0.1f, 0.1f, 0.1f);
2025-04-12 00:43:02 +08:00
voxel.SetInputCloud(cloud);
using var filtered = voxel.Filter();
filtered.Save("output.pcd");
}
}