예제 #1
0
def test_radius_outlier_removal_negative():
    pc = pclpy.read(test_data("street_thinned.las"), "PointXYZ")
    output = pclpy.radius_outlier_removal(pc,
                                          search_radius=0.5,
                                          min_neighbors=10,
                                          negative=True)
    assert output.size() == 721
예제 #2
0
def test_radius_outlier_removal_alias():
    pc = pclpy.read(test_data("street_thinned.las"), "PointXYZ")
    output1 = pclpy.radius_outlier_removal(pc,
                                           search_radius=0.5,
                                           min_neighbors=10)
    output2 = pclpy.ror(pc, search_radius=0.5, min_neighbors=10)
    assert np.allclose(output1.xyz, output2.xyz)
예제 #3
0
def test_radius_outlier_removal_indices():
    pc = pclpy.read(test_data("street_thinned.las"), "PointXYZ")
    indices = pcl.vectors.Int(np.arange(10, 1000, dtype="i"))
    output = pclpy.radius_outlier_removal(pc,
                                          search_radius=0.5,
                                          min_neighbors=10,
                                          indices=indices)
    assert output.size() == 889