smallest_bounding_box_object_model_3d (Scene, 'oriented', BoundingBoxPose, \
Length1, Length2, Length3)
gen_box_object_model_3d (BoundingBoxPose, Length1, Length2, Length3, BoundingBox)
pose_invert (BoundingBoxPose, PoseInverted)
rigid_trans_object_model_3d (Scene, PoseInverted, SceneRigidTrans)
object_model_3d_to_xyz (X, Y, Z, SceneRigidTrans, 'from_xyz_map', [], [])
threshold (X, RegionX, -Length1 / 2 * 0.85, Length1 / 2 * 0.85)
threshold (Y, RegionY, -Length2 / 2 * 0.85, Length2 / 2 * 0.85)
Alternatively, you can apply a threshold on X- and Y-coordinates using
select_points_object_model_3d. In this case the next step
can be skipped.
intersection (RegionX, RegionY, RegionIntersection)
intersection (RegionIntersection, SceneDomain, ROI)
reduce_object_model_3d_by_view (ROI, Scene, 'xyz_mapping', [], SceneReduced)