pcl_wrapper_test/Program.cs

18 lines
404 B
C#

using System;
using System.Runtime.InteropServices;
class Program
{
static void Main()
{
using var cloud = new PclPointCloud();
cloud.Load("image_0000.pcd");
using var voxel = new PclVoxelGrid();
voxel.SetLeafSize(0.2f, 0.2f, 0.2f);
voxel.SetInputCloud(cloud);
using var filtered = voxel.Filter();
filtered.Save("output.pcd");
}
}