mrdja.ransaclpexperiments.get_baseline

mrdja.ransaclpexperiments.get_baseline(filename: str, threshold: float, n_iterations=100000) Dict[source]

Get the open3d results for plane segmentation for a high number of iterations.

Parameters:
  • filename (str) – The path to the file to be processed.

  • 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
>>> filename = "/home/scpmaotj/Stanford3dDataset_v1.2/Area_1/WC_1/WC_1.ply"
>>> threshold = 0.02
>>> n_iterations = 100000
>>> dict_results = experiments.get_baseline(filename, threshold, n_iterations)
>>> print(dict_results)
{'plane_model': array([-0.00485739, -0.00538778,  0.99997369,  0.10760573]), 'number_inliers': 154556}