Commit f4fe86d6 authored by Li, Rui's avatar Li, Rui
Browse files

Delete Outlier_removal_for_all_the_point_clouds.ipynb

parent 882e75ba
Loading
Loading
Loading
Loading
+0 −150
Original line number Diff line number Diff line
%% Cell type:code id: tags:

``` python
import numpy as np
from plyfile import PlyData, PlyElement
from open3d import *
```

%% Cell type:code id: tags:

``` python
def display_inlier_outlier(cloud, ind):
    inlier_cloud = select_down_sample(cloud, ind)
    outlier_cloud = select_down_sample(cloud, ind, invert=True)

    print("Showing outliers (red) and inliers (gray): ")
    outlier_cloud.paint_uniform_color([1, 0, 0])
    inlier_cloud.paint_uniform_color([0.8, 0.8, 0.8])
    draw_geometries([inlier_cloud, outlier_cloud])
```

%% Cell type:code id: tags:

``` python
for i in range(1,54):
    print("Load a ply point cloud, print it, and render it")
    pcd = read_point_cloud('3D-'+str(i)+'.ply')

    print("Statistical oulier removal")
    cl,ind = statistical_outlier_removal(pcd,
            nb_neighbors=20, std_ratio=2)
    #inlier_cloud = select_down_sample(cl, ind)
    #display_inlier_outlier(pcd, ind)

    #print("Radius oulier removal")
    #cl,ind = radius_outlier_removal(pcd,
    #        nb_points=16, radius=0.03)
    #display_inlier_outlier(pcd, ind)

    write_point_cloud('3D_inlier-'+str(i)+'.ply', cl)
```

%% Output

    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal
    Load a ply point cloud, print it, and render it
    Statistical oulier removal