diff options
-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 |