feat: 测试降采样通过
parent
23c0f08844
commit
451970fc50
|
@ -12,6 +12,9 @@
|
|||
<None Update="pcl\libpclwrapper.dylib">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="dataset\0.pcd">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -19,6 +22,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="dataset\" />
|
||||
<Folder Include="pcl\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ class Program
|
|||
static void Main()
|
||||
{
|
||||
using var cloud = new PclPointCloud();
|
||||
cloud.Load("image_0000.pcd");
|
||||
cloud.Load("./dataset/0.pcd");
|
||||
|
||||
using var voxel = new PclVoxelGrid();
|
||||
voxel.SetLeafSize(0.2f, 0.2f, 0.2f);
|
||||
voxel.SetLeafSize(0.1f, 0.1f, 0.1f);
|
||||
voxel.SetInputCloud(cloud);
|
||||
|
||||
using var filtered = voxel.Filter();
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue