shape_det/preprocess.py [96:109]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    n_region = len(np.unique(F0))
    shapes = []
    for i in range(n_region):
        pcd_i = o3d.geometry.PointCloud()
        idx_i = np.where(F0 == i)[0]
        pcd_i.points = o3d.utility.Vector3dVector(points[idx_i, 0:3])
        shapes += [pcd_i]

    adj_mat, A0 = _calc_adjacency_matrix(shapes, n_region)
    return_dict = {'adj_mat': adj_mat, 'A0':A0}
    with open(out_fname, 'wb') as f:
        pickle.dump(return_dict, f)

def compute_adj_mat():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



wypr/dataset/s3dis/preprocess_for_gss.py [57:70]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    n_region = len(np.unique(F0))
    shapes = []
    for i in range(n_region):
        pcd_i = o3d.geometry.PointCloud()
        idx_i = np.where(F0 == i)[0]
        pcd_i.points = o3d.utility.Vector3dVector(points[idx_i, 0:3])
        shapes += [pcd_i]

    adj_mat, A0 = _calc_adjacency_matrix(shapes, n_region)
    return_dict = {'adj_mat': adj_mat, 'A0':A0}
    with open(out_fname, 'wb') as f:
        pickle.dump(return_dict, f)

def compute_adj_mat():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



