Esempio n. 1
0
def generate_mesh(cloud):
    #cloud = cloudprocpy.fastBilateralFilter(cloud, 15, .05) # smooth out the depth image
    big_mesh = cloudprocpy.meshOFM(
        cloud, 3, .1)  # use pcl OrganizedFastMesh to make mesh
    simple_mesh = cloudprocpy.quadricSimplifyVTK(
        big_mesh, .02)  # decimate mesh with VTK function
    return simple_mesh
Esempio n. 2
0
def generate_mesh(cloud):
    cloud = cloudprocpy.fastBilateralFilter(cloud, 15,
                                            .05)  # smooth out the depth image
    cloud = remove_floor(
        cloud)  # remove points with low height (in world frame)
    big_mesh = cloudprocpy.meshOFM(
        cloud, 3, .1)  # use pcl OrganizedFastMesh to make mesh
    simple_mesh = cloudprocpy.quadricSimplifyVTK(
        big_mesh, .02)  # decimate mesh with VTK function
    return simple_mesh
def generate_mesh(cloud):
    cloud = cloudprocpy.fastBilateralFilter(cloud, 15, .05) # smooth out the depth image
    cloud = remove_floor(cloud) # remove points with low height (in world frame)
    big_mesh = cloudprocpy.meshOFM(cloud, 3, .1) # use pcl OrganizedFastMesh to make mesh
    simple_mesh = cloudprocpy.quadricSimplifyVTK(big_mesh, .02) # decimate mesh with VTK function
    return simple_mesh
Esempio n. 4
0
 def generate_mesh(self, cloud):
     #cloud = cloudprocpy.fastBilateralFilter(cloud, 15, .05) # smooth out the depth image
     big_mesh = cloudprocpy.meshOFM(cloud, 3, .1) # use pcl OrganizedFastMesh to make mesh
     simple_mesh = cloudprocpy.quadricSimplifyVTK(big_mesh, self.decimation_rate) # decimate mesh with VTK function
     return simple_mesh