如果三维传感器相对于背景平面是倾斜的,第一步可以通过平面估算对其进行近似。第二步,对点云进行平移,以便使用上述方法去除背景平面。
intersection (ROI, ImageZ, RegionIntersection) fit_surface_first_order (RegionIntersection, ImageZ, 'regression', 5, 2, \ Alpha, Beta, Gamma) area_center (RegionIntersection, Area, Row, Column) get_image_size (ImageZ, Width, Height) gen_image_surface_first_order (BackgroundPlane, 'real', Alpha, Beta, Gamma, \ Row, Column, Width, Height)
sub_image (ImageZ, BackgroundPlane, ImageSub, 1, 0) threshold (ImageSub, Regions, MinThres, MaxThres) reduce_object_model_3d_by_view (Regions, Scene, [], [], SceneReduced)
HDevelop 示例 remove_background_for_object_location.hdev 演示了针对给定应用程序的这一工作流程。