mrdja.ransaclpexperiments.extract_inliers_outliers_plane_pcd_from_pkl_filename

mrdja.ransaclpexperiments.extract_inliers_outliers_plane_pcd_from_pkl_filename(filename_pkl: str, filename_pcd: str, algorithm: str, iteration: int)[source]

Extract the inliers and outliers point clouds from a pkl filename.

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

  • filename_pcd (str) – The path to the pcd file to be processed.

  • algorithm (str) – The algorithm to be used.

  • iteration (int) – The iteration to be used.

Returns:

A tuple with the inliers and outliers point clouds.

Return type:

Tuple[o3d.geometry.PointCloud, o3d.geometry.PointCloud]

Example:

>>> import mrdja.ransaclpexperiments as experiments
>>> import pickle as pkl 
>>> import open3d as o3d
>>> filename_pkl = "/home/scpmaotj/Github/mrdja/results_experiments_ransaclp/Open3D/OfficePointClouds/cloud_bin_0.pkl"
>>> filename_pcd = "/home/scpmaotj/open3d_data/extract/OfficePointClouds/cloud_bin_0.ply"
>>> algorithm = "line_RANSAC_109"
>>> iteration = 0
>>> inliers, outliers = experiments.extract_inliers_outliers_plane_pcd_from_pkl_filename(filename_pkl, filename_pcd, algorithm, iteration)
>>> # inliers in red
>>> inliers.paint_uniform_color([1, 0, 0])
>>> o3d.visualization.draw_geometries([inliers, outliers])