Exemple #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
Exemple #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)
Exemple #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