diff options
author | Théo de la Hogue | 2024-04-17 10:19:29 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-04-17 10:19:29 +0200 |
commit | 18634286c8b126f061a18433d5c893f25a3cec49 (patch) | |
tree | 29f90970ad81122777c2eae3741cf9395dc17314 /src | |
parent | 72af13343bba4b7ccda40bdc4f100f470fd33d99 (diff) | |
download | argaze-18634286c8b126f061a18433d5c893f25a3cec49.zip argaze-18634286c8b126f061a18433d5c893f25a3cec49.tar.gz argaze-18634286c8b126f061a18433d5c893f25a3cec49.tar.bz2 argaze-18634286c8b126f061a18433d5c893f25a3cec49.tar.xz |
Removing bugged visual clipping field of view.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/ArFeatures.py | 24 |
1 files 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 |