mrdja.ransaclpexperiments.get_baseline_S3DIS
- mrdja.ransaclpexperiments.get_baseline_S3DIS(database_path: str, threshold: float, n_iterations=100000) Dict[source]
Get the open3d results for plane segmentation in the S3DIS dataset for a high number of iterations.
- Parameters:
database_path (str) – The path to the S3DIS dataset.
threshold (float) – The threshold to be used in the RANSAC algorithm.
n_iterations (int) – The number of iterations to be used in the RANSAC algorithm.
- Returns:
A dictionary with the results.
- Return type:
Dict
- Example:
>>> import mrdja.ransaclpexperiments as experiments >>> import pickle as pkl >>> database_path = "/home/scpmaotj/Stanford3dDataset_v1.2/" >>> threshold = 0.02 >>> n_iterations = 100000 >>> dict_results = experiments.get_baseline_S3DIS(database_path, threshold, n_iterations) >>> dict_results['/home/scpmaotj/Stanford3dDataset_v1.2/Area_1/office_29/office_29.ply'] {'plane_model': array([-0.00794638, 0.00484077, 0.99995671, -2.77513434]), 'number_inliers': 71578} >>> # save results to a pickle file >>> with open('results_baseline_S3DIS.pkl', 'wb') as f: ... pkl.dump(dict_results, f)