From 18634286c8b126f061a18433d5c893f25a3cec49 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 17 Apr 2024 10:19:29 +0200 Subject: Removing bugged visual clipping field of view. --- src/argaze/ArFeatures.py | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index 0b51f9f..a3ce1e3 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -1033,25 +1033,11 @@ class ArScene(DataFeatures.PipelineStepObject): for name, layer in self._layers.items(): - # Clip AOI out of the visual horizontal field of view (optional) - # TODO: use HFOV and VFOV and don't use vision_cone method - if visual_hfov > 0: - - # Transform layer aoi scene into camera referential - aoi_scene_camera_ref = layer.aoi_scene.transform(tvec, rvec) - - # Get aoi inside vision cone field - cone_vision_height_cm = 200 # cm - cone_vision_radius_cm = numpy.tan(numpy.deg2rad(visual_hfov / 2)) * cone_vision_height_cm - - _, aoi_outside = aoi_scene_camera_ref.vision_cone(cone_vision_radius_cm, cone_vision_height_cm) - - # Keep only aoi inside vision cone field - aoi_scene_copy = layer.aoi_scene.copy(exclude=aoi_outside.keys()) - - else: - - aoi_scene_copy = layer.aoi_scene.copy() + # TODO: if greater than 0., use HFOV and VFOV + # to clip AOI out of the visual horizontal field of view + + # Copy aoi scene before projection + aoi_scene_copy = layer.aoi_scene.copy() # Project layer aoi scene # noinspection PyUnresolvedReferences -- cgit v1.1