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